제출 #275761

#제출 시각아이디문제언어결과실행 시간메모리
275761SugardorjArranging Shoes (IOI19_shoes)C++14
10 / 100
4 ms5632 KiB
#include <bits/stdc++.h>
using namespace std;
long long b[323567],c[323456],a[323456],tt;
long long s,x,xx,m,y,r,n,t,k,l,aa,bb,cc,dd;
long long i, j, z;
vector <long long>w[223456],ww;
string q,p,qq;


int count_swaps( vector < int > vc ){
    n = vc.size();
    if (n == 1){
        if (vc[0]<0)
            s=0;
        else s=1;
        return s;
    }
}

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

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