제출 #930021

#제출 시각아이디문제언어결과실행 시간메모리
930021sofiefuAncient Machine 2 (JOI23_ancient2)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "ancient2.h" using namespace std; typedef long long ll; #define int long long #define vo vector #define fi first #define pb push_back #define se second #define pr(x) cerr << #x << " " << x << endl; #define sz(x) x.size() typedef vo<int> vi; typedef pair<int, int> pii; #define rep(i, a, b) for(ll i = (a); i<(b); i++) ll const inf = LLONG_MAX, mxn = 51; std::string Solve(int n){ string ans; rep(i, 0, 1000){ int ret = Query(2, {0, 0}, {1, 1}); if(ret==0){ ans.pb('0'); } else{ ans.pb('1'); } } return ans; }

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

/usr/bin/ld: /tmp/ccO5nLSK.o: in function `main':
stub.cpp:(.text.startup+0xaa): undefined reference to `Solve[abi:cxx11](int)'
collect2: error: ld returned 1 exit status