제출 #606524

#제출 시각아이디문제언어결과실행 시간메모리
606524Mher비스킷 담기 (IOI20_biscuits)C++14
컴파일 에러
0 ms0 KiB
#include "biscuits.h"
#include <bits/stdc++.h>

using namespace std;
 
long long n;
long long lg;
long long ans = 0;
map<long long, long long> dp[2];
 
ll count_tastiness(long long x, vector<long long> a) {
    for(int i = 0; i < 66;i++){
        a.push_back(0);
    }
    ans = 0;
	n = a.size();
	dp[0][0] = 1;
	for(int i = 0; i < n; i++){
        for(auto c : dp[0]){
            if(c.first + a[i] - x >= 0){
                dp[1][(c.first + a[i] - x) / 2] += c.second;
            }
            dp[1][(c.first + a[i]) / 2] += c.second;
        }
        dp[0] = dp[1];
        dp[1].clear();
	}
	ans = dp[0][0];
	dp[0].clear();
	return ans;
}

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

biscuits.cpp:11:1: error: 'll' does not name a type; did you mean 'lg'?
   11 | ll count_tastiness(long long x, vector<long long> a) {
      | ^~
      | lg