Borderou de evaluare (job #3158870)
Utilizator | Data | 19 octombrie 2023 22:52:46 | |
---|---|---|---|
Problema | Secvente | Status | done |
Runda | HLO 2023 - Cls 10 - Tema 0 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:9: error: 'vector' was not declared in this scope
7 | vector<int> v[3];
| ^~~~~~
main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <fstream>
+++ |+#include <vector>
2 | using namespace std;
main.cpp:7:16: error: expected primary-expression before 'int'
7 | vector<int> v[3];
| ^~~
main.cpp:14:13: error: 'v' was not declared in this scope
14 | v[x % 3].push_back(i);
| ^
main.cpp:16:19: error: 'v' was not declared in this scope
16 | answer += v[0].size();
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !