Submission #959336

# Submission time Handle Problem Language Result Execution time Memory
959336 2024-04-08T03:40:02 Z vjudge1 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) {
    multiset<int> res;
    for(int i=0 ;i<N ;i++) {
        for(int j=0 ;j<N ;j++) {  
            res.insert(A[i]+B[j]); 
        }
    }
    vector<int> x;
    multiset<int>::iterator itr= res.begin();
    
    while (N--) {
        x.push_back(*itr);
        
        ++itr;
    }
    return x;
}

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) {
      | ^~~~~~