Borderou de evaluare (job #1050361)

Utilizator ericptsStavarache Petru Eric ericpts Data 8 decembrie 2013 15:31:27
Problema Radare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:15: error: ‘int time [3010]’ redeclared as different kind of symbol int time[MAX_N]; ^ 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: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 main()’: user.cpp:58:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] in >> time[i]; ^ user.cpp:58:21: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’ In file included from /usr/local/include/c++/4.8.0/fstream:38:0, from user.cpp:1: /usr/local/include/c++/4.8.0/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:75:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(j + time[node] <= p){ ^ user.cpp:75:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:75:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(j + time[node] <= p){ ^ user.cpp:76:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] DP[i + 1][j + time[node]] += DP[i][j]; ^ user.cpp:76:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:76:41: error: invalid types ‘int [3510][time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}]’ for array subscript DP[i + 1][j + time[node]] += DP[i][j]; ^ user.cpp:77:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(DP[i+1][j+time[node]] >= MOD) ^ user.cpp:77:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:77:40: error: invalid types ‘int [3510][time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}]’ for array subscript if(DP[i+1][j+time[node]] >= MOD) ^ user.cpp:78:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] DP[i+1][j+time[node]] -= MOD; ^ user.cpp:78:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]

Ceva nu functioneaza?