Submission #275761

#TimeUsernameProblemLanguageResultExecution timeMemory
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; } }

Compilation message (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...