Borderou de evaluare (job #3005090)
Utilizator | Data | 16 martie 2023 19:17:06 | |
---|---|---|---|
Problema | Lupul Urias si Rau | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'vector' does not name a type
7 | vector < pair < int, int > > V;
| ^~~~~~
main.cpp: In function 'void Read()':
main.cpp:16:9: error: 'V' was not declared in this scope
16 | V.push_back(make_pair(B, A));
| ^
main.cpp:18:10: error: 'V' was not declared in this scope
18 | sort(V.begin(), V.end(), greater < pair < int, int > >());
| ^
main.cpp: In function 'void Task()':
main.cpp:24:5: error: 'vector' was not declared in this scope
24 | vector < pair < int, int > > :: iterator it = V.begin();
| ^~~~~~
main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
3 | #include <algorithm>
+++ |+#include <vector>
4 | using namespace std;
main.cpp:24:32: error: expected primary-expression before '>' token
24 | vector < pair < int, int > > :: iterator it = V.begin();
| ^
main.cpp:24:46: error: missing template arguments before 'it'
24 | vector < pair < int, int > > :: iterator it = V.begin();
| ^~
main.cpp:25:12: error: 'it' was not declared in this scope; did you mean 'int'?
25 | SUM += it -> first;
| ^~
| int
main.cpp:27:17: error: 'V' was not declared in this scope
27 | while(it != V.end())
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !