Submission #614096

#TimeUsernameProblemLanguageResultExecution timeMemory
614096Dan4LifePacking Biscuits (IOI20_biscuits)C++17
Compilation error
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; }

Compilation message (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;
      |                     ^~