제출 #332346

#제출 시각아이디문제언어결과실행 시간메모리
332346nicholaskArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include "shoes.h"
#include <bits/stdc++.h>
#define int long long
using namespace std;
int count_swaps(vector <int> s){
	if (s[0]>s[1]) return 1;
	return 0;
}

signed main(){
	int n;
	cin>>n;
	vector <int> v(n);
	for (int i=0; i<n; i++) cin>>v[i];
	cout<<solve(v);
}

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

shoes.cpp: In function 'int main()':
shoes.cpp:15:8: error: 'solve' was not declared in this scope
   15 |  cout<<solve(v);
      |        ^~~~~