Submission #605107

# Submission time Handle Problem Language Result Execution time Memory
605107 2022-07-25T13:04:45 Z Carmel_Ab1 ICC (CEOI16_icc) C++17
Compilation error
0 ms 0 KB
/*
#pragma GCC target ("avx2")
#pragma GCC optimization ("O3")
#pragma GCC optimization ("unroll-loops")
 */
#include<bits/stdc++.h>
#include "icc.h"

//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>

//using namespace __gnu_pbds;
using namespace std;

typedef long double ld;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int>vi;
typedef vector<vector<int>>vvi;
typedef vector<ll>vl;
typedef vector<vl> vvl;
typedef pair<int,int>pi;
typedef pair<ll,ll> pl;
typedef vector<pl> vpl;
typedef vector<ld> vld;
typedef pair<ld,ld> pld;
typedef vector<pi> vpi;


#define all(x) x.begin(),x.end()
#define YES out("YES")
#define NO out("NO")
#define out(x){cout << x << "\n"; return;}
#define outfl(x){cout << x << endl;return;}
#define GLHF ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
#define print(x){for(auto ait:x) cout << ait << " "; cout << "\n";}
#define pb push_back
#define umap unordered_map

int query(vi a,vi b){
    return query(a.size(),b.size(),a,b);
}

void run(int n){
    for(int i=1; i<=n; i++)
        for(int j=i+1; j<=n; j++)
            if(query({i},{j}))
                setRoad(i,j);

}

Compilation message

icc.cpp: In function 'int query(vi, vi)':
icc.cpp:41:39: error: no matching function for call to 'query(std::vector<int>::size_type, std::vector<int>::size_type, vi&, vi&)'
   41 |     return query(a.size(),b.size(),a,b);
      |                                       ^
In file included from icc.cpp:7:
icc.h:10:5: note: candidate: 'int query(int, int, int*, int*)'
   10 | int query(int a, int b, int *A, int *B);
      |     ^~~~~
icc.h:10:30: note:   no known conversion for argument 3 from 'vi' {aka 'std::vector<int>'} to 'int*'
   10 | int query(int a, int b, int *A, int *B);
      |                         ~~~~~^
icc.cpp:40:5: note: candidate: 'int query(vi, vi)'
   40 | int query(vi a,vi b){
      |     ^~~~~
icc.cpp:40:5: note:   candidate expects 2 arguments, 4 provided