Submission #1331948

#TimeUsernameProblemLanguageResultExecution timeMemory
1331948riafhasan2010Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#inlcude <bits/stdc++.h>
using namespace std;
typedef long long ll;

int count_swaps(int[] s) {
  return (s[0] < 0);
}

Compilation message (stderr)

shoes.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
shoes.cpp:5:23: error: expected ',' or '...' before 's'
    5 | int count_swaps(int[] s) {
      |                       ^
shoes.cpp: In function 'int count_swaps(int*)':
shoes.cpp:6:11: error: 's' was not declared in this scope
    6 |   return (s[0] < 0);
      |           ^