Submission #1230803

#TimeUsernameProblemLanguageResultExecution timeMemory
1230803AndreasKHandcrafted Gift (IOI20_gift)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "gift.h" using namespace std; #define designed ios_base::sync_with_stdio(0); #define by cin.tie(0); #define AndreasK cout.tie(0); //#define int long long #define akinput freopen("akinput.txt", "r", stdin); #define akoutput freopen("akoutput.txt", "w", stdout); int construct(int n, int r, int a[], int b[], int x[]) { if (x[0] == 1) { string s = ""; for (int c = 0; c < n; c++) s += 'R'; craft(s); } else { string s = ""; for (int c = 0; c < n; c++) if (c % 2 == 0) s += 'R'; else s += 'B'; craft(s); } return 1; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccGn9Wjq.o: in function `main':
grader.cpp:(.text.startup+0x23e): undefined reference to `construct(int, int, 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