Submission #132847

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

Compilation message (stderr)

paint.cpp: In function 'void solve_puzzle(std::__cxx11::string, std::vector<int>)':
paint.cpp:10:22: error: 'n' was not declared in this scope
     for(int i=c[0];i<n;i++)
                      ^