Submission #468798

#TimeUsernameProblemLanguageResultExecution timeMemory
468798AnasBenMoussaArranging Shoes (IOI19_shoes)C++14
10 / 100
23 ms1852 KiB
#include <bits/stdc++.h> using namespace std; long long count_swaps(std::vector<int> S) { int u=S[0]; int f=S[1]; if(u<0&&f>=0){ return 0; } if(u>=0&&f<0){ return 1; } }

Compilation message (stderr)

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