Borderou de evaluare (job #628424)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Coborâre (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 28 ian. 2022 19:22:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:26: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
34 | q[dr] = i;
| ^
main.cpp:41:18: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
41 | int p = q[st];
| ^
main.cpp:43:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare]
43 | for (int j = 0; j < vect[p].size(); j++) {
| ~~^~~~~~~~~~~~~~~~
main.cpp:50:34: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
50 | q[dr] = i;
| ^
main.cpp:50:41: error: 'i' was not declared in this scope
50 | q[dr] = i;
| ^