Submission #1141640

#TimeUsernameProblemLanguageResultExecution timeMemory
1141640lyricclamp비교 (balkan11_cmp)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include<cmp.h>
#define endl '\n'
#define pb push_back
using ll = long long;
using namespace std;

void remember(int a) {
    string s;
    s += (a % 2) + '0';
    while(a /= 2) s += (a % 2) + '0';
    reverse(s.begin(), s.end());
    for(int i = 0; i < s.size(); i++) if(s[i] == '1') bit_set(i);
}

int compare(int b) {
    ll p = 1, ans = 0;
    for(int i = 0; i < 10; i++, p *= 2) ans += bit_get(i) * p;
    return ans;
}

//int main() {
//    ios_base::sync_with_stdio(false);
//    cin.tie(0);
//    cout.tie();
//
//
//
//    return 0;
//}

Compilation message (stderr)

cmp.cpp:2:9: fatal error: cmp.h: No such file or directory
    2 | #include<cmp.h>
      |         ^~~~~~~
compilation terminated.