Borderou de evaluare (job #2255678)

Utilizator AndreiVisoiuAndrei Visoiu AndreiVisoiu Data 7 octombrie 2018 13:58:15
Problema Telecab Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int time(int, int)’: user.cpp:38:34: error: ‘inf’ was not declared in this scope return (re == -1) ? re = inf : re; ^~~ user.cpp: In function ‘int main()’: user.cpp:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("telecab.in", "r", stdin); ^ user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("telecab.out", "w", stdout); ^ user.cpp:49:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i %i", &N, &K, &S); ^ user.cpp:52:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", &H[i]); ^

Ceva nu functioneaza?