Pagini recente » Borderou de evaluare (job #1808890) | Borderou de evaluare (job #2823221) | Borderou de evaluare (job #2419751) | Borderou de evaluare (job #2586010) | Borderou de evaluare (job #2678042)
Borderou de evaluare (job #2678042)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d %d", &n, &G);
^
main.cpp:9:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
main.cpp:12:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d", &g[i]);
^
main.cpp:20:37: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d %d\n", maxx, dp[maxx]);
^
main.cpp:20:37: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
main.cpp:24:36: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d\n", maxx - i);
^
main.cpp:7:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ghiozdan.in", "r", stdin);
^
main.cpp:8:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ghiozdan.out", "w", stdout);
^
main.cpp:9:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &G);
^
main.cpp:12:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &g[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 22ms | 262kb | OK | 10 |
4 | 902ms | 655kb | OK | 10 |
5 | 134ms | 655kb | OK | 10 |
6 | 136ms | 262kb | OK | 10 |
7 | 864ms | 655kb | OK | 10 |
8 | 2002ms | 786kb | Time limit exceeded | 0 |
9 | 2001ms | 917kb | Time limit exceeded | 0 |
10 | 2000ms | 917kb | Time limit exceeded | 0 |
Punctaj total | 70 |