Borderou de evaluare (job #465137)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Memorie | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 apr. 2019 16:14:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read(int&)’:
user.cpp:16:35: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
user.cpp: In function ‘int main()’:
user.cpp:40:11: error: no matching function for call to ‘read(long long int&)’
user.cpp:40:11: note: candidates are:
/usr/include/i386-linux-gnu/bits/unistd.h:35:1: note: ssize_t read(int, void*, size_t)
/usr/include/i386-linux-gnu/bits/unistd.h:35:1: note: candidate expects 3 arguments, 1 provided
user.cpp:12:6: note: void read(int&)
user.cpp:12:6: note: no known conversion for argument 1 from ‘long long int’ to ‘int&’
user.cpp:41:11: error: no matching function for call to ‘read(long long int&)’
user.cpp:41:11: note: candidates are:
/usr/include/i386-linux-gnu/bits/unistd.h:35:1: note: ssize_t read(int, void*, size_t)
/usr/include/i386-linux-gnu/bits/unistd.h:35:1: note: candidate expects 3 arguments, 1 provided
user.cpp:12:6: note: void read(int&)
user.cpp:12:6: note: no known conversion for argument 1 from ‘long long int’ to ‘int&’
user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp: In function ‘void read(int&)’:
user.cpp:21:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:27:40: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]