Borderou de evaluare (job #3260505)
Utilizator | Data | 2 decembrie 2024 16:58:43 | |
---|---|---|---|
Problema | Datorii2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add_componenta(std::vector<std::pair<int, int> >&, std::vector<std::pair<int, int> >&)':
main.cpp:30:5: error: 'sort' was not declared in this scope; did you mean 'short'?
30 | sort(p.begin(), p.end(), greater< pair<int, int> >());
| ^~~~
| short
main.cpp:34:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i = 0; i < p.size(); i++){
| ~~^~~~~~~~~~
main.cpp:35:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | while(p[i].first > 0 && it < n.size()){
| ~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:93:25: error: 'log2' was not declared in this scope
93 | int pozi = (int)log2(diff);
| ^~~~
main.cpp:103:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<operatie>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
103 | for(int i = 0; i < sol.size(); i++){
| ~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !