Submission #543986

#TimeUsernameProblemLanguageResultExecution timeMemory
543986brunnorezendesDistributing Candies (IOI21_candies)C++17
Compilation error
0 ms0 KiB
#include "parks.h" #include <bits/stdc++.h> using namespace std; typedef vector<int> vi; vi distribute_candies(vi c, vi l, vi r, vi v){ int i, j; int q = l.size(); int n = c.size(); vi val(n, 0); for(i=0;i<n;i++){ for(j=0;j<q;j++){ if(i>=l[j] && i<=r[j]){ if(v[j]<0) val[i] = max(0, val[i]+v[j]); else val[i] = min(c[i], val[i]+v[j]); } } } return val; }

Compilation message (stderr)

candies.cpp:1:10: fatal error: parks.h: No such file or directory
    1 | #include "parks.h"
      |          ^~~~~~~~~
compilation terminated.