제출 #171872

#제출 시각아이디문제언어결과실행 시간메모리
171872urd05Arranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
long long count_swaps(int[] S) { if (S[0]>S[1]) { return 1; } else { return 0; } }

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

shoes.cpp:1:29: error: expected ',' or '...' before 'S'
 long long count_swaps(int[] S) {
                             ^
shoes.cpp: In function 'long long int count_swaps(int*)':
shoes.cpp:2:7: error: 'S' was not declared in this scope
   if (S[0]>S[1]) {
       ^
shoes.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^