제출 #790696

#제출 시각아이디문제언어결과실행 시간메모리
790696Trisanu_Das비스킷 담기 (IOI20_biscuits)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "biscuits.h"
using namespace std;
#define ll long long
 
ll count_tastiness(ll x, vector<ll> a) {
	vector<ll> D(62, 1);
	a.resize(MX);
	for (int i = 1; i < MX; i++) {
		a[i] = (a[i] << i) + a[i-1];
		ll n = INT_MAX;
		for (int j = i - 1; j > -1; j--) {
			n = min(n, a[j]);
			if (x <= (n >> j)) D[i] += D[j], n -= (x << j);
		}
	}
	return D.back();
}

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

biscuits.cpp: In function 'long long int count_tastiness(long long int, std::vector<long long int>)':
biscuits.cpp:8:11: error: 'MX' was not declared in this scope
    8 |  a.resize(MX);
      |           ^~