제출 #535401

#제출 시각아이디문제언어결과실행 시간메모리
535401pokmui9909사탕 분배 (IOI21_candies)C++17
컴파일 에러
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;
}

컴파일 시 표준 에러 (stderr) 메시지

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