Submission #1087646

#TimeUsernameProblemLanguageResultExecution timeMemory
1087646MahmytMArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 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(int[] S){
	if(S.size()==1){
		cout<<0<<endl;
	}
}

Compilation message (stderr)

shoes.cpp:12:22: error: expected ',' or '...' before 'S'
   12 | ll count_swaps(int[] S){
      |                      ^
shoes.cpp: In function 'long long int count_swaps(int*)':
shoes.cpp:13:5: error: 'S' was not declared in this scope
   13 |  if(S.size()==1){
      |     ^
shoes.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^