Submission #714231

# Submission time Handle Problem Language Result Execution time Memory
714231 2023-03-24T06:49:24 Z vjudge1 Art Collections (BOI22_art) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define size(v) v.size()
#define all(v) v.begin(), v.end()
#define INF 2e9
#define f first
#define s second

using namespace std;

int N;
vector<int>a, in1, in2;

void solve(int N){
    sort(all(a));
    do{
        if(!publish(a)){
            answer(a);
            return;
        }
    }
    while(next_permutation(all(a)));        
}

Compilation message

art.cpp: In function 'void solve(int)':
art.cpp:18:13: error: 'publish' was not declared in this scope
   18 |         if(!publish(a)){
      |             ^~~~~~~
art.cpp:19:13: error: 'answer' was not declared in this scope
   19 |             answer(a);
      |             ^~~~~~
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) {
      |        ~~~~~~~~~^~~~