Problem | potatosalad |
---|---|
User | Codecrusher1234 |
Submission Time | 2025-06-20 08:33:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin >> n;
| ^~~
potatosalad.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
potatosalad.cpp:11:2: error: ‘vector’ was not declared in this scope
11 | vector <int> vect(n, 0);
| ^~~~~~
potatosalad.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
potatosalad.cpp:11:10: error: expected primary-expression before ‘int’
11 | vector <int> vect(n, 0);
| ^~~
potatosalad.cpp:14:9: error: ‘vect’ was not declared in this scope
14 | cin >> vect[i];
| ^~~~
potatosalad.cpp:17:10: error: ‘vect’ was