Submission #862177

#TimeUsernameProblemLanguageResultExecution timeMemory
862177iskhakkutbilimparentrises (BOI18_parentrises)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "popa.h"
using namespace std;


int solve(int N, int* Left, int* Right){
    for(int i = 0; i < N; i++) Left[i] = Right[i] = -1;
    stack<int> st;
    for(int i = 0; i < N; i++){
        int pref = -1;
        while(!st.empty()){
            int First = st.top();
            if(query(First, First, First, i)){
                Right[First] = i;
                break;
            }
            pref = First;
            st.pop();
        }
        Left[i] = pref;
        st.push(i);
    }
    if(st.empty()) assert(false);
    while(st.size() > 1) st.pop();
    return st.top();
}

Compilation message (stderr)

parentrises.cpp:2:10: fatal error: popa.h: No such file or directory
    2 | #include "popa.h"
      |          ^~~~~~~~
compilation terminated.