제출 #1083959

#제출 시각아이디문제언어결과실행 시간메모리
1083959nickolasarapidis슈퍼트리 잇기 (IOI20_supertrees)C++17
컴파일 에러
0 ms0 KiB
#include "supertrees.h" #include <bits/stdc++.h> using namespace std; int construct(vector<vector<int>> p){ int N = p.size(); vector<vector<int>> b(N, vector<int>(N, 0)); for(int i = 0; i < N; i++){ for(int j = 0; j < N; j++){ if(satisfied[i][j]) continue; for(int k = 0; k < N; k++){ if(j == k) continue; if(b[j][k] == 1) continue; if(p[j][k] == p[i][k]){ b[i][k] = 1; } } } } build(b); return 1; }

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

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:12:7: error: 'satisfied' was not declared in this scope
   12 |    if(satisfied[i][j]) continue;
      |       ^~~~~~~~~