Pagini recente » Cod sursa (job #1960276) | Borderou de evaluare (job #1730342) | Borderou de evaluare (job #2004941) | Borderou de evaluare (job #1645402) | Borderou de evaluare (job #2014274)
Borderou de evaluare (job #2014274)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d %d", &S[i], &P[i]);
^
user.cpp:44:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
fprintf(stderr, "0 (y=%ld) => +1 ; platou: %d - %d (y=%ld); -1 => xmax=%d (y=%ld); %d\n", y1, x1 - d1, x2 + d2, yx1, xmax, y2, (y2 > y1));
^
user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=]
user.cpp:62:139: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘long int’ [-Wformat=]
user.cpp:37:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bile5.in", "r", stdin);
^
user.cpp:38:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bile5.out", "w", stdout);
^
user.cpp:39:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld", &T);
^
user.cpp:42:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld", &N);
^
user.cpp:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &S[i], &P[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 272kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 4ms | 268kb | OK | 10 |
5 | 16ms | 280kb | OK | 10 |
6 | 80ms | 304kb | OK | 10 |
7 | 88ms | 324kb | OK | 10 |
8 | 132ms | 324kb | OK | 10 |
9 | 124ms | 324kb | OK | 10 |
10 | 120ms | 324kb | OK | 10 |
Punctaj total | 100 |