제출 #531211

#제출 시각아이디문제언어결과실행 시간메모리
531211MedalistSlayerArranging Shoes (IOI19_shoes)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int64_t count_swaps(int[] s) { if(s[1]<0) { return 1; } else { return 0; } }

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

shoes.cpp:3:27: error: expected ',' or '...' before 's'
    3 | int64_t count_swaps(int[] s)
      |                           ^
shoes.cpp: In function 'int64_t count_swaps(int*)':
shoes.cpp:5:5: error: 's' was not declared in this scope
    5 |  if(s[1]<0)
      |     ^
shoes.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^