Borderou de evaluare (job #3131697)
Utilizator | Data | 21 mai 2023 09:26:53 | |
---|---|---|---|
Problema | Loto | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:18:10: error: 'vector' is not a member of 'std'
18 | std::vector<int> v;
| ^~~~~~
main.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
4 | #include <algorithm>
+++ |+#include <vector>
5 |
main.cpp:18:17: error: expected primary-expression before 'int'
18 | std::vector<int> v;
| ^~~
main.cpp:24:9: error: 'v' was not declared in this scope
24 | v.push_back(x);
| ^
main.cpp:30:28: error: 'v' was not declared in this scope
30 | int suma = v[i] + v[j] + v[d];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !