Borderou de evaluare (job #1374289)

Utilizator theprdvtheprdv theprdv Data 5 martie 2015 06:28:23
Problema Coach Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:8: error: ‘int time’ redeclared as different kind of symbol int n, time, gr[MAXN][MAXN], init_gr[MAXN][MAXN], p[2]; ^ 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:2: /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:19:11: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ fin >> n >> m >> time; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:2: /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 ‘int roy_floyd(int, int)’: user.cpp:40:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (gr[i][j] == time) ^ user.cpp: In function ‘int main()’: user.cpp:53:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i < or_drink.size() && !found; i++) ^ user.cpp:55:65: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (roy_floyd(or_drink[i], or_drink[j]) && gr[p[0]][p[1]] == time){ ^

Ceva nu functioneaza?