Problem duckhunt32
User LimCheeHann
Submission Time 2026-05-10 14:33:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt32.cpp: In function ‘int main()’:
duckhunt32.cpp:5:2: error: ‘vector’ was not declared in this scope
5 | vector<int> P;
| ^~~~~~
duckhunt32.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;
duckhunt32.cpp:5:9: error: expected primary-expression before ‘int’
5 | vector<int> P;
| ^~~
duckhunt32.cpp:9:3: error: ‘P’ was not declared in this scope
9 | P.push_back(input);
| ^
duckhunt32.cpp:15:8: error: ‘P’ was not declared in this scope
15 | if(P[i]*P[j]==P[k]){
| ^