Problem funnyballs
User RAyhahh
Submission Time 2025-12-01 14:50:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnyballs.cpp: In function ‘int main()’:
funnyballs.cpp:26:31: error: expected ‘;’ before ‘auto’
26 | ans += tet[1] + tet[0]
| ^
| ;
27 | auto previt = *it2;
| ~~~~
funnyballs.cpp:31:32: error: ‘previt’ was not declared in this scope
31 | if(canMove>abs(*it-previt)){
| ^~~~~~
funnyballs.cpp:34:39: error: expected ‘;’ before ‘}’ token
34 | visited.push_back(*it)
| ^
| ;
35 | }
| ~
funnyballs.cpp:37:29: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’)
37 | cout << a