Problem prime
User joshua2152
Submission Time 2023-04-21 14:18:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prime.cpp: In function ‘int main()’:
prime.cpp:10:9: error: too few arguments to function ‘void exit(int)’
10 | exit();
| ^
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from prime.cpp:1:
/usr/include/stdlib.h:617:13: note: declared here
617 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
| ^~~~