Submission #66631

#TimeUsernameProblemLanguageResultExecution timeMemory
66631zetapiDancing Elephants (IOI11_elephants)C++14
Compilation error
0 ms0 KiB
ll count(ll CurrentBlock,ll CoveredTill) { if(CurrentBlock>=blocks.size()) return 0; if(CoveredTill>=arr[blocks[CurrentBlock].second]) return count(CurrentBlock+1,CoveredTill); for(int A=1;Index[CurrentBlock][A]>0;A=nxt[A]) if(arr[Index[CurrentBlock][A]]<=CoveredTill) continue; else { CoveredTill=arr[Index[CurrentBlock][A]]+dp[Index[CurrentBlock][A]]*K; return dp[Index[CurrentBlock][A]]+count(CurrentBlock+1,CoveredTill); } }

Compilation message (stderr)

elephants.cpp:1:1: error: 'll' does not name a type
 ll count(ll CurrentBlock,ll CoveredTill)
 ^~