제출 #1188941

#제출 시각아이디문제언어결과실행 시간메모리
1188941edga1Art Collections (BOI22_art)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "art.h"

using namespace std;

typedef long long ll;

#define fi first
#define se second
#define pb push_back
#define fastIO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define MOD 1000000007

void solve(int n){
    vector<int> v(n);
    iota(v.begin(), v.end(), 1);
    int atb=pubish(v);
    while(atb!=0){
        next_permutation(v.begin(), v.end());
        atb=publish(v);
    }
    answer(v);
}

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

art.cpp: In function 'void solve(int)':
art.cpp:17:13: error: 'pubish' was not declared in this scope; did you mean 'publish'?
   17 |     int atb=pubish(v);
      |             ^~~~~~
      |             publish