Submission #480610

#TimeUsernameProblemLanguageResultExecution timeMemory
480610HaidaraDistributing Candies (IOI21_candies)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include<grader.h> using namespace std; vector<int> distribute_candies(vector<int> c,vector<int> l,vector<int> r, vector<int> v) { int n=l.size(); vector<int>res(c.size()); for(int i=0;i<n;i++) { for(int j=l[i];j<=r[i];j++) { if(v[i]>0) res[j]=min(res[j]+v[i],c[j]); else res[j]=max(0,res[j]-v[i]); } } return res; }

Compilation message (stderr)

candies.cpp:2:9: fatal error: grader.h: No such file or directory
    2 | #include<grader.h>
      |         ^~~~~~~~~~
compilation terminated.