Submission #955599

# Submission time Handle Problem Language Result Execution time Memory
955599 2024-03-31T05:30:09 Z Trisanu_Das Packing Biscuits (IOI20_biscuits) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "biscuits.h"
using namespace std;

 
long long count_tastiness(long long x, vector<long long> a) {
	vector<long long> D(62, 1);
	a.resize(62);
	for (int i = 1; i < 62; i++) {
		a[i] = (a[i] << i) + a[i - 1];
		ll n = (1e18);
		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();
}

Compilation message

biscuits.cpp: In function 'long long int count_tastiness(long long int, std::vector<long long int>)':
biscuits.cpp:11:3: error: 'll' was not declared in this scope
   11 |   ll n = (1e18);
      |   ^~
biscuits.cpp:13:4: error: 'n' was not declared in this scope
   13 |    n = min(n, a[j]);
      |    ^