Pagini recente » Borderou de evaluare (job #565936) | Borderou de evaluare (job #2659145) | Borderou de evaluare (job #34879) | Borderou de evaluare (job #2736762) | Borderou de evaluare (job #2632622)
Borderou de evaluare (job #2632622)
Raport evaluator
Compilare:
main.cpp: In function 'void read()':
main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d%d", &n, &k);
^
main.cpp:12:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
main.cpp:14:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d", &cost[i]);
^
main.cpp: In function 'void print()':
main.cpp:38:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", dp[k][n]);
^
main.cpp: In function 'int main()':
main.cpp:45:23: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d", &tests);
^
main.cpp: In function 'void read()':
main.cpp:12:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:14:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cost[i]);
^
main.cpp: In function 'int main()':
main.cpp:42:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("antivirus.in", "r", stdin);
^
main.cpp:43:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("antivirus.out", "w", stdout);
^
main.cpp:45:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tests);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 524kb | OK | 10 |
2 | 4ms | 1048kb | OK | 10 |
3 | 4ms | 1048kb | OK | 10 |
4 | 65ms | 20316kb | OK | 10 |
5 | 83ms | 20316kb | OK | 10 |
6 | 251ms | 26214kb | OK | 10 |
7 | 231ms | 26214kb | OK | 10 |
8 | 259ms | 26345kb | OK | 10 |
9 | 268ms | 26214kb | OK | 10 |
10 | 252ms | 26337kb | OK | 10 |
Punctaj total | 100 |