제출 #338317

#제출 시각아이디문제언어결과실행 시간메모리
338317mayflyyhPacking Biscuits (IOI20_biscuits)C++14
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
#define ll long long
ll dp[70];
int64 b[70];
int64 count_tastiness(int64 x, int64[] a){
	int end=65;
	for(int i=0;i<=end;++i)
		if(a[i]) b[i]=a[i];
		else b[i]=0;
	for(int i=end;i+1;--i){
		if(i==end){
			dp[i]=1;
		}
		else{
			for(int j=end;j>=i+1;--j){
				ll min=0,max=(1<<end-i)-1;
				ll ai=0;
				for(int k=j-1;k>=i;--k){
					ai=ai*2+b[i];
					ll y_=0;
					if(k>i){
						y_=(ai/x+1)<<(k-i);
						if(y_>min)
							min=y_;
					}
					else{
						y_=ai/x;
						if(y_<max)
							max=y_; 
					}
				}
			}
		}
	}
	return dp[0];
}

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

biscuits.cpp:4:1: error: 'int64' does not name a type; did you mean 'int64_t'?
    4 | int64 b[70];
      | ^~~~~
      | int64_t
biscuits.cpp:5:1: error: 'int64' does not name a type; did you mean 'int64_t'?
    5 | int64 count_tastiness(int64 x, int64[] a){
      | ^~~~~
      | int64_t