Submission #959336

#TimeUsernameProblemLanguageResultExecution timeMemory
959336vjudge1A Plus B (IOI23_aplusb)C++17
Compilation error
0 ms0 KiB
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 (stderr)

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