Pagini recente » Borderou de evaluare (job #1378218) | Borderou de evaluare (job #2741936) | Borderou de evaluare (job #702362) | Borderou de evaluare (job #1613096) | Borderou de evaluare (job #2182746)
Borderou de evaluare (job #2182746)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:46:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d%d", &n, &m);
^
user.cpp:48:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &v[i]);
^
user.cpp:61:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", sum(b) - sum(a - 1));
^
user.cpp:45:9: warning: unused variable ‘q’ [-Wunused-variable]
int q, m, i, p, a, b;
^
user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.in", "r", stdin);
^
user.cpp:44:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("aib.out", "w", stdout);
^
user.cpp:46:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:48:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp:53:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &p);
^
user.cpp:55:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:60:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a, &b);
^
user.cpp:64:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1328kb | OK | 10 |
2 | 0ms | 1316kb | Incorect | 0 |
3 | 8ms | 1420kb | OK | 10 |
4 | 40ms | 1716kb | OK | 10 |
5 | 96ms | 1876kb | OK | 10 |
6 | 160ms | 2340kb | OK | 10 |
7 | 160ms | 2676kb | OK | 10 |
8 | 244ms | 2908kb | OK | 10 |
9 | 240ms | 2876kb | OK | 10 |
10 | 244ms | 2904kb | OK | 10 |
Punctaj total | 90 |