Borderou de evaluare (job #2674546)
Utilizator | Robert Vadastreanu Robert_VRV | Data | 19 noiembrie 2020 16:55:36 |
---|---|---|---|
Problema | Ruksak | Status | done |
Runda | Arhiva ICPC | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:26:49: error: 'greater' is not a member of 'std'
std::sort(price[i].begin(), price[i].end(), std::greater<int>());
^~~
main.cpp:26:62: error: expected primary-expression before 'int'
std::sort(price[i].begin(), price[i].end(), std::greater<int>());
^~~
main.cpp:12:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ruksak.in", "r", stdin);
^
main.cpp:13:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ruksak.out", "w", stdout);
^
main.cpp:16:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &g);
^
main.cpp:19:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &w, &p);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !