Borderou de evaluare (job #2190653)
Utilizator | Data | 31 martie 2018 14:05:16 | |
---|---|---|---|
Problema | Livada3 | 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<long long>());
^~~
user.cpp:15:51: error: expected primary-expression before ‘long’
std::sort(help + 1, help + nr + 1, std::greater<long long>());
^~~~
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?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !