Borderou de evaluare (job #3462)

Utilizator avatar edic Eduard Ciuculescu edic IP ascuns
Problemă Romb (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 20 nov. 2012 14:15:54 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:9:18: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=] 9 | fscanf(fin,"%d",n); | ~^ ~ | | | | | int | int* main.cpp:20:30: warning: format '%c' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=] 20 | fscanf(fin,"%c",m[i][j+1]); | ~^ ~~~~~~~~~ | | | | char* int main.cpp:24:30: warning: format '%c' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=] 24 | fscanf(fin,"%c",m[i][j]); | ~^ ~~~~~~~ | | | | char* int main.cpp:32:27: warning: format '%c' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=] 32 | fscanf(fout,"%c",m[i+(j*2)][i+(j*2)]); | ~^ ~~~~~~~~~~~~~~~~~~~ | | | | char* int main.cpp:9:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%d",n); | ~~~~~~^~~~~~~~~~~~ main.cpp:20:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin,"%c",m[i][j+1]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:24:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 24 | fscanf(fin,"%c",m[i][j]); | ~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:32:19: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 32 | fscanf(fout,"%c",m[i+(j*2)][i+(j*2)]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:33:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 33 | fscanf(fout,"\n"); | ~~~~~~^~~~~~~~~~~ main.cpp:9:11: warning: 'n' is used uninitialized [-Wuninitialized] 9 | fscanf(fin,"%d",n); | ~~~~~~^~~~~~~~~~~~ main.cpp:7:9: note: 'n' was declared here 7 | int n,i,j,h; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 249 kb Killed by Signal 11 0
2 1 ms 249 kb Killed by Signal 11 0
3 1 ms 270 kb Killed by Signal 11 0
4 1 ms 249 kb Killed by Signal 11 0
5 2 ms 512 kb Killed by Signal 11 0
6 2 ms 249 kb Killed by Signal 11 0
7 2 ms 249 kb Killed by Signal 11 0
8 2 ms 249 kb Killed by Signal 11 0
9 1 ms 249 kb Killed by Signal 11 0
10 2 ms 249 kb Killed by Signal 11 0
Punctaj total 0