답안 #444984

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
444984 2021-07-16T07:26:52 Z Petremol Bubble Sort 2 (JOI18_bubblesort2) C++17
컴파일 오류
0 ms 0 KB
#include "bubblesort2.h"
#include <bits/stdc++.h>
#define int int64_t
#define all(x) x.begin(), x.end()
#define inf (int)(1e17+1)
#define mod (int)(1e9+7)
#define N (int)(2e5+5)
#define fi first
#define se second
#define endl "\n"
#define eps (double)(1e-9)
#define sa cout<<"sa"<<endl
using namespace std;

vector<int> countScans(vector<int> v,vector<int> p,vector<int> x){
	int n=v.size();
	int q=x.size();
	vector<int> ans(q);
		


	return ans;
}

Compilation message

bubblesort2.cpp: In function 'std::vector<long int> countScans(std::vector<long int>, std::vector<long int>, std::vector<long int>)':
bubblesort2.cpp:16:6: warning: unused variable 'n' [-Wunused-variable]
   16 |  int n=v.size();
      |      ^
/usr/bin/ld: /tmp/ccv69W7u.o: in function `main':
grader.cpp:(.text.startup+0x181): undefined reference to `countScans(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status