#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