Borderou de evaluare (job #168870)

Utilizator avatar AlexNiculae Niculae Alexandru-Vlad AlexNiculae IP ascuns
Problemă Ants Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 26 nov. 2015 15:14:01 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:25:17: error: ‘int select’ redeclared as different kind of symbol /usr/include/i386-linux-gnu/sys/select.h:107:12: error: previous declaration of ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’ user.cpp: In function ‘int main()’: user.cpp:106:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:106:33: error: invalid operands of types ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ and ‘int’ to binary ‘operator%’ user.cpp:107:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:107:33: error: invalid operands of types ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ and ‘int’ to binary ‘operator%’ user.cpp:108:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:108:33: error: invalid operands of types ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ and ‘int’ to binary ‘operator%’ user.cpp:109:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:109:33: error: invalid operands of types ‘int (*)(int, fd_set*, fd_set*, fd_set*, timeval*)’ and ‘int’ to binary ‘operator%’ user.cpp:114:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ll {aka long long int}’ [-Wformat] user.cpp:116:24: error: assignment of function ‘int select(int, fd_set*, fd_set*, fd_set*, timeval*)’ user.cpp:116:24: error: cannot convert ‘ll {aka long long int}’ to ‘int(int, fd_set*, fd_set*, fd_set*, timeval*)’ in assignment user.cpp: In function ‘void read(int&)’: user.cpp:128:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:138:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp: In function ‘int main()’: user.cpp:92:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:93:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:95:38: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]