Borderou de evaluare (job #836928)

Utilizator stef1995mmarcu stefan ovidiu stef1995m Data 16 decembrie 2012 22:08:01
Problema Painting Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6: error: ‘int time [100005]’ redeclared as different kind of symbol /usr/include/time.h:186: error: previous declaration of ‘time_t time(time_t*)’ user.cpp: In function ‘void df(int, int, int)’: user.cpp:12: warning: comparison between signed and unsigned integer expressions user.cpp:14: warning: pointer to a function used in arithmetic user.cpp:14: error: ISO C++ forbids comparison between pointer and integer user.cpp:15: warning: pointer to a function used in arithmetic user.cpp:15: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’ user.cpp:15: error: initializing argument 3 of ‘void df(int, int, int)’ user.cpp:13: warning: suggest explicit braces to avoid ambiguous ‘else’ user.cpp: In function ‘void read()’: user.cpp:29: warning: pointer to a function used in arithmetic user.cpp:29: error: assignment of read-only location ‘*(time + ((unsigned int)i))’ user.cpp:29: error: cannot convert ‘const int’ to ‘time_t(time_t*)’ in assignment user.cpp:32: warning: pointer to a function used in arithmetic user.cpp:32: error: assignment of read-only location ‘*(time + ((unsigned int)i))’ user.cpp:32: error: cannot convert ‘const int’ to ‘time_t(time_t*)’ in assignment user.cpp:37: warning: pointer to a function used in arithmetic user.cpp:37: error: assignment of read-only location ‘*(time + ((unsigned int)nod))’ user.cpp:37: error: cannot convert ‘int’ to ‘time_t(time_t*)’ in assignment user.cpp:39: warning: pointer to a function used in arithmetic user.cpp:39: error: ISO C++ forbids comparison between pointer and integer user.cpp:40: warning: pointer to a function used in arithmetic user.cpp:40: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’ user.cpp:40: error: initializing argument 3 of ‘void df(int, int, int)’ user.cpp:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp: In function ‘int main()’: user.cpp:49: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:50: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result

Ceva nu functioneaza?