Submission #888505

#TimeUsernameProblemLanguageResultExecution timeMemory
888505Lincito_31Arranging Shoes (IOI19_shoes)C++14
0 / 100
0 ms348 KiB
using namespace std; #include "shoes.h" int x; long long recursiva(int y){ if(y==2){ return 1; } return y-1+recursiva(y-1); } long long count_swaps(vector<int> s) { x=s.size(); x/=2; recursiva(x); }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
#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...