Problem potatosalad
User howdoicode
Submission Time 2026-03-11 17:25:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | 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:8:12: error: expected primary-expression before ‘int’
8 | vector<int> potatas(potat);
| ^~~
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]);
| ^~~~~~~
| po