답안 #965440

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
965440 2024-04-18T14:11:40 Z emptypringlescan Ancient Machine (JOI21_ancient_machine) C++17
컴파일 오류
0 ms 0 KB
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
unordered_map<long long,int> um;
int cnt;
void brute(int lvl, int cur, int prev){
	if(lvl>=40){
		um[cur]=cnt;
		cnt++;
		return;
	}
	if(prev==0){
		brute(lvl+1,cur,0);
		brute(lvl+2,1<<lvl|cur,0);
	}
	else brute(lvl+1,cur,0);
}
void Anna(int N, vector<char> S){
	brute(0,0,0);
	
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
unordered_map<long long,int> um;
int cnt;
void brute(int lvl, int cur, int prev){
	if(lvl>=40){
		um[cur]=cnt;
		cnt++;
		return;
	}
	if(prev==0){
		brute(lvl+1,cur,0);
		brute(lvl+2,1<<lvl|cur,0);
	}
	else brute(lvl+1,cur,0);
}
void Bruno(int N, int L, vector<char> S){
	brute(0,0,0);
	
}

Compilation message

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