Borderou de evaluare (job #2606721)

Utilizator giotoPopescu Ioan gioto Data 28 aprilie 2020 12:57:19
Problema Popcorn Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'stare solve()': main.cpp:73:20: error: narrowing conversion of '0.0' from 'double' to 'int' inside { } [-Wnarrowing] dp[0] = {0.0, 0}; ^ main.cpp: In function 'int main()': main.cpp:97:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("popcorn.in", "r", stdin); ^ main.cpp:98:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("popcorn.out", "w", stdout); ^ main.cpp:100:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ main.cpp:103:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &x, &y, &c); ^ Non zero exit status: 1

Ceva nu functioneaza?