제출 #1331949

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

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

컴파일 시 표준 에러 (stderr) 메시지

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);
      |           ^