제출 #1180974

#제출 시각아이디문제언어결과실행 시간메모리
1180974hamzabcCluedo (IOI10_cluedo)C++20
컴파일 에러
0 ms0 KiB
#include "grader.h"
#include "cluedo.h"

 
 
#define all(x) x.begin(), x.end()
#define mod 1000000007
#define sp << " " <<
#define endl << '\n'


int Solve(){
    long long int M = 1, L = 1, W = 1;
    while (true){
        int k = Theory(M, L, W);
        if (k == 0)
            break;
        if (k == 1)
            M++;
        if (k == 2)
            L++;
        if (k == 3)
            W++;
    }
    return 0;
}

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

cluedo.cpp:12:5: error: ambiguating new declaration of 'int Solve()'
   12 | int Solve(){
      |     ^~~~~
In file included from cluedo.cpp:2:
cluedo.h:1:6: note: old declaration 'void Solve()'
    1 | void Solve();
      |      ^~~~~