Borderou de evaluare (job #2017539)
Utilizator | Data | 1 septembrie 2017 16:34:33 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:12: error: ‘Cel exit’ redeclared as different kind of symbol
Cel start, exit;
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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 ‘int main()’:
user.cpp:85:22: error: assignment of function ‘void exit(int)’
exit = {i, j};
^
user.cpp:85:22: error: cannot convert ‘<brace-enclosed initializer list>’ to ‘void(int)throw ()’ in assignment
user.cpp:96:22: error: request for member ‘x’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
out << best[exit.x][exit.y];
^
user.cpp:96:30: error: request for member ‘y’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
out << best[exit.x][exit.y];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !