답안 #1011812

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1011812 2024-07-01T09:04:11 Z nomuluun Hotter Colder (IOI10_hottercolder) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
Guess(int i);
int HC(int N){
    for(int i=1; i<=N; i++){
        Guess(i);
    }
}

Compilation message

hottercolder.cpp:3:13: error: expected constructor, destructor, or type conversion before ';' token
    3 | Guess(int i);
      |             ^
hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:6:9: error: 'Guess' was not declared in this scope
    6 |         Guess(i);
      |         ^~~~~
hottercolder.cpp:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^