Submission #1172241

#TimeUsernameProblemLanguageResultExecution timeMemory
1172241sasdeArt Collections (BOI22_art)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "art.h" #define emb emplace_back using namespace std; void solve(int N){ int n=N; vector<int>ans(n),ans1; for(int i=1;i<=n;++i){ vecotr<int>r,l; l.emb(i); for(int j=1;j<=n;++j){ if(j!=i)l.emb(j); } for(int j=1;j<=n;++j)if(j!=i)r.emb(j); r.emb(i); int res=publish(l)-publish(r); ans1.emb(res); } for(int i=0;i<ans1.size();++i){ int res=(ans1[i]+n-1)/2+1; } answer(ans); }

Compilation message (stderr)

art.cpp: In function 'void solve(int)':
art.cpp:10:9: error: 'vecotr' was not declared in this scope
   10 |         vecotr<int>r,l;
      |         ^~~~~~
art.cpp:10:16: error: expected primary-expression before 'int'
   10 |         vecotr<int>r,l;
      |                ^~~
art.cpp:11:9: error: 'l' was not declared in this scope
   11 |         l.emb(i);
      |         ^
art.cpp:15:38: error: 'r' was not declared in this scope
   15 |         for(int j=1;j<=n;++j)if(j!=i)r.emb(j);
      |                                      ^
art.cpp:16:17: error: 'r' was not declared in this scope
   16 |                 r.emb(i);
      |                 ^