Submission #1205621

#TimeUsernameProblemLanguageResultExecution timeMemory
1205621LolkasMeepArranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; typedef long long int ll; ll count_swaps(int[] S){ if(S[0] < 0) return 0; return 1; }

Compilation message (stderr)

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