| Problem | potatosalad |
|---|---|
| User | howdoicode |
| Submission Time | 2026-03-11 17:24:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> potatas;
| ^~~~~~
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:8:12: error: expected primary-expression before ‘int’
8 | vector<int> potatas;
| ^~~
potatosalad.cpp:10:16: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
10 | cin >> potatas[i];
| ^~~~~~~
| potat
potatosalad.cpp:12:20: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
12 | int n = sizeof(potatas) / sizeof(potatas[0]);
| ^~~~~~~
| potat
potatos