Borderou de evaluare (job #2571429)
Utilizator | Data | 4 martie 2020 23:09:15 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:24: error: 'std::pair<int, int> exit' redeclared as different kind of symbol
pair <int, int> start, exit;
^~~~
In file included from /usr/include/c++/6/cstdlib:75:0,
from /usr/include/c++/6/ext/string_conversions.h:41,
from /usr/include/c++/6/bits/basic_string.h:5420,
from /usr/include/c++/6/string:52,
from /usr/include/c++/6/bits/locale_classes.h:40,
from /usr/include/c++/6/bits/ios_base.h:41,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/stdlib.h:543:13: note: previous declaration 'void exit(int)'
extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
^~~~
main.cpp: In function 'int isOk(int)':
main.cpp:45:32: error: request for member 'first' in 'exit', which is of non-class type 'void(int) throw ()'
if(a.first == exit.first && a.second == exit.second) return 1;
^~~~~
main.cpp:45:58: error: request for member 'second' in 'exit', which is of non-class type 'void(int) throw ()'
if(a.first == exit.first && a.second == exit.second) return 1;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:71:65: error: assignment of function 'void exit(int)'
else if(s[j] == 'O') exit = make_pair(i, j+1);
^
main.cpp:71:65: error: cannot convert 'std::pair<int, int>' to 'void(int) throw ()' in assignment
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !