Borderou de evaluare (job #2362937)
Utilizator | Data | 3 martie 2019 12:18:25 | |
---|---|---|---|
Problema | MarceLand | Status | done |
Runda | Algoritmiada 2019 Runda PreOJI | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:5: error: 'int clone' redeclared as different kind of symbol
int clone, fantani;
^~~~~
In file included from /usr/include/sched.h:43:0,
from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/sched.h:81:12: note: previous declaration 'int clone(int (*)(void*), void*, int, void*, ...)'
extern int clone (int (*__fn) (void *__arg), void *__child_stack,
^~~~~
main.cpp: In function 'void analyze(int, int)':
main.cpp:41:52: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(int (*)(void*), void*, int, void*, ...) throw ()' [-Wpointer-arith]
else if(land[e.first][e.second]=='M') clone++;
^~
main.cpp:41:52: error: lvalue required as increment operand
main.cpp: In function 'int main()':
main.cpp:82:29: error: assignment of function 'int clone(int (*)(void*), void*, int, void*, ...)'
clone = 0; fantani = 0;
^
main.cpp:82:29: error: cannot convert 'int' to 'int(int (*)(void*), void*, int, void*, ...) throw ()' in assignment
main.cpp:88:29: warning: the address of 'int clone(int (*)(void*), void*, int, void*, ...)' will never be NULL [-Waddress]
if(clone==0) continue;
~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !