제출 #910748

#제출 시각아이디문제언어결과실행 시간메모리
910748tnun디지털 회로 (IOI22_circuit)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
int N,M,P[100060],A[100060];
int count_ways(int l,int r){
	for(int i=l-1;i<r;i++){
		A[i]=(A[i]+1)%2;
	}
	int cnt=0;
	for(int i=0;i<M;i++){
		if(A[i]==1){
			cnt++;
		}
	}
	return cnt;
}
void init(int N,int M, int P[],int A[]){
	
}

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

/usr/bin/ld: /tmp/cceDj1Xu.o: in function `main':
stub.cpp:(.text.startup+0x128): undefined reference to `init(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status