Submission #431891

#TimeUsernameProblemLanguageResultExecution timeMemory
431891JUANDI321Arranging Shoes (IOI19_shoes)C++17
15 / 100
39 ms3124 KiB
#include "shoes.h" #include <vector> #include <deque> #include <iostream> using namespace std; long long count_swaps(vector<int> s) { long long count = 0; for(int i = 0; i<s.size()/2; i++)count+=i; return count; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:9:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for(int i = 0; i<s.size()/2; i++)count+=i;
      |                 ~^~~~~~~~~~~
#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...