Submission #42849

#TimeUsernameProblemLanguageResultExecution timeMemory
42849kinssangcmp (balkan11_cmp)C++14
Compilation error
0 ms0 KiB
#include "cmp.h"

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

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

Compilation message (stderr)

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