Pagini recente » Borderou de evaluare (job #3261745) | Borderou de evaluare (job #2394187) | Borderou de evaluare (job #2444643) | Borderou de evaluare (job #2509154) | Borderou de evaluare (job #1709313)
Borderou de evaluare (job #1709313)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:17:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &a[i]);
^
user.cpp:30:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", cost);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("twoton.in", "r", stdin);
^
user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("twoton.out", "w", stdout);
^
user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:17:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 428kb | OK | 10 | 100 |
2 | 0ms | 432kb | OK | 10 |
3 | 0ms | 436kb | OK | 10 |
4 | 0ms | 428kb | OK | 10 |
5 | 0ms | 432kb | OK | 10 |
6 | 0ms | 444kb | OK | 10 |
7 | 0ms | 436kb | OK | 10 |
8 | 0ms | 508kb | OK | 10 |
9 | 32ms | 1212kb | OK | 10 |
10 | 28ms | 1216kb | OK | 10 |
Punctaj total | 100 |