Submission #961098

#TimeUsernameProblemLanguageResultExecution timeMemory
961098The_Cryptic_TGA Plus B (IOI23_aplusb)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> #include <set> #define ll long long vector<ll> smallest_sums(ll n, vector<ll> a, vector<ll> b) { multiset<ll> s; loop1(i, n) { loop(j, n / i) { s.insert(a[i - 1] + b[j]); } } auto it = s.begin(); ll k = n; vector <ll> ans; while (k--) { ans.push_back(*it); it++; } return ans; }

Compilation message (stderr)

aplusb.cpp:6:1: error: 'vector' does not name a type
    6 | vector<ll> smallest_sums(ll n, vector<ll> a, vector<ll> b)
      | ^~~~~~