제출 #156497

#제출 시각아이디문제언어결과실행 시간메모리
156497MoNsTeR_CuBeSplit the Attractions (IOI19_split)C++17
컴파일 에러
0 ms0 KiB
#include "split.h" #include <bits/stdc++.h> using namespace std; vector< vector< int > > Graph; vector<int> find_split(int N, int a, int b, int c, vector<int> p, vector<int> q) { Graph.resize(N); for(int i = 0; i < (int)p.size(); i++){ Graph[p[i]].push_back(q[i]); Graph[q[i]].push_back(p[i]); } return colouring; }

컴파일 시 표준 에러 (stderr) 메시지

split.cpp: In function 'std::vector<int> find_split(int, int, int, int, std::vector<int>, std::vector<int>)':
split.cpp:19:9: error: 'colouring' was not declared in this scope
  return colouring;
         ^~~~~~~~~