Borderou de evaluare (job #754065)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Skyline (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 ian. 2024 21:11:04 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:22:5: error: 'vector' was not declared in this scope
22 | vector<int> s;
| ^~~~~~
main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
2 | #include <stack>
+++ |+#include <vector>
3 | using namespace std;
main.cpp:22:12: error: expected primary-expression before 'int'
22 | vector<int> s;
| ^~~
main.cpp:24:17: error: 's' was not declared in this scope
24 | while (!s.empty() && segmente[s.back()].inaltime >= segmente[i].inaltime){
| ^
main.cpp:27:13: error: 's' was not declared in this scope
27 | if (s.empty()){
| ^
main.cpp:32:9: error: 's' was not declared in this scope
32 | s.push_back(i);
| ^
main.cpp:34:5: error: 's' was not declared in this scope
34 | s.clear();
| ^