제출 #43894

#제출 시각아이디문제언어결과실행 시간메모리
43894dhkim0225비교 (balkan11_cmp)C++14
0 / 100
2 ms248 KiB
#include "cmp.h"
#include <iostream>

using namespace std;
void remember(int n) {
	bit_set(n);
}

int compare(int b) {
	for (int i = 1; i < 20240; i++) {
		cout << bit_get(i) << endl;
		if (bit_get(i) == 1) {
			if (b < i) 
				return -1;
			else if (b == i) 
				return 0;
			else 
				return 1;
		}
	}
}

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

cmp.cpp: In function 'int compare(int)':
cmp.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…