Problem duckhunt5
User Secre
Submission Time 2025-06-18 20:38:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:7:20: error: expected ‘;’ before ‘)’ token
7 | for(int i=0;i<n,i++){
| ^
| ;
duckhunt5.cpp:11:4: error: ‘class std::set<int>’ has no member named ‘inset’; did you mean ‘insert’?
11 | s.inset(x);
| ^~~~~
| insert
duckhunt5.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
duckhunt5.cpp:14:5: note: to match this ‘{’
14 | else{
| ^
duckhunt5.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
duckhunt5.cpp:7:21: note: to match this ‘{’
7 | for(int i=0;i<n,i++){
| ^
duckhunt5.cpp:20:1: error: expected ‘}’ at end of input
20 | }
| ^
duckhunt5.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^