Pagini recente » Borderou de evaluare (job #1983291) | Borderou de evaluare (job #1510332) | Borderou de evaluare (job #384313) | Borderou de evaluare (job #2070099) | Borderou de evaluare (job #1405364)
Borderou de evaluare (job #1405364)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d %d", &n, &t);
^
user.cpp:7:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:9:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &v[i]);
^
user.cpp:17:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d %d", &x, &y);
^
user.cpp:17:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:37:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", sol-x+1);
^
user.cpp:5:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("br.in", "r", stdin);
^
user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("br.out", "w", stdout);
^
user.cpp:7:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &t);
^
user.cpp:9:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp:17:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 10 |
2 | 0ms | 272kb | OK | 10 |
3 | 4ms | 268kb | OK | 10 |
4 | 8ms | 276kb | OK | 10 |
5 | 8ms | 272kb | OK | 10 |
6 | 8ms | 288kb | OK | 10 |
7 | 12ms | 368kb | OK | 10 |
8 | 12ms | 428kb | OK | 10 |
9 | 12ms | 456kb | OK | 10 |
10 | 12ms | 488kb | OK | 10 |
Punctaj total | 100 |