제출 #144683

#제출 시각아이디문제언어결과실행 시간메모리
144683chubyxdxdArranging Shoes (IOI19_shoes)C++14
10 / 100
3 ms256 KiB
#include "shoes.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
long long count_swaps(std::vector<int> s) {
  ll tam=s.size();
  if(tam/2==1){
    if(s[0]<0){
      return 0;
    }
    else{
      return 1;
    }
  }
}

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

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...