Borderou de evaluare (job #581195)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Turist (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 feb. 2021 22:09:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:17:1: error: 'vector' does not name a type
17 | vector <pair <int, int>> sol;
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:53:7: error: 'sol' was not declared in this scope; did you mean 'col'?
53 | sol.push_back({1, 0});
| ^~~
| col
main.cpp:55:7: error: 'sol' was not declared in this scope; did you mean 'col'?
55 | sol.push_back({0, 1});
| ^~~
| col
main.cpp:57:7: error: 'sol' was not declared in this scope; did you mean 'col'?
57 | sol.push_back({-1, 0});
| ^~~
| col
main.cpp:59:7: error: 'sol' was not declared in this scope; did you mean 'col'?
59 | sol.push_back({0, -1});
| ^~~
| col
main.cpp:63:7: error: 'sol' was not declared in this scope; did you mean 'col'?
63 | sol.push_back({(x / gcd), (y / gcd)});
| ^~~
| col
main.cpp:67:9: error: 'sol' was not declared in this scope; did you mean 'col'?
67 | can = sol[1]; cnt = 1;
| ^~~
| col
main.cpp: In function 'int directie(int, int, int, int)':
main.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
36 | }
| ^