Submission #1340996

#TimeUsernameProblemLanguageResultExecution timeMemory
1340996inimadArranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;

#define LL long long

LL count_swaps(int[] S){
    
    return (S[0] < 0 ? 0 : 1);
}

Compilation message (stderr)

shoes.cpp:6:22: error: expected ',' or '...' before 'S'
    6 | LL count_swaps(int[] S){
      |                      ^
shoes.cpp: In function 'long long int count_swaps(int*)':
shoes.cpp:8:13: error: 'S' was not declared in this scope
    8 |     return (S[0] < 0 ? 0 : 1);
      |             ^