Submission #311548

#TimeUsernameProblemLanguageResultExecution timeMemory
311548amunduzbaevMechanical Doll (IOI18_doll)C++14
Compilation error
0 ms0 KiB
//#include "grader.cpp"
#include "doll.h"
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int N=1e5+5;
void create_circuit(int m, vector<int> a) {

    vector<ll> way(m+1 ,0), x, y;
    way[0]=a[0];
    for(int i=0;i<m-1;i++) way[a[i]]=a[i+1];
    answer(way,x,y);

}
/*

9 9
2 9 8 1 3 7 6 4 5

*/

Compilation message (stderr)

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:12:12: error: could not convert 'way' from 'vector<long long int>' to 'vector<int>'
   12 |     answer(way,x,y);
      |            ^~~
      |            |
      |            vector<long long int>