답안 #95154

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
95154 2019-01-27T17:54:03 Z updown1 popa (BOI18_popa) C++17
컴파일 오류
0 ms 0 KB
#include <popa.h>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define For(i, a, b) for(int i=a; i<b; i++)
#define ffi For(i, 0, N)
#define ffj For(j, 0, P)
#define ffa ffi ffj
#define s <<" "<<
//#define c <<" : "<<
#define w cout
#define e endl//"\n"
#define pb push_back
#define mp make_pair
#define a first
#define b second
#define int ll
//500,000,000 operations
const int MAXN = 1000;
//Global Variables
int solve(int N, int* Lef, int* Righ) {
    ffi Lef[i] = Righ[i] = -1;
    int root = 0;
    For (i, 1, N) {
        if (query(i-1, i, i, i)) {
            /// it's the root
            Lef[i] = root;
            root = i;
        }
        else {
            Righ[i-1] = i;
        }
    }
    return root;
}

Compilation message

/tmp/ccCyB0iv.o: In function `main':
grader.cpp:(.text.startup+0xd9): undefined reference to `solve(int, int*, int*)'
collect2: error: ld returned 1 exit status