제출 #659566

#제출 시각아이디문제언어결과실행 시간메모리
659566ktkeremArt Collections (BOI22_art)C++17
컴파일 에러
0 ms0 KiB
/*#pragma GCC target ("avx2") #pragma GCC optimize ("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize ("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")/**/ #include<bits/stdc++.h> /**/ typedef int ll; //typedef long long ll; typedef unsigned long long ull; typedef std::string str; /*typedef __int128 vll; typedef unsigned __int128 uvll;*/ #define llll std::pair<ll , ll> #define pb push_back #define pf push_front #define halo cout << "hello\n" #define fi first #define sec second #define all(a) a.begin() , a.end() const ll limit = 998244353; const ll ous = 1e5 + 7; const ll dx[4] = {-1 , 0 , 1 , 0} , dy[4] = {0,1,0,-1}; ll n , m;std::vector<ll> ar , mem; void solve(int N){ n = N; ar.resize(n); mem.resize(n); for(ll i = 0;n>i;i++){ std::vector<ll> k; for(ll j = 0;n>j;j++){ k.pb((i + j % n) + 1); } ll x = publish(k); mem[i] = x; } for(ll i = 1;n>=i;i++){ ar[((mem[(i - 1 + n) % n] - mem[i % n] + n - 1) / 2) % n] = i; } answer(ar); return;/**/ } /*signed main(){ std::ios_base::sync_with_stdio(false);std::cin.tie(NULL); ll t=1; //std::cin >> t; ll o = 1; while(t--){ //cout << "Case " << o++ << ":\n"; solve(); } return 0; }*/

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

art.cpp:5:78: warning: "/*" within comment [-Wcomment]
    5 | #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")/**/
      |                                                                               
art.cpp: In function 'void solve(int)':
art.cpp:34:16: error: 'publish' was not declared in this scope
   34 |         ll x = publish(k);
      |                ^~~~~~~
art.cpp:40:5: error: 'answer' was not declared in this scope
   40 |     answer(ar);
      |     ^~~~~~
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   20 |     if(v.size() != N) {
      |        ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   36 |     if(v.size() != N) {
      |        ~~~~~~~~~^~~~