제출 #1331948

#제출 시각아이디문제언어결과실행 시간메모리
1331948riafhasan2010Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#inlcude <bits/stdc++.h>
using namespace std;
typedef long long ll;

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

컴파일 시 표준 에러 (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);
      |           ^