Submission #535402

#TimeUsernameProblemLanguageResultExecution timeMemory
535402pokmui9909Distributing Candies (IOI21_candies)C++17
Compilation error
0 ms0 KiB
#include "candies.h" #include <bits/stdc++.h using namespace std; using ll = long long; ll N, Q; vector<int> a; std::vector<int> distribute_candies(std::vector<int> c, std::vector<int> l, std::vector<int> r, std::vector<int> v) { N = c.size(), Q = l.size(); for(int i = 0; i < Q; i++){ for(int j = l[i]; j <= r[i]; j++){ a[j] += v[i]; a[j] = min(a[j], c[j]); a[j] = max(a[j], 0); } } return a; }

Compilation message (stderr)

candies.cpp:2:24: error: missing terminating > character
    2 | #include <bits/stdc++.h
      |                        ^