Submission #1087654

#TimeUsernameProblemLanguageResultExecution timeMemory
1087654MahmytMArranging Shoes (IOI19_shoes)C++17
10 / 100
1 ms604 KiB
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
void afterdot(int n){
	cout<<setprecision(n)<<fixed;
}
ll count_swaps(vector<int> S){
	if(S.size()==2){
		if(S[0]<=0){
			return 0;
		}
		return 1;
	}
}

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...