제출 #1154602

#제출 시각아이디문제언어결과실행 시간메모리
1154602hmm789Hop (COCI21_hop)C11
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define INF 1000000000000000000
#define MOD 1000000007

int lg(int x) {
    return 63-__builtin_clzll(x);
}

int32_t main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int n;
    cin >> n;
    int a[n];
    for(int i = 0; i < n; i++) cin >> a[i];
    for(int i = 1; i < n; i++) {
        for(int j = 0; j < i; j++) {
            if(lg(a[i])/16 != lg(a[j])/16) cout << 1 << " ";
            else if(lg(a[i])/4 != lg(a[j])/4) cout << 2 << " ";
            else cout << 3 << " ";
        }
        cout << endl;
    }
}

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

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