Submission #1189749

#TimeUsernameProblemLanguageResultExecution timeMemory
1189749Tsagana마술쇼 (APIO24_show)C++20
Compilation error
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; }

Compilation message (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});
      |                 ^