Submission #332346

#TimeUsernameProblemLanguageResultExecution timeMemory
332346nicholaskArranging Shoes (IOI19_shoes)C++14
Compilation error
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);
}

Compilation message (stderr)

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