Submission #1351745

#TimeUsernameProblemLanguageResultExecution timeMemory
1351745killer_01Art Collections (BOI22_art)C++20
Compilation error
0 ms0 KiB
#include "art.h"    

#include <bits/stdc++.h>
using namespace std;
 
#define ego true
#define pb push_back
#define int long long
#define endl '\n'
#define oo 1e18
#define pii pair<int, int>
#define vi vector<int>
#define vii vector<vector<int>> 
#define vbb vector<vector<bool>>
#define fs first
#define ss second
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
 
const int N = 105;
const int MOD = 1e9 + 7;
 
int dx[] = {1, 0, 0, -1};
int dy[] = {0, -1, 1, 0};

void solve(int n){
    vi h(n);
    iota(all(h), 1);

    do{
        int ja = publish(h);
        if (ja == 0){
            answer(h);
            break;
        }
    }while(next_permutation(all(h)));
}
 
// signed main(){
//     ios::sync_with_stdio(false);
//     cin.tie(nullptr);
 
//     int t = 1;
//     // cin >> t; 
//     while (t --){
//         solve();
//         cout << endl;
//     }
// }

Compilation message (stderr)

art.cpp: In function 'void solve(long long int)':
art.cpp:31:26: error: could not convert 'h' from 'vector<long long int>' to 'vector<int>'
   31 |         int ja = publish(h);
      |                          ^
      |                          |
      |                          vector<long long int>
art.cpp:33:20: error: could not convert 'h' from 'vector<long long int>' to 'vector<int>'
   33 |             answer(h);
      |                    ^
      |                    |
      |                    vector<long long int>