Problem oranges2
User chenweilian
Submission Time 2023-07-16 18:49:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘int findMaxWeightedEdge(int, int)’:
oranges2.cpp:129:10: error: too few arguments to function ‘void exit(int)’
129 | 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 oranges2.cpp:1:
/usr/include/stdlib.h:617:13: note: declared here
617 | extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
| ^~~~