Borderou de evaluare (job #412136)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minnrk (clasa a 5-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 dec. 2018 16:59:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:29: error: no match for ‘operator=’ in ‘fin = fopen(((const char*)"minnrk.in"), ((const char*)"r"))’
user.cpp:10:29: note: candidates are:
/usr/include/libio.h:273:8: note: _IO_FILE& _IO_FILE::operator=(const _IO_FILE&)
/usr/include/libio.h:273:8: note: no known conversion for argument 1 from ‘FILE* {aka _IO_FILE*}’ to ‘const _IO_FILE&’
/usr/include/libio.h:273:8: note: _IO_FILE& _IO_FILE::operator=(_IO_FILE&&)
/usr/include/libio.h:273:8: note: no known conversion for argument 1 from ‘FILE* {aka _IO_FILE*}’ to ‘_IO_FILE&&’
user.cpp:11:31: error: no match for ‘operator=’ in ‘fout = fopen(((const char*)"minnrk.out"), ((const char*)"w"))’
user.cpp:11:31: note: candidates are:
/usr/include/libio.h:273:8: note: _IO_FILE& _IO_FILE::operator=(const _IO_FILE&)
/usr/include/libio.h:273:8: note: no known conversion for argument 1 from ‘FILE* {aka _IO_FILE*}’ to ‘const _IO_FILE&’
/usr/include/libio.h:273:8: note: _IO_FILE& _IO_FILE::operator=(_IO_FILE&&)
/usr/include/libio.h:273:8: note: no known conversion for argument 1 from ‘FILE* {aka _IO_FILE*}’ to ‘_IO_FILE&&’
user.cpp:12:14: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fgetc(FILE*)’
user.cpp:16:16: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fgetc(FILE*)’
user.cpp:18:23: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fscanf(FILE*, const char*, ...)’
user.cpp:19:13: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fclose(FILE*)’
user.cpp:24:28: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’
user.cpp:33:28: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’
user.cpp:38:21: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’
user.cpp:39:14: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fclose(FILE*)’