Borderou de evaluare (job #2744528)
Utilizator | Data | 24 aprilie 2021 20:05:08 | |
---|---|---|---|
Problema | Muzica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void push(int)':
main.cpp:24:12: error: no match for 'operator[]' (operand types are 'std::__cxx11::list<std::__cxx11::list<int> >' and 'int')
melodii[poz].push_back(x);
^
main.cpp: In function 'bool index(int)':
main.cpp:29:26: error: no match for 'operator[]' (operand types are 'std::__cxx11::list<std::__cxx11::list<int> >' and 'int')
for(int i=0;i<melodii[poz].size();i++){
^
main.cpp:30:19: error: no match for 'operator[]' (operand types are 'std::__cxx11::list<std::__cxx11::list<int> >' and 'int')
if(melodii[poz][i] == x){
^
main.cpp:31:20: error: no match for 'operator[]' (operand types are 'std::__cxx11::list<std::__cxx11::list<int> >' and 'int')
melodii[poz][i] = 0;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !