Submission #294548

#TimeUsernameProblemLanguageResultExecution timeMemory
294548DovranMechanical Doll (IOI18_doll)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "doll.h" #define N 200009 #define pii pair <int, int> #define ff first #define ss second #define pb push_back #define ll long long using namespace std; ll n, c[N]; void create_circuit(int m, vector<int>a){ n=a.size(); vector<ll>e, b; ll x=0; for(int i=0; i<n; i++) c[x]=a[i], x=a[i]; for(int i=0; i<m; i++) if(!c[i]) c[x]=i, x=i; c[x]=0; for(int i=0; i<=m; i++) e.pb(c[i]); answer(e, b, b); }

Compilation message (stderr)

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:28:9: error: could not convert 'e' from 'vector<long long int>' to 'vector<int>'
   28 |  answer(e, b, b);
      |         ^
      |         |
      |         vector<long long int>