Submission #1251250

#TimeUsernameProblemLanguageResultExecution timeMemory
1251250mohamedboukerche55Arranging Shoes (IOI19_shoes)C++20
10 / 100
0 ms328 KiB
#include<bits/stdc++.h>
using namespace std;

long long count_swaps(vector<int>S)
{
 int n = (S.size()) / 2;
 if(n == 1)
  {
    if(S[0] < S[1])
     {
       return 0;
     }
    else 
     {
      return 1;
     } 

  }
}

Compilation message (stderr)

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