Borderou de evaluare (job #2190649)

Utilizator vladisimovlad coneschi vladisimo Data 31 martie 2018 13:58:23
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool isOk(int)’: user.cpp:15:38: error: ‘greater’ is not a member of ‘std’ std::sort(help + 1, help + nr + 1, std::greater <int>()); ^~~ user.cpp:15:52: error: expected primary-expression before ‘int’ std::sort(help + 1, help + nr + 1, std::greater <int>()); ^~~ user.cpp: In function ‘int main()’: user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("checkin.in", "r", stdin); ^ user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("checkin.out", "w", stdout); ^ user.cpp:40:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:42:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a[i], &b[i]); ^ user.cpp:43:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &nrStud, &nrBags); ^

Ceva nu functioneaza?