Pagini recente » Borderou de evaluare (job #1038886) | Borderou de evaluare (job #2809024) | Borderou de evaluare (job #1744960) | Borderou de evaluare (job #1891776) | Borderou de evaluare (job #2268855)
Borderou de evaluare (job #2268855)
Raport evaluator
Compilare:
main.cpp: In function 'void solve()':
main.cpp:19:18: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int64_t* {aka long int*}' [-Wformat=]
scanf("%lld", &n);
^
main.cpp:22:51: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int64_t* {aka long int*}' [-Wformat=]
scanf("%lld %lld", &costNormal[i], &costSuper[i]);
^
main.cpp:22:51: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int64_t* {aka long int*}' [-Wformat=]
main.cpp:42:40: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t {aka long int}' [-Wformat=]
printf("Consumul minim = %lld.\n", sol);
^
main.cpp:19:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
main.cpp:22:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &costNormal[i], &costSuper[i]);
^
main.cpp: In function 'int main()':
main.cpp:46:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.in", "r", stdin);
^
main.cpp:47:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.out", "w", stdout);
^
main.cpp:50:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
main.cpp: In function 'void solve()':
main.cpp:27:28: warning: iteration 510 invokes undefined behavior [-Waggressive-loop-optimizations]
dp[k][sc] = dp[k - 1][sc] + costNormal[k];
~~~~~~~~~~~~^
main.cpp:26:27: note: within this loop
for (int64_t sc = 0; sc <= 510; ++sc) {
~~~^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 23ms | 393kb | OK | 100 |
Punctaj total | 100 |