답안 #150334

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
150334 2019-09-01T08:10:21 Z HSNU(#3687, joylintp, 147, wiwiho) HicCup (FXCUP4_hiccup) C++17
컴파일 오류
0 ms 0 KB
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hiccup.h"

///
#include"hiccup.cpp"
///

static char st[1000101]; static int len;

static void my_assert(int TF, const char* message){
	if(!TF){ puts(message); exit(0); }
}

int main(){
	my_assert(scanf("%s", st) == 1, "Error: Invalid Input");
	len = strlen(st);
	my_assert(1 <= len && len <= 1000000, "Error: Invalid Input");

	for(int i=0; i<len; i++){
		my_assert(st[i]=='H' || st[i]=='C' || st[i]=='!', "Error: Invalid Input");
	}

	std::string ss = st;
	printf("%d\n", HicCup(ss));
	return 0;
}

Compilation message

hiccup.cpp:7:9: fatal error: hiccup.cpp: No such file or directory
 #include"hiccup.cpp"
         ^~~~~~~~~~~~
compilation terminated.