Borderou de evaluare (job #1698198)

Utilizator al.mocanuAlexandru Mocanu al.mocanu Data 3 mai 2016 22:51:49
Problema Tempest Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:16:11: error: ‘long long int time’ redeclared as different kind of symbol long long time; ^ 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/basic_string.h:39, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /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 dfs(int, int)’: user.cpp:23:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(t > time) ^ user.cpp:30:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < l[node].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:53:8: error: assignment of function ‘time_t time(time_t*)’ time = 0; ^ user.cpp:53:8: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:61:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] time += G[x].c; ^ user.cpp:61:9: error: assignment of function ‘time_t time(time_t*)’ user.cpp:61:9: 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:66:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < nodes.size(); i++) ^ user.cpp:35:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tempest.in", "r", stdin); ^ user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tempest.in", "r", stdout); ^ user.cpp:37:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:43:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d", &n, &m, &s, &d); ^ user.cpp:47:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &x, &y, &z);

Ceva nu functioneaza?