제출 #1340996

#제출 시각아이디문제언어결과실행 시간메모리
1340996inimadArranging Shoes (IOI19_shoes)C++20
컴파일 에러
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);
}

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