Borderou de evaluare (job #1259074)

Utilizator VisanCosminVisan Tudor Cosmin VisanCosmin Data 9 noiembrie 2014 18:01:03
Problema Carnati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:44:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&n,&p); ^ user.cpp:44:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:46:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&t[i],&c[i]); ^ user.cpp:46:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:65:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",maxs-p); ^ user.cpp:44:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&p); ^ user.cpp:46:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&t[i],&c[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms272kbOK10
30ms276kbIncorect0
44ms272kbIncorect0
520ms280kbIncorect0
620ms288kbIncorect0
720ms288kbIncorect0
888ms296kbIncorect0
988ms296kbIncorect0
1088ms292kbIncorect0
Punctaj total20

Ceva nu functioneaza?