Submission #779019

#TimeUsernameProblemLanguageResultExecution timeMemory
779019vjudge1Paint By Numbers (IOI16_paint)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> 
#include "paint.h"
using namespace std;


const int S_MAX_LEN = 200 * 1000;
char buf[S_MAX_LEN + 1];

std::string solve_puzzle(std::string s, std::vector<int> c) {
    vector<int> pref(c.size()+1), suf(c.size()+1);
    vector<int> a(s.size());

    return "";
}

/*
int main() {

    #ifndef ONLINE_JUDGE
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    #endif

    assert(1 == scanf("%s", buf));
    std::string s = buf;
    int c_len;
    assert(1 == scanf("%d", &c_len));
    std::vector<int> c(c_len);
    for (int i = 0; i < c_len; i++) {
        assert(1 == scanf("%d", &c[i]));
    }
    std::string ans = solve_puzzle(s, c);

    // BEGIN SECRET
 //   puts("098d134608c94f7413faac591054ee35");
    // END SECRET

   // printf("%s\n", ans.data());
    return 0;
}
*/

Compilation message (stderr)

/usr/bin/ld: /tmp/cc7HcDsQ.o:(.bss+0x0): multiple definition of `buf'; /tmp/ccDCp1vQ.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status