제출 #959336

#제출 시각아이디문제언어결과실행 시간메모리
959336vjudge1A Plus B (IOI23_aplusb)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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) {
      | ^~~~~~