제출 #752097

#제출 시각아이디문제언어결과실행 시간메모리
752097minhcool앵무새 (IOI11_parrots)C++17
컴파일 에러
0 ms0 KiB
#include "parrots.h" #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define fi first #define se second #define pb push_back #define mp make_pair typedef pair<int, int> ii; typedef pair<ii, int> iii; typedef pair<ii, ii> iiii; const int N = 3e5 + 5; const int oo = 1e18 + 7, mod = 1e9 + 7; mt19937 rng(1); int rnd(int l, int r){ int temp = rng() % (r - l + 1); return abs(temp) + l; } void encode(int N, int M[]){ for(int i = 0; i < N; i++){ for(int j = 0; j < 8; j++){ if(M[i] & (1 << j)){ send(8 * i + j); } } } }
#include "parrots.h" #include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; #define ll long long #define fi first #define se second #define pb push_back #define mp make_pair typedef pair<int, int> ii; typedef pair<ii, int> iii; typedef pair<ii, ii> iiii; const int N = 3e5 + 5; const int oo = 1e18 + 7, mod = 1e9 + 7; mt19937 rng(1); int rnd(int l, int r){ int temp = rng() % (r - l + 1); return abs(temp) + l; } void decode(int N, int L, int X[]){ vector<int> ans(N); for(int i = 0; i < L; i++){ int pos = X[i]/8, pos2 = X[i]%8; ans[pos] += (1 << pos2); } for(int i = 0; i < N; i++) output(ans[i]); }

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

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

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