제출 #1319394

#제출 시각아이디문제언어결과실행 시간메모리
1319394lrnnz마술쇼 (APIO24_show)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; #define ll long long vector<pair<int,int>> Alice(){ ll n = 100; ll x = setN(n); vector<pair<int,int>> tree; for (int i = 2; i <= n; i++) { tree.pb({i, x % i}); } return tree; }
#include <bits/stdc++.h> #include "Bob.h" using namespace std; #define ll long long ll Bob(vector<pair<int,int>> V){ ll ans = 1, d = 1; for (auto [rem, div] : V) { if (rem > div) swap(rem, div); while (ans % div != rem) { ans += d; } d = lcm(d, div); } return ans; }

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

# 1번째 컴파일 단계

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:14:14: error: 'class std::vector<std::pair<int, int> >' has no member named 'pb'
   14 |         tree.pb({i, x % i});
      |              ^~