Borderou de evaluare (job #1219466)

Utilizator rangerChihai Mihai ranger Data 14 august 2014 12:05:18
Problema Pariuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:26: error: ‘int time [200010]’ redeclared as different kind of symbol int n,m,x,y,i,time[200010],money[200010],k=0; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /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 ‘int exista(int)’: user.cpp:12:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[v].size();++i) ^ user.cpp: In function ‘int main()’: user.cpp:26:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[++k]=x; ^ user.cpp:26:26: error: assignment of read-only location ‘*(time + ((sizetype)(++ k)))’ time[++k]=x; ^ user.cpp:26:26: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:37:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] cout<<time[i]<<" "<<money[i]<<" "; ^

Ceva nu functioneaza?