답안 #536172

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
536172 2022-03-12T14:34:38 Z michao 비밀 (JOI14_secret) C++14
컴파일 오류
0 ms 0 KB
#include "secret.h"
#define int long long
#define mp make_pair
#define pb push_back
#define ld long double
#define pii pair<int,int>
#define sz(x) (int)x.size()
#define piii pair<pii,pii>
#define precise cout<<fixed<<setprecision(10)
#define st first
#define nd second
#define ins insert
#define vi vector<int>
#define BOOST ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
using namespace std;

void Init(int N,int A[]){

}

int query(int L,int R){
	
}

Compilation message

secret.cpp: In function 'long long int query(long long int, long long int)':
secret.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
/usr/bin/ld: /tmp/ccNsy3eg.o: in function `main':
grader-full.cpp:(.text.startup+0x2a8): undefined reference to `Init(int, int*)'
/usr/bin/ld: grader-full.cpp:(.text.startup+0x30b): undefined reference to `Query(int, int)'
collect2: error: ld returned 1 exit status