Submission #305937

#TimeUsernameProblemLanguageResultExecution timeMemory
305937amunduzbaevArranging Shoes (IOI19_shoes)C++14
10 / 100
1 ms256 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; long long count_swaps(vector<int> s) { long long ns=0; if(s[0]>s[1]) ns++; return ns; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:8:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    8 |     if(s[0]>s[1])
      |     ^~
shoes.cpp:10:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   10 |  return ns;
      |  ^~~~~~
#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...