Submission #1364959

#TimeUsernameProblemLanguageResultExecution timeMemory
1364959biserailievaToy Design (EGOI22_toydesign)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;

void ToyDesign(int n, int max_ops)
{
    vector<pair<int,int>> result;
    for(int i=1;i<n;i++)
    {
        for(int j=i+1;j<=n;j++)
        {
            int x=Connected(0, i, j);
            if(x==0)
            {
                result.push_back({i, j});
            }
        }
    }
    DescribeDesign(result);
}

Compilation message (stderr)

Main.cpp: In function 'void ToyDesign(int, int)':
Main.cpp:11:19: error: 'Connected' was not declared in this scope
   11 |             int x=Connected(0, i, j);
      |                   ^~~~~~~~~
Main.cpp:18:5: error: 'DescribeDesign' was not declared in this scope
   18 |     DescribeDesign(result);
      |     ^~~~~~~~~~~~~~