제출 #1006304

#제출 시각아이디문제언어결과실행 시간메모리
1006304gutzzySimurgh (IOI17_simurgh)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int minimum_walk(vector<int> p, int s){ int n = p.size(); while(n>0 and p[n-1]==n-1){ p.pop_back(); n--; } if(n==0) return 0; vector<int> a = {3,2,1,0}; if(p==a) return 8; else return 2*(n-1); } /* int main() { cout << minimum_walk({1,0,2,3},0) << endl; return 0; } */

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

/usr/bin/ld: /tmp/ccoE1R82.o: in function `main':
grader.cpp:(.text.startup+0x2ef): undefined reference to `find_roads(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status