Submission #531211

#TimeUsernameProblemLanguageResultExecution timeMemory
531211MedalistSlayerArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
int64_t count_swaps(int[] s)
{
	if(s[1]<0)
	{
		return 1;
	}
	else
	{
		return 0;
	}
}

Compilation message (stderr)

shoes.cpp:3:27: error: expected ',' or '...' before 's'
    3 | int64_t count_swaps(int[] s)
      |                           ^
shoes.cpp: In function 'int64_t count_swaps(int*)':
shoes.cpp:5:5: error: 's' was not declared in this scope
    5 |  if(s[1]<0)
      |     ^
shoes.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^