제출 #440323

#제출 시각아이디문제언어결과실행 시간메모리
440323IdkwhoamiArranging Shoes (IOI19_shoes)C++17
10 / 100
1 ms204 KiB
#include "bits/stdc++.h"

using namespace std;

int count_swaps(vector<int> v)
{
    int n = v.size();
    if(n == 2){
        return (v[0] < v[1] ? 0 : 1);
    }
}

// int main()
// {
    
// }

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

shoes.cpp: In function 'int count_swaps(std::vector<int>)':
shoes.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
#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...