제출 #1219886

#제출 시각아이디문제언어결과실행 시간메모리
1219886islam_2010Arranging Shoes (IOI19_shoes)C++20
컴파일 에러
0 ms0 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; int count_swaps(vector<int> s){ int n = s.size(); if(n==2){ if(s[0]<0){ return 1; } }return 0; }

컴파일 시 표준 에러 (stderr) 메시지

shoes.cpp:5:5: error: ambiguating new declaration of 'int count_swaps(std::vector<int>)'
    5 | int 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);
      |           ^~~~~~~~~~~