Submission #761447

#TimeUsernameProblemLanguageResultExecution timeMemory
761447lis05stSum Zero (RMI20_sumzero)C++17
Compilation error
0 ms0 KiB
#include "brperm.h" #include <iostream> #include <vector> #include <string> #include <math.h> #include <cmath> #include <iomanip> #include <cstdio> #include <algorithm> #include <numeric> #include <map> #include <set> #include <queue> #include <stack> #include <deque> #include <bitset> #include <cstring> #include <unordered_map> using namespace std; typedef long long ll; ll inv(ll n, ll sz){ if(sz == 0) return 0; ll res = 0; for(int i = 0; i < sz; i++){ res += ((n>>i)&1)<<(sz-i); } return res; } string a; void init(int n, const char s[]) { for(int i = 0; i < n; i++) a.push_back(s[i]); return; } int query(int l, int k) { for(int i = 0; i < (1 << k); i++) if(a[l + i] != a[l + inv(i, k)]) return 0; return 1; }

Compilation message (stderr)

sumzero.cpp:1:10: fatal error: brperm.h: No such file or directory
    1 | #include "brperm.h"
      |          ^~~~~~~~~~
compilation terminated.