제출 #909895

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

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

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