Borderou de evaluare (job #1128814)

Utilizator VictoriaNevTascau Victoria VictoriaNev Data 27 februarie 2014 18:50:36
Problema Jetoane Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%ld%ld",&m,&n); ^ user.cpp:9:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:11:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] {fscanf(f,"%ld",&x);v[x]+=1;} ^ user.cpp:13:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] {fscanf(f,"%ld",&x);v[x]+=2;} ^ user.cpp:16:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] {fprintf(g,"%ld ",i);p1=i;break;} ^ user.cpp:19:24: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] {fprintf(g,"%ld ",i);p2=i;break;} ^ user.cpp:27:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g,"%ld ",1); ^ user.cpp:30:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(g,"%ld ",2); ^ user.cpp:31:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] else fprintf(g,"%ld ",0); ^ user.cpp:18:12: warning: array subscript is above array bounds [-Warray-bounds] if (v[i]==3) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbOK5
20ms236kbIncorect0
34ms348kbIncorect0
44ms324kbOK5
54ms344kbOK5
64ms440kbIncorect0
74ms492kbOK5
84ms560kbOK5
94ms500kbIncorect0
104ms544kbIncorect0
114ms476kbOK5
124ms484kbOK5
134ms248kbIncorect0
148ms292kbIncorect0
158ms480kbOK5
1616ms480kbOK5
1712ms388kbIncorect0
1816ms440kbIncorect0
1916ms480kbIncorect0
2020ms452kbOK5
Punctaj total50

Ceva nu functioneaza?