Borderou de evaluare (job #622039)

Utilizator avatar GicuR Gicu Rata GicuR IP ascuns
Problemă Jetoane (clasa a 7-a) Compilator cpp-32
Rundă lasm_21_12_2021_cl12 Status evaluat
Dată 21 dec. 2021 14:41:48 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:48:9: error: 'foa' was not declared in this scope; did you mean 'fo'? 48 | foa = fopen("jetoane.out", "w"); | ^~~ | fo main.cpp:49:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] 49 | fscanf(fi,"%d%d",s,a); | ~^ ~ | | | | int* int main.cpp:49:23: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=] 49 | fscanf(fi,"%d%d",s,a); | ~^ ~ | | | | int* int main.cpp:49:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 49 | fscanf(fi,"%d%d",s,a); | ~~~~~~^~~~~~~~~~~~~~~