Borderou de evaluare (job #2164489)

Utilizator Anastasia11Susciuc Anastasia Anastasia11 Data 13 martie 2018 00:41:40
Problema Semafoare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:17:43: error: ‘int time’ redeclared as different kind of symbol int n, m, x1, y1, x2, y2, i, j, k, op, t, time, tr[100], v[1010][1010][4], d[1010][1010]; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148, from /usr/include/c++/5/ext/atomicity.h:35, from /usr/include/c++/5/bits/ios_base.h:39, from /usr/include/c++/5/ios:42, from /usr/include/c++/5/istream:38, from /usr/include/c++/5/fstream:38, from user.cpp:1: /usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘int Solve()’: user.cpp:25:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x1][y1][tr[c]] = 0; ^ user.cpp:26:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] Q[0].push( { x1, y1, tr[c] } ); ^ user.cpp:35:18: error: assignment of function ‘time_t time(time_t*)’ time = ((now.d - d[now.x][now.y] - (t & 3) + 8) & 3) + 1; ^ user.cpp:35:18: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp:43:64: warning: pointer to a function used in arithmetic [-Wpointer-arith] if (!(i < 0 || j < 0 || i > n || j > m) && t + time < v[i][j][op]) ^ user.cpp:43:81: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (!(i < 0 || j < 0 || i > n || j > m) && t + time < v[i][j][op]) ^ user.cpp:45:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] v[i][j][op] = t + time; ^ user.cpp:45:37: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive] v[i][j][op] = t + time; ^ user.cpp:46:27: error: invalid types ‘std::queue<elem> [5][time_t(time_t*) throw () {aka long int(long int*) throw ()}]’ for array subscript Q[time].push( { i, j, op } ); ^ user.cpp: In function ‘int main()’: user.cpp:65:51: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (j = 0; j <= m; j++) d[i][j] = tr[S[j]]; ^

Ceva nu functioneaza?