Submission #92609

#TimeUsernameProblemLanguageResultExecution timeMemory
92609BadralPaint By Numbers (IOI16_paint)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; int a[1000005]; string solve_puzzle(string s, int c[]) { int k = c[0]; for(int i = 0; i < k; i++) a[i]++; for(int i = (int)s.size(); i >= (int)s.size()-k; i--) a[i]++; string sss; for(int i = 0; i < (int)s.size(); i++) { if(a[i] == 2) sss += 'X'; else sss += '?'; } return sss; }

Compilation message (stderr)

/tmp/ccSQo7yS.o: In function `main':
grader.cpp:(.text.startup+0x1eb): undefined reference to `solve_puzzle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status