제출 #1029878

#제출 시각아이디문제언어결과실행 시간메모리
1029878lucriMagic Show (APIO24_show)C++17
컴파일 에러
0 ms0 KiB
#include <vector> #include <utility> std::vector<std::pair<int,int>> Alice() { std::vector<std::pair<int,int>>v; long long x=setN(5000); for(int i=2;i<=5000;++i) v.push_back({x%(i-1)+1,i}); return v; }
#include <vector> #include <utility> long long Bob(std::vector<std::pair<int,int>> V) { int n=V.size(); for(int i=V[n-1].first-1;;i+=V[n-1].second-1) { std::pair<int,int>q; for(int j=0;j<n;++j) { q=V[j]; if(j==n-1) return i; if(i%(V[j].second-1)!=V[j].first-1) break; } } }

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

Alice.cpp: In function 'std::vector<std::pair<int, int> > Alice()':
Alice.cpp:6:17: error: 'setN' was not declared in this scope
    6 |     long long x=setN(5000);
      |                 ^~~~