Submission #896436

# Submission time Handle Problem Language Result Execution time Memory
896436 2024-01-01T12:46:45 Z SuPythony A Plus B (IOI23_aplusb) C++17
Compilation error
0 ms 0 KB
vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
    vector<int> ans;
    int s=0, a=0, b=0;
    while (s<N) {
        ans.push_back(A[a]+B[b]);
        s++;
        if (a<N-1&&A[a+1]+B[b]<=B[b+1]+A[a]) a++;
        else b++;
    }
    return ans;
}

Compilation message

aplusb.cpp:1:1: error: 'vector' does not name a type
    1 | vector<int> smallest_sums(int N, vector<int> A, vector<int> B) {
      | ^~~~~~