Borderou de evaluare (job #365523)

Utilizator avatar MATI2006 hai ca da MATI2006 IP ascuns
Problemă Antiterra (clasa a 5-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 14 mar. 2018 19:17:52 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:8:34: error: no match for ‘operator=’ in ‘fin = fopen(((const char*)"antiterra.in"), ((const char*)"r"))’ user.cpp:8:34: 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:9:36: error: no match for ‘operator=’ in ‘fout = fopen(((const char*)"antiterra.out"), ((const char*)"w"))’ user.cpp:9:36: 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:10:25: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fscanf(FILE*, const char*, ...)’ user.cpp:11:16: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fgetc(FILE*)’ user.cpp:22:27: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fscanf(FILE*, const char*, ...)’ user.cpp:23:18: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fgetc(FILE*)’ user.cpp:27:15: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fclose(FILE*)’ user.cpp:28:28: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’ user.cpp:29:16: error: cannot convert ‘FILE {aka _IO_FILE}’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fclose(FILE*)’