제출 #614096

#제출 시각아이디문제언어결과실행 시간메모리
614096Dan4Life비스킷 담기 (IOI20_biscuits)C++17
컴파일 에러
0 ms0 KiB
#include "biscuits.h" #include <bits/stdc++.h> using namespace std; #define ll long long ll count_tastiness(ll x, vector<ll> a) { for(int i = 0; i < sz(a)-1; i++) a[i+1]+=((a[i]-1)/2), a[i]%=2; ll ans = 1; for(auto u : a) ans*=u+1; return ans; }

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

biscuits.cpp: In function 'long long int count_tastiness(long long int, std::vector<long long int>)':
biscuits.cpp:6:21: error: 'sz' was not declared in this scope
    6 |  for(int i = 0; i < sz(a)-1; i++) a[i+1]+=((a[i]-1)/2), a[i]%=2;
      |                     ^~