#include "Alice.h"
#include <bits/stdc++.h>
using namespace std;
const int n = 1000;
// you may define some global variables, but it does not work if you try to
// transfer any information from function Alice() to function Bob() through
// these variables. you had better not use the same global variables in function
// Alice() and in function Bob().
vector<pair<int, int>> Alice() {
// add your code here
// change below into your code
long long x = setN(n);
vector<pair<int, int>> vpii;
for (int i = 1; i < n; i++)
vpii.emplace_back(i + 1, x % i + 1);
return vpii;
}
#include "Alice.h"
#include <bits/stdc++.h>
using namespace std;
const int n = 1000;
// you may define some global variables, but it does not work if you try to
// transfer any information from function Alice() to function Bob() through
// these variables. you had better not use the same global variables in function
// Alice() and in function Bob().
vector<pair<int, int>> Alice() {
// add your code here
// change below into your code
long long x = setN(n);
vector<pair<int, int>> vpii;
for (int i = 1; i < n; i++)
vpii.emplace_back(i + 1, x % i + 1);
return vpii;
}
Compilation message
/usr/bin/ld: /tmp/cc5Un0np.o: in function `Alice()':
Bob.cpp:(.text+0x22): undefined reference to `setN(int)'
/usr/bin/ld: /tmp/ccMMAzQs.o: in function `main':
grader_bob.cpp:(.text.startup+0x324): undefined reference to `Bob(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
collect2: error: ld returned 1 exit status