Submission #1219881

#TimeUsernameProblemLanguageResultExecution timeMemory
1219881islam_2010Arranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
#include "shoes.h" 
#include <bits/stdc++.h>
using namespace std;

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

Compilation message (stderr)

shoes.cpp:5:9: error: ambiguating new declaration of 'int64_t count_swaps(std::vector<int>)'
    5 | int64_t count_swaps(vector<int> s){
      |         ^~~~~~~~~~~
In file included from shoes.cpp:1:
shoes.h:7:11: note: old declaration 'long long int count_swaps(std::vector<int>)'
    7 | long long count_swaps(std::vector<int> S);
      |           ^~~~~~~~~~~