Borderou de evaluare (job #1491499)
Utilizator | Data | 25 septembrie 2015 16:30:13 | |
---|---|---|---|
Problema | Hercule | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:6: error: ‘bool exit’ redeclared as different kind of symbol
bool exit, viz[LIM+1];
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:544:13: error: previous declaration of ‘void exit(int)’
extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
^
user.cpp: In function ‘void back(int, int)’:
user.cpp:24:13: error: assignment of function ‘void exit(int)’
exit=1;
^
user.cpp:24:13: error: cannot convert ‘int’ to ‘void(int)throw ()’ in assignment
user.cpp:26:17: warning: the address of ‘void exit(int)’ will always evaluate as ‘true’ [-Waddress]
if(tot>n or exit) return;
^
user.cpp:33:20: warning: the address of ‘void exit(int)’ will always evaluate as ‘true’ [-Waddress]
if(exit) return;
^
user.cpp: In function ‘int main()’:
user.cpp:43:13: warning: the address of ‘void exit(int)’ will always evaluate as ‘true’ [-Waddress]
if(!exit)
^
user.cpp:45:13: error: assignment of function ‘void exit(int)’
exit=0;
^
user.cpp:45:13: error: cannot convert ‘int’ to ‘void(int)throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !