제출 #827921

#제출 시각아이디문제언어결과실행 시간메모리
827921smatcsuArranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; ll count_swaps(vector<ll> v){ if(abs(v[0])==v[1] and v[0]<=0 and v[1]>=0) return 0; else{ if(abs(v[1])==v[0] and v[1]<=0 and v[0]>=0) return 1; else return -1; } }

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

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