Borderou de evaluare (job #1345690)

Utilizator smaraldaSmaranda Dinu smaralda Data 17 februarie 2015 20:03:30
Problema Sant Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d%d", &s, &n, &c); ^ user.cpp:25:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:27:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d%d", &l[i], &p[i]); ^ user.cpp:27:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:23:20: warning: unused variable ‘k’ [-Wunused-variable] int tip, i, j, k, c, inew, jnew; ^ user.cpp:23:26: warning: unused variable ‘inew’ [-Wunused-variable] int tip, i, j, k, c, inew, jnew; ^ user.cpp:23:32: warning: unused variable ‘jnew’ [-Wunused-variable] int tip, i, j, k, c, inew, jnew; ^ user.cpp:21:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sant.in", "r", stdin); ^ user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sant.out", "w", stdout); ^ user.cpp:25:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &s, &n, &c); ^ user.cpp:27:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &l[i], &p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbOK10
20ms288kbOK10
30ms308kbOK10
40ms324kbOK10
50ms400kbOK10
60ms484kbOK10
70ms516kbOK10
84ms600kbOK10
912ms676kbOK10
100ms292kbOK10
Punctaj total100

Ceva nu functioneaza?