제출 #1250004

#제출 시각아이디문제언어결과실행 시간메모리
1250004Aliyyiakbar세계 지도 (IOI25_worldmap)C++20
컴파일 에러
0 ms0 KiB
#include "bits/stdc++.h" #include "worldmap.h" using namespace std; vector<vector<int>> create_map(int n, int m, vector<int> a, vector<int> b) { vector<vector<int>> ans(2 * n, vector<int>(2 * n, 1)); if (m > 0) { ans[0][0] = A[0]; ans[0][1] = B[0]; } return ans; }

컴파일 시 표준 에러 (stderr) 메시지

worldmap.cpp: In function 'std::vector<std::vector<int> > create_map(int, int, std::vector<int>, std::vector<int>)':
worldmap.cpp:10:21: error: 'A' was not declared in this scope
   10 |         ans[0][0] = A[0];
      |                     ^
worldmap.cpp:11:21: error: 'B' was not declared in this scope
   11 |         ans[0][1] = B[0];
      |                     ^