제출 #95839

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
958392019-02-02 21:44:50JustInCasepopa (BOI18_popa)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include "popa.h"
#define int32_t int
#define int64_t long long
#define Solve solve
#define Query query
const int32_t MAX_N = 1000;
std::vector< int32_t > l[MAX_N + 5], r[MAX_N + 5];
int32_t Query(int32_t a, int32_t b, int32_t c, int32_t d) {
std::cout << a << " " << b << " " << c << " " << d << '\n';
std::cout << std::flush;
int32_t res;
std::cin >> res;
return res;
}
int32_t Solve(int32_t n, int32_t *left, int32_t *right) {
memset(left, -1, n * 4);
memset(right, -1, n * 4);
int32_t root;
if(Query(0, 1, 0, 0)) {
root = 0;
right[0] = 1;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:47:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
/tmp/ccZ2qa2X.o: In function `query(int, int, int, int)':
popa.cpp:(.text+0x60): multiple definition of `query(int, int, int, int)'
/tmp/ccY2xivg.o:grader.cpp:(.text+0x50): first defined here
collect2: error: ld returned 1 exit status