제출 #1141751

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

void remember(int a) {
    a -= 2048;
    if (a < 0) bit_set(1);
    for (int i=2; i<=9; i++){
        if (a & (1<<(i-2))) bit_set(i);
    }
}

int compare(int b) {
    int a=0;
    for (int i=2; i<=9; i++){
        if (bit_get(i)) a |= (1<<(i-2));
    }
    if (bit_get(1)) a*=-1;
    a += 2048;
    if (b < a) return -1;
    else if (b == a) return 0;
    return 1;

}

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

timeismoney.cpp:1:10: fatal error: cmp.h: No such file or directory
    1 | #include "cmp.h"
      |          ^~~~~~~
compilation terminated.