Submission #1172228

#TimeUsernameProblemLanguageResultExecution timeMemory
1172228sasdeArt Collections (BOI22_art)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "art.h" using namespace std; vector<int>ans,res; int n,tong; bool k[10]; void cc(int i){ if(i>n){ int u=publish(res); if(u==tong){ ans=res; } tong=u; return; } for(int j=1;j<=n;++j){ if(!k[j]){ k[j]=true; res.emb(j); if(ans.size())return; cc(i+1); if(ans.size())return; res.pop_back(); k[j]=false; } } } void solve(int N){ n=N; cc(1); answer(ans); }

Compilation message (stderr)

art.cpp: In function 'void cc(int)':
art.cpp:19:29: error: 'class std::vector<int>' has no member named 'emb'
   19 |                         res.emb(j);
      |                             ^~~