Borderou de evaluare (job #1259083)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26: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:26:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:28:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d",&v[i].t,&v[i].c); ^ user.cpp:28:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:49:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",maxs); ^ user.cpp:26: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:28:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&v[i].t,&v[i].c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms260kbOK10
20ms260kbIncorect0
30ms264kbIncorect0
44ms260kbIncorect0
520ms268kbIncorect0
620ms268kbIncorect0
720ms264kbIncorect0
884ms268kbIncorect0
980ms264kbIncorect0
1080ms264kbIncorect0
Punctaj total10

Ceva nu functioneaza?