Submission #226062

#TimeUsernameProblemLanguageResultExecution timeMemory
226062AaronNaiduArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
long long count_swaps(int[] S) { if(S[0] < 0) { return 0; } return 1; }

Compilation message (stderr)

shoes.cpp:1:29: error: expected ',' or '...' before 'S'
 long long count_swaps(int[] S) {
                             ^
shoes.cpp: In function 'long long int count_swaps(int*)':
shoes.cpp:2:5: error: 'S' was not declared in this scope
  if(S[0] < 0) {
     ^