Borderou de evaluare (job #1903694)

Utilizator vladttturcuman vlad vladtt Data 5 martie 2017 12:36:24
Problema Reactor Status done
Runda prosoft2017-10 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:13: error: ‘int time [101]’ redeclared as different kind of symbol int time[101]; ^ 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 BinarySearch(int)’: user.cpp:72:20: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(time[mij] <= t) ^ user.cpp:72:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(time[mij] <= t) ^ user.cpp: In function ‘int main()’: user.cpp:90:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[1] = 0; ^ user.cpp:90:13: error: assignment of read-only location ‘*(time + 1u)’ time[1] = 0; ^ user.cpp:90:13: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:107:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[f] = time [f-1] + Min; ^ user.cpp:107:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[f] = time [f-1] + Min; ^ user.cpp:107:28: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:107:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[f] = time [f-1] + Min; ^ user.cpp:107:17: error: assignment of read-only location ‘*(time + ((sizetype)f))’ time[f] = time [f-1] + Min; ^ user.cpp:107:17: 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:123:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] af = after(t-time[x], j, p[x][j]); ^ user.cpp:123:32: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’

Ceva nu functioneaza?