제출 #973933

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

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

supertrees.cpp: In function 'int construct(std::vector<std::vector<int> >)':
supertrees.cpp:7:16: error: 'p' was not declared in this scope
    7 |  for(int i=0;i<p.size();i++)
      |                ^