Borderou de evaluare (job #1800349)

Utilizator perticas_catalinperticas catalin perticas_catalin Data 7 noiembrie 2016 18:19:11
Problema Lapte Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘std::vector<std::pair<int, int> > canDrink(int)’: user.cpp:60:40: error: ‘reverse’ was not declared in this scope reverse(answers.begin(), answers.end()); ^ user.cpp: In function ‘int main()’: user.cpp:96:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < answers.size(); ++i) ^ user.cpp:83:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("lapte.in", "r", stdin); ^ user.cpp:84:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("lapte.out", "w", stdout); ^ user.cpp:86:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d %d", &N, &L); ^ user.cpp:87:63: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 1; i <= N; ++i) scanf ("%d %d", &A[i], &B[i]); ^

Ceva nu functioneaza?