Borderou de evaluare (job #2268855)

Utilizator memecoinMeme Coin memecoin Data 25 octombrie 2018 14:02:06
Problema Calatorie interplanetara Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
123ms393kbOK100
Punctaj total100

Ceva nu functioneaza?