Borderou de evaluare (job #3137131)
Utilizator | Data | 11 iunie 2023 13:42:10 | |
---|---|---|---|
Problema | Planificare | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:5: error: 'sort' was not declared in this scope; did you mean 'short'?
24 | sort(v+1, v+n+1);
| ^~~~
| short
main.cpp:29:26: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
29 | if (shows.size() == k && -shows.top() <= v[i].first) shows.pop(), ok = true;
| ~~~~~~~~~~~~~^~~~
main.cpp:30:31: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | else if (shows.size() < k) ok = true;
| ~~~~~~~~~~~~~^~~
main.cpp:19:15: warning: unused variable 'occupied' [-Wunused-variable]
19 | int n, k, occupied = 0, cnt = 0;
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !