Borderou de evaluare (job #948084)

Utilizator CosminRusuCosmin Rusu CosminRusu Data 9 mai 2013 14:47:29
Problema Painting Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:40: error: ‘unsigned int time [100005]’ redeclared as different kind of symbol unsigned int color[100005], time[100005], n, m; ^ In file included from /usr/include/pthread.h:26:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148, from /usr/local/include/c++/4.8.0/ext/atomicity.h:33, from /usr/local/include/c++/4.8.0/bits/ios_base.h:39, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:4: /usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘void dfs(int)’: user.cpp:24:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[A[node][i]] < time[node]) ^ user.cpp:24:44: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[A[node][i]] < time[node]) ^ user.cpp:26:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[ A[node][i] ] = time[node]; ^ user.cpp:26:47: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[ A[node][i] ] = time[node]; ^ user.cpp:26:36: error: assignment of read-only location ‘*(time + ((sizetype)A[node].std::vector<_Tp, _Alloc>::operator[]<unsigned int, std::allocator<unsigned int> >(i)))’ time[ A[node][i] ] = time[node]; ^ user.cpp:26:36: error: cannot convert ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp: In function ‘int main()’: user.cpp:48:16: warning: pointer to a function used in arithmetic [-Wpointer-arith] time [a] = i; ^ user.cpp:48:18: error: assignment of read-only location ‘*(time + ((sizetype)a))’ time [a] = i; ^ user.cpp:48:18: error: cannot convert ‘unsigned int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment

Ceva nu functioneaza?