Borderou de evaluare (job #1296607)

Utilizator jordasIordache Andrei Alexandru jordas Data 21 decembrie 2014 12:51:29
Problema Project management Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:16: error: ‘int time [101]’ redeclared as different kind of symbol int n,time[101],m[101][101],i,j; ^ 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 ‘void read()’: user.cpp:18:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] x>>time[i]; ^ user.cpp:18:18: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long int(long int*)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp: In function ‘void FirstQuestion()’: user.cpp:33:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] finish[i]=time[i]; ^ user.cpp:33:26: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] user.cpp:58:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] finish[i]=time[i]+waiting_time; ^ user.cpp:58:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] finish[i]=time[i]+waiting_time; ^ user.cpp:58:38: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive] finish[i]=time[i]+waiting_time; ^ user.cpp:90:41: warning: pointer to a function used in arithmetic [-Wpointer-arith] start_max[imp]=finish_time-time[imp]; ^ user.cpp:90:41: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’ user.cpp:104:63: warning: pointer to a function used in arithmetic [-Wpointer-arith] start_max[queue[j]]=start_max[e]-time[queue[j]]; ^ user.cpp:104:63: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’ user.cpp:106:46: warning: pointer to a function used in arithmetic [-Wpointer-arith] else if(start_max[e]-time[m[e][k]]<start_max[m[e][k]]) ^

Ceva nu functioneaza?