Borderou de evaluare (job #1627923)

Utilizator teodor440Teodor Tonghioiu teodor440 Data 3 martie 2016 19:26:08
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d", &n); ^ user.cpp:21:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^ user.cpp:23:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] for (i = 1; i <= n; i++) printf("%d ", a[i]); ^ user.cpp:17:9: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp:18:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.in", "r", stdin); ^ user.cpp:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("algsort.out", "w", stdout); ^ user.cpp:20:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:21:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms440kbOK520
20ms444kbOK5
30ms440kbOK5
40ms444kbOK5
50ms440kbOK520
60ms440kbOK5
70ms440kbOK5
80ms436kbOK5
90ms424kbWall time limit exceeded.00
100ms424kbWall time limit exceeded.0
110ms420kbWall time limit exceeded.0
120ms424kbWall time limit exceeded.0
130ms428kbWall time limit exceeded.00
140ms432kbWall time limit exceeded.0
150ms420kbWall time limit exceeded.0
160ms420kbWall time limit exceeded.0
170ms424kbWall time limit exceeded.00
180ms424kbWall time limit exceeded.0
190ms424kbWall time limit exceeded.0
200ms424kbWall time limit exceeded.0
Punctaj total40

Ceva nu functioneaza?