Borderou de evaluare (job #3129286)
Utilizator | Data | 13 mai 2023 20:08:42 | |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:20: error: 'vector' was not declared in this scope
13 | unordered_map<int, vector<int>> hashTable;
| ^~~~~~
main.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
6 | #include <unordered_map>
+++ |+#include <vector>
7 |
main.cpp:13:30: error: template argument 2 is invalid
13 | unordered_map<int, vector<int>> hashTable;
| ^~
main.cpp:13:30: error: template argument 5 is invalid
main.cpp:14:1: error: 'vector' does not name a type
14 | vector<int> elems;
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:21:5: error: 'elems' was not declared in this scope
21 | elems.resize(n);
| ^~~~~
main.cpp:36:31: error: request for member 'find' in 'hashTable', which is of non-class type 'int'
36 | if (hashTable.find(sum2) != hashTable.end()) {
| ^~~~
main.cpp:36:55: error: request for member 'end' in 'hashTable', which is of non-class type 'int'
36 | if (hashTable.find(sum2) != hashTable.end()) {
| ^~~
main.cpp:37:21: error: 'vector' was not declared in this scope
37 | vector<int> sec = hashTable[sum2];
| ^~~~~~
main.cpp:37:21: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
main.cpp:37:28: error: expected primary-expression before 'int'
37 | vector<int> sec = hashTable[sum2];
| ^~~
main.cpp:38:87: error: 'sec' was not declared in this scope
38 | myOut << elems[i] << ' ' << elems[j] << ' ' << elems[h] << ' ' << sec[0] << ' ' << sec[1] << ' ' << sec[2];
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !