제출 #70085

#제출 시각아이디문제언어결과실행 시간메모리
70085octopusespopa (BOI18_popa)C++17
0 / 100
16 ms436 KiB
#include <bits/stdc++.h> #include "popa.h" #pragma GCC optimize("O3") using namespace std; int solve(int n, int* lt, int* rt) { int root = 0; lt[0] = -1; rt[n - 1] = -1; for(int i = 1; i < n; ++ i) if(query(i - 1, i, i - 1, i - 1)) { rt[i - 1] = i; lt[i] = -1; } else { lt[i] = root; rt[i - 1] = -1; root = i; } }

컴파일 시 표준 에러 (stderr) 메시지

popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...