Submission #973933

# Submission time Handle Problem Language Result Execution time Memory
973933 2024-05-02T13:12:02 Z AliHasanli Connecting Supertrees (IOI20_supertrees) C++17
Compilation error
0 ms 0 KB
#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;
}

Compilation message

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++)
      |                ^