Borderou de evaluare (job #2877041)
Utilizator | Data | 24 martie 2022 08:54:42 | |
---|---|---|---|
Problema | Secventa 5 | 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:61:33: error: invalid initialization of reference of type 'std::unordered_map<int, int>&' from expression of type 'std::unordered_map<unsigned int, int>'
61 | push_val_back(dq_l_max, freq_l_max, count_dist_max, v, i);
| ^~~~~~~~~~
main.cpp:11:70: note: in passing argument 2 of 'void push_val_back(std::deque<int>&, std::unordered_map<int, int>&, int&, std::vector<int>&, const int&)'
11 | void push_val_back(std::deque<int> &d, std::unordered_map<int, int> &m, int &count_dist, std::vector<int> &v,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:62:33: error: invalid initialization of reference of type 'std::unordered_map<int, int>&' from expression of type 'std::unordered_map<unsigned int, int>'
62 | push_val_back(dq_l_min, freq_l_min, count_dist_min, v, i);
| ^~~~~~~~~~
main.cpp:11:70: note: in passing argument 2 of 'void push_val_back(std::deque<int>&, std::unordered_map<int, int>&, int&, std::vector<int>&, const int&)'
11 | void push_val_back(std::deque<int> &d, std::unordered_map<int, int> &m, int &count_dist, std::vector<int> &v,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:65:59: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<unsigned int>'
65 | pop_val(dq_l_max, freq_l_max, count_dist_max, v);
| ^
main.cpp:31:116: note: in passing argument 4 of 'int pop_val(std::deque<int>&, std::unordered_map<unsigned int, int>&, int&, const std::vector<int>&)'
31 | int pop_val(std::deque<int> &d, std::unordered_map<unsigned int, int> &m, int &count_dist, const std::vector<int> &v) {
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:70:73: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<unsigned int>'
70 | last_popped = pop_val(dq_l_min, freq_l_min, count_dist_min, v);
| ^
main.cpp:31:116: note: in passing argument 4 of 'int pop_val(std::deque<int>&, std::unordered_map<unsigned int, int>&, int&, const std::vector<int>&)'
31 | int pop_val(std::deque<int> &d, std::unordered_map<unsigned int, int> &m, int &count_dist, const std::vector<int> &v) {
| ~~~~~~~~~~~~~~~~~~~~~~~~^
main.cpp:73:66: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<unsigned int>'
73 | push_val_front(dq_l_min, freq_l_min, count_dist_min, v, last_popped);
| ^
main.cpp:21:124: note: in passing argument 4 of 'void push_val_front(std::deque<int>&, std::unordered_map<unsigned int, int>&, int&, const std::vector<int>&, const int&)'
21 | void push_val_front(std::deque<int> &d, std::unordered_map<unsigned int, int> &m, int &count_dist, const std::vector<int> &v,
| ~~~~~~~~~~~~~~~~~~~~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !