제출 #1189749

#제출 시각아이디문제언어결과실행 시간메모리
1189749Tsagana마술쇼 (APIO24_show)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; std::vector<std::pair<int,int>> Alice() { vector<pair<int,int>> ans; int x = setN(5000); for (int i = 1; i < 5000; i++){ if (i == X) continue ; ans.pb({X, i}); } return ans; }
#include <bits/stdc++.h> #include "Bob.h" using namespace std; long long Bob(std::vector<std::pair<int,int>> V){ return V[0].F; }

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

# 1번째 컴파일 단계

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:10:18: error: 'X' was not declared in this scope
   10 |         if (i == X) continue ;
      |                  ^
Alice.cpp:11:13: error: 'class std::vector<std::pair<int, int> >' has no member named 'pb'
   11 |         ans.pb({X, i});
      |             ^~
Alice.cpp:11:17: error: 'X' was not declared in this scope
   11 |         ans.pb({X, i});
      |                 ^