Borderou de evaluare (job #1895161)

Utilizator VisanCosminVisan Tudor Cosmin VisanCosmin Data 27 februarie 2017 20:21:17
Problema Asmax Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void rezolva(int)’: user.cpp:15:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0;j<a[u].size();j++) ^ user.cpp:13:19: warning: unused variable ‘ret’ [-Wunused-variable] long suma = 0,ret; ^ user.cpp: In function ‘int main()’: user.cpp:32:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&N); ^ user.cpp:34:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&val[i]); ^ user.cpp:38:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d",&x,&y); ^ user.cpp:38:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:43:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",val[1]); ^ user.cpp:32:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^ user.cpp:34:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&val[i]); ^ user.cpp:38:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms1012kbIncorect0
20ms636kbIncorect0
30ms644kbIncorect0
40ms636kbIncorect0
50ms632kbOK10
60ms644kbOK10
78ms916kbIncorect0
820ms1008kbIncorect0
916ms1004kbIncorect0
1016ms1008kbIncorect0
Punctaj total20

Ceva nu functioneaza?