Borderou de evaluare (job #2076306)
Utilizator | Data | 26 noiembrie 2017 13:55:13 | |
---|---|---|---|
Problema | Ciclu Eulerian | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void caut(int)’:
user.cpp:27:33: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
if(nc==mc[vecin][0].first)
^
user.cpp:28:37: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
s.push(mc[vecin][0].second);
^
user.cpp:29:38: error: no match for ‘operator[]’ (operand types are ‘std::pair<int, int>’ and ‘int’)
else s.push(mc[vecin][0].first);
^
user.cpp: In function ‘int main()’:
user.cpp:48:15: error: ‘struct std::pair<int, int>’ has no member named ‘push_back’
mc[i].push_back({a,b});
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !