제출 #66631

#제출 시각아이디문제언어결과실행 시간메모리
66631zetapi코끼리 (Dancing Elephants) (IOI11_elephants)C++14
컴파일 에러
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);
		}
}

컴파일 시 표준 에러 (stderr) 메시지

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