Borderou de evaluare (job #1252103)

Utilizator js3292618Andrei Mihai js3292618 Data 30 octombrie 2014 13:28:57
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.c:46:6: warning: return type of ‘main’ is not ‘int’ [-Wmain] long main(void) ^ user.c: In function ‘main’: user.c:53:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] scanf("%d %d", &n, &m); ^ user.c:53:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] user.c:57:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] scanf("%d", &H[N + i]); ^ user.c:62:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] scanf("%d %d %d", &op, &a, &b); ^ user.c:62:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] user.c:62:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘long int *’ [-Wformat=] user.c:64:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n", query(1, 0, N - 1, a - 1, b - 1)); ^ user.c:50:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(IN, "r", stdin); ^ user.c:51:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen(OUT, "w", stdout); ^ user.c:53:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.c:57:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &H[N + i]); ^ user.c:62:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &op, &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms264kbOK1010
24ms276kbOK1010
38ms284kbOK1010
432ms320kbOK1010
528ms812kbWall time limit exceeded.00
628ms812kbWall time limit exceeded.00
728ms808kbWall time limit exceeded.0
828ms816kbWall time limit exceeded.0
928ms816kbWall time limit exceeded.0
1028ms812kbWall time limit exceeded.0
Punctaj total40

Ceva nu functioneaza?