제출 #42848

#제출 시각아이디문제언어결과실행 시간메모리
42848kinssang비교 (balkan11_cmp)C++14
컴파일 에러
0 ms0 KiB
#include "cmp.h"

void remember(int n) {
  //edit this
  //bit_set(13);
}

int compare(int b) {
  //edit this
  if(b > boi_guessval) return 1;
  else if (b < boi_guessval) return -1;
  else return 0;
}

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

cmp.cpp: In function 'int compare(int)':
cmp.cpp:10:10: error: 'boi_guessval' was not declared in this scope
   if(b > boi_guessval) return 1;
          ^~~~~~~~~~~~
cmp.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^