Submission #42848

# Submission time Handle Problem Language Result Execution time Memory
42848 2018-03-05T02:13:21 Z kinssang cmp (balkan11_cmp) C++14
Compilation error
0 ms 0 KB
#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;
}

Compilation message

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]
 }
 ^