Borderou de evaluare (job #34094)

Utilizator avatar sever_nastase Sever Nastase sever_nastase IP ascuns
Problemă Gardul (clasa a 6-a) Compilator cpp
Rundă Concurs clasa a 5-a Status evaluat
Dată 4 dec. 2013 12:15:32 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:9:51: warning: writing into constant object (argument 3) [-Wformat] user.cpp:9:51: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘const char*’ [-Wformat] user.cpp:9:51: warning: writing into constant object (argument 4) [-Wformat] user.cpp:9:51: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘const char*’ [-Wformat] user.cpp:9:51: warning: writing into constant object (argument 5) [-Wformat] user.cpp:9:51: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘const char*’ [-Wformat] user.cpp:10:8: error: too few arguments to function ‘int fclose(FILE*)’ /usr/include/stdio.h:238:12: note: declared here user.cpp:12:1: error: expected ‘;’ before ‘albastru’ user.cpp:22:30: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fclose(FILE*)’ user.cpp:23:48: error: ‘fprinrf’ was not declared in this scope user.cpp:25:5: error: expected ‘;’ before ‘return’ user.cpp:9:52: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]