Borderou de evaluare (job #2857579)
Utilizator | Data | 25 februarie 2022 21:10:21 | |
---|---|---|---|
Problema | NoGameNoLife - The Final Stage | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:34: error: 'int clone' redeclared as different kind of entity
18 | int i,u,v,c,side,qs,x,y,val,node,clone;
| ^~~~~
In file included from /usr/include/sched.h:43,
from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148,
from /usr/include/c++/10/ext/atomicity.h:35,
from /usr/include/c++/10/bits/ios_base.h:39,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/sched.h:82:12: note: previous declaration 'int clone(int (*)(void*), void*, int, void*, ...)'
82 | extern int clone (int (*__fn) (void *__arg), void *__child_stack,
| ^~~~~
main.cpp: In function 'int32_t main()':
main.cpp:43:5: warning: statement has no effect [-Wunused-value]
43 | qs;
| ^~
main.cpp: In lambda function:
main.cpp:82:19: error: assignment of function 'int clone(int (*)(void*), void*, int, void*, ...)'
82 | clone = node;
| ~~~~~~^~~~~~
main.cpp:85:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
85 | while(clone != x) {
| ~~~~~~^~~~
main.cpp:86:30: error: no matching function for call to 'push(int (&)(int (*)(void*), void*, int, void*, ...) throw ())'
86 | st.push(clone);
| ^
In file included from /usr/include/c++/10/stack:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:89,
from main.cpp:1:
/usr/include/c++/10/bits/stl_stack.h:239:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]' (near match)
239 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_stack.h:239:7: note: conversion of argument 1 would be ill-formed:
main.cpp:86:25: error: invalid conversion from 'int (*)(int (*)(void*), void*, int, void*, ...) throw ()' {aka 'int (*)(int (*)(void*), void*, int, void*, ...)'} to 'std::stack<int>::value_type' {aka 'int'} [-fpermissive]
86 | st.push(clone);
| ^~~~~
| |
| int (*)(int (*)(void*), void*, int, void*, ...) throw () {aka int (*)(int (*)(void*), void*, int, void*, ...)}
In file included from /usr/include/c++/10/stack:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:89,
from main.cpp:1:
/usr/include/c++/10/bits/stl_stack.h:244:7: note: candidate: 'void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]' (near match)
244 | push(value_type&& __x)
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !