#209

by Zzzyt

Submitted 3 years 1 day ago
Sat Apr 24 18:03:56 CST 2021
Judger: judger1
Dataset Version: v0

0 ms / 0 KB
Final 0
Problem: fun21.density
Language: GNU C++ 11


#include <stdlib.h>

int main(){
    std::calloc(262140*1024);
    return 0;
}
Compilation Error:
Main.cpp: In function ‘int main()’:
Main.cpp:4:28: error: too few arguments to function ‘void* calloc(size_t, size_t)’
     std::calloc(262140*1024);
                            ^
In file included from /usr/include/c++/7/cstdlib:75:0,
                 from /usr/include/c++/7/stdlib.h:36,
                 from Main.cpp:1:
/usr/include/stdlib.h:541:14: note: declared here
 extern void *calloc (size_t __nmemb, size_t __size)
              ^~~~~~