Borderou de evaluare (job #2544596)
Utilizator | Data | 12 februarie 2020 11:51:49 | |
---|---|---|---|
Problema | Petrica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:5: error: 'int time' redeclared as different kind of symbol
int time, t[2][N], d[N], loc[N], S[5], l;
^~~~
In file included from /usr/include/pthread.h:24:0,
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/fstream:38,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'void dfs(int)':
main.cpp:25:20: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
t[0][node] = ++time;
^~~~
main.cpp:25:20: error: lvalue required as increment operand
main.cpp:27:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 0; i < graph[node].size ( ); i++ ){
~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:34:20: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
t[1][node] = ++time;
^~~~
main.cpp:34:20: error: lvalue required as increment operand
main.cpp: In function 'int inc(int)':
main.cpp:42:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !