제출 #148387

#제출 시각아이디문제언어결과실행 시간메모리
148387Welcome to osu! (#200)HicCup (FXCUP4_hiccup)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc+++.h>
#include "hiccup.h"
using namespace std;

int HicCup(std::string S)
{
    int cnt = 0;
    for(int i=0; i<S.size(); i++){
        if(S[i]=='H') cnt++;
        else cnt--;
        if(cnt<0){
            cout << -1;
            return 0;
        }
    }
    if(cnt!=0) cout << -1;
    else cout << 0;
}

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

hiccup.cpp:1:10: fatal error: bits/stdc+++.h: No such file or directory
 #include <bits/stdc+++.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.