답안 #1039345

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1039345 2024-07-30T18:40:39 Z MeGustaElArroz23 popa (BOI18_popa) C++17
컴파일 오류
0 ms 0 KB
    #include "popa.h"
    #include<bits/stdc++.h>
    using namespace std;
    

    int solve(int N, int* Left, int* Right)
    {
        test_query = query(0,0,0,0);

        for(int i=0;i<N;i++)
        {
            Left[i]=-1;
            Right[i]=-1;
        }
        return 0;
    }

	void test(int N) {
        int* Left = new int[N];
        int* Right = new int[N];

        int root = solve(N, Left, Right);
        cout << "Root: " << root << endl;

        for (int i = 0; i < N; i++) {
            cout << Left[i] << " " << Right[i] << endl;
        }
    }

Compilation message

popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:8:9: error: 'test_query' was not declared in this scope
    8 |         test_query = query(0,0,0,0);
      |         ^~~~~~~~~~