Submission #132846

#TimeUsernameProblemLanguageResultExecution timeMemory
132846redaPaint By Numbers (IOI16_paint)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std ; void solve_puzzle(int n, string s, int k, int c[], string result) { for(int i=0;i<c[0];i++) { s[i]='X'; } for(int i=c[0];i<n;i++) s[i]='_'; result=s; }

Compilation message (stderr)

/tmp/ccsrbxKb.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