| Problem | potatosalad |
|---|---|
| User | howdoicode |
| Submission Time | 2026-03-11 17:27:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:9:5: error: ‘vector’ was not declared in this scope
9 | vector<int> potatas(potat);
| ^~~~~~
potatosalad.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
potatosalad.cpp:9:12: error: expected primary-expression before ‘int’
9 | vector<int> potatas(potat);
| ^~~
potatosalad.cpp:11:16: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
11 | cin >> potatas[i];
| ^~~~~~~
| potat
potatosalad.cpp:13:13: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
13 | reverse(potatas);
| ^~~~~~~
| potat
potatosalad.cpp:13:5: error: ‘rever