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

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | 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:7:12: error: expected primary-expression before ‘int’
7 | vector<int> potatas();
| ^~~
potatosalad.cpp:9:16: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
9 | cin >> potatas[i];
| ^~~~~~~
| potat
potatosalad.cpp:11:20: error: ‘potatas’ was not declared in this scope; did you mean ‘potat’?
11 | int n = sizeof(potatas) / sizeof(potatas[0]);
| ^~~~~~~
| potat
pota