Borderou de evaluare (job #1393099)

Utilizator gabimoiseMoise Gabriel gabimoise Data 19 martie 2015 08:45:01
Problema Aranjare 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:20:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld %ld\n",2*i,p[n+i]); ^ user.cpp:20:33: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:26:35: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld %ld\n",2*i+1,p[i+1]); ^ user.cpp:26:35: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:10:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aranjare2.in","r",stdin); ^ user.cpp:11:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aranjare2.out","w",stdout); ^ user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK5
20ms444kbOK5
30ms448kbOK5
40ms448kbOK5
50ms444kbOK5
60ms444kbOK5
70ms448kbOK5
80ms448kbOK5
90ms448kbOK5
100ms452kbOK5
110ms456kbOK5
120ms456kbOK5
130ms460kbOK5
140ms460kbOK5
1512ms648kbOK5
1624ms928kbOK5
1768ms1644kbOK5
1876ms1700kbOK5
1988ms1996kbOK5
2088ms2000kbOK5
Punctaj total100

Ceva nu functioneaza?