Submission #1121914

#TimeUsernameProblemLanguageResultExecution timeMemory
1121914MoonnUnscrambling a Messy Bug (IOI16_messy)C++17
Compilation error
0 ms0 KiB
#include "messy.h" #include <bits/stdc++.h> #define ll long long #define endl "\n"; #define AI ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; vector<ll>restore_permutation(ll n,ll w,ll r) { vector<string>q; string a="1"; q.push_back(a); for(ll i=1;i<n;i++) a+="0"; for(ll i=0;i<n;i++) { a[i]='1'; q.push_back(a); } for(ll i=0;i<n;i++) add_element(q[i]); compile_set(); vector<ll>pp(n); a=q[0]; for(ll i=0;i<n;i++) { a[i]='0'; for(ll j=0;j<n;j++) { a[j]='1'; if(check_element(a)) { pp[i]=j; break; } } } return pp; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccsk7KNu.o: in function `main':
grader.cpp:(.text.startup+0x19f): undefined reference to `restore_permutation(int, int, int)'
collect2: error: ld returned 1 exit status