Problem wallabyhop
User ashy101
Submission Time 2024-11-19 15:33:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wallabyhop.cpp:1:1: error: ‘ll’ does not name a type
1 | ll hop=0;
| ^~
wallabyhop.cpp:2:1: error: expected unqualified-id before ‘for’
2 | for(ll j=0;j<n-1;j++){
| ^~~
wallabyhop.cpp:2:12: error: ‘j’ does not name a type
2 | for(ll j=0;j<n-1;j++){
| ^
wallabyhop.cpp:2:18: error: ‘j’ does not name a type
2 | for(ll j=0;j<n-1;j++){
| ^
wallabyhop.cpp:32:1: error: ‘ll’ does not name a type
32 | ll ans=0;
| ^~
wallabyhop.cpp:33:1: error: expected unqualified-id before ‘for’
33 | for(ll k=0;k<hops.size();k++){
| ^~~
wallabyhop.cpp:33:12: error: ‘k’ does not name a type
33 | for(ll k=0;k<hops.size();k++){
| ^
wallabyhop.cpp:33:26: error: ‘k’ does not name a type
33 | for(ll k=0;k<hops.size();k++){
| ^
wallabyhop.cpp:40:1: error: ‘cout’ does not name a type
40