submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s920119395
p03689
C++
#include<cstdio> using namespace std; const int maxn = 1000000000; int main() { int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d); if(a % c == 0 && b % d == 0) { printf("No\n"); } int nz = maxn / (c * d - 1); int nf = (c * d - 1) * maxn + 1; else { printf("Yes\n"); for(int i = 1;i <= a;++i) { for(int j = 1...
a.cc: In function 'int main()': a.cc:14:9: error: 'else' without a previous 'if' 14 | else | ^~~~
s166459872
p03689
C++
#include <iostream> #include<vector> using namespace std; int main() { int H,W,h,w;cin>>H>>W>>h>>w; int minus=(H/h)*(W/w); int plus=(H%h)*W+(W%w)*H-(H%h)*(W%w); // cout<<minus<<' '<<plus<<endl; if((H%h)+(W%w)==0){ cout<<"No"<<endl; return 0; }else{ cout<<"Yes"<<endl; } int def=1; for(int i=0;i<9;i++){ ...
a.cc: In function 'int main()': a.cc:26:41: error: 'w' cannot be used as a function 26 | num=-h*w(def/(h*w))+(def/(h*w))-1; | ~^~~~~~~~~~~
s791470230
p03689
C++
def solve a,b,h,w=gets.split.map &:to_i return puts "No" if (a%h).zero? && (b%w).zero? puts "Yes" swap = (b%w).zero? a,b,h,w = b,a,w,h if swap s = [-1]*b s[-1]=1 (b-1-w).step(0, -w) do |i| s[i] = s[i+w] + 1 end t = [s[0]] 1.upto(s.size-1) do |i| t << s[i] - s[i-1] end t = a.size.time...
a.cc:1:1: error: 'def' does not name a type 1 | def solve | ^~~ a.cc:19:3: error: 't' does not name a type 19 | t.transpose if swap | ^ a.cc:21:1: error: 'end' does not name a type 21 | end | ^~~
s517554988
p03689
C++
#include <iostream> using namespace std; int H, W, h, w; int main { cin>>H>>W>>h>>w; if(H%h==0 && W%w==0) { cout<<"No"; return 0; } cout<<"Yes"<<'\n'; int pval=(W/w)*(H/h)*2; int nval=-pval*(w*h-1)-1; for(int i=1; i<=H; i++) { for(int j=1; j<=W; j++) { if(...
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main { | ^~~~ a.cc:5:20: error: expected '}' before ';' token 5 | cin>>H>>W>>h>>w; | ^ a.cc:4:10: note: to match this '{' 4 | int main { | ^ a.cc:5:17: error: invalid user-defined c...
s830070307
p03689
C++
y
a.cc:1:1: error: 'y' does not name a type 1 | y | ^
s593893671
p03689
C++
#include <bits/stdc++.h> using namespace std; int main() { int H, W, h, w; cin >> H >> W >> h >> w; int nrlin = H / h; int nrcol = W / w; if (H % h == 0 && W % w == 0) cout << "No\n"; return 0; } else cout << "Yes\n"; for (int i(1); i <= H; i++) for (i...
a.cc:16:5: error: expected unqualified-id before 'else' 16 | else | ^~~~ a.cc:19:5: error: expected unqualified-id before 'for' 19 | for (int i(1); i <= H; i++) | ^~~ a.cc:19:20: error: 'i' does not name a type 19 | for (int i(1); i <= H; i++) | ^ a.cc:1...
s062621808
p03689
C++
#include <iostream> #include <algorithm> #include <cmath> using namespace std; int main () { double x,y,w,z; cin >> x >> y >> w >> z; double aCo1 = (2*x + 2*y - 4); double aCo2 = (w + z - 1); double bCo1 = (x*y - aCo1); double bCo2 = ((w*z) - aCo2); //Does there exist an integer a where //a > (b * (bCo1/aCo1)...
a.cc: In function 'int main()': a.cc:39:57: error: 'a' was not declared in this scope 39 | cout << a << " "; | ^
s692597458
p03689
C++
#include <iostream> #include <algorithm> #include <math> using namespace std; int main () { double x,y,w,z; cin >> x >> y >> w >> z; double aCo1 = (2*x + 2*y - 4); double aCo2 = (w + z - 1); double bCo1 = (x*y - aCo1); double bCo2 = ((w*z) - aCo2); //Does there exist an integer a where //a > (b * (bCo1/aCo1))...
a.cc:3:10: fatal error: math: No such file or directory 3 | #include <math> | ^~~~~~ compilation terminated.
s754556559
p03689
C++
#include <iostream> #include <vector> using namespace std; int main () { long H,W,h,w; cin >> H >> W >> h >> w; if (h == 1 && w == 1) { cout << "No\n"; return 0; } if (h == H && w == W) { cout << "No\n"; return 0; } long lb = H*W - 4; long olb = lb; long ub = abs(4*(w*z - 1)); long oub = ub; for (l...
a.cc: In function 'int main()': a.cc:19:28: error: 'z' was not declared in this scope 19 | long ub = abs(4*(w*z - 1)); | ^ a.cc:22:39: error: 'pow' was not declared in this scope 22 | if ((x%4) == 0 && x < pow(10,9)) { | ...
s570109098
p03689
C++
[Window Title] Steam Client WebHelper [Main Instruction] Steam Client WebHelper 已停止工作 [Content] Windows 正在检查该问题的解决方案... [取消]
a.cc:1:1: error: expected unqualified-id before '[' token 1 | [Window Title] | ^
s417272642
p03689
C++
#include<bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define mp make_pair ll a[501][501]; int main(){ int h,w,h1,w1; cin>>h>>w>>h1>>w1; if(((h1==h)&&(w1==w))||((h1==1)&&(w1==1))) cout<<"No"<<end; else{ cout<<"Yes"<<endl; int inx=1; int indy=1; ll x=5; ll y=h1*w1*5-1; y=-...
a.cc: In function 'int main()': a.cc:12:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 12 | cout<<"No"<<end; | ~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/istream:41, from /usr/include/c++/14...
s220888558
p03689
C++
// In the name of God #include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define an size() using namespace std; const ll maxn=1e9+7; ll k[5]; int main() { ll W,H,w,h,s,ans=0; cin>>W>>H>>w>>h; s=w*h; cout<<"No"; return 0; if...
a.cc: In function 'int main()': a.cc:51:20: error: expected ';' before '}' token 51 | w=1//cout<<k[maxn]; | ^ | ; 52 | } | ~
s082490015
p03689
C++
// In the name of God #include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define an size() using namespace std; const ll maxn=109; int main() { ll W,H,w,h,s; cin>>W>>H>>w>>h; s=w*h; if(W%w==0&&H%h==0) { cout<<"No"; ...
a.cc: In function 'int main()': a.cc:49:17: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [5]') 49 | cout<"Yes\n"; | ~~~~^~~~~~~~ | | | | | const char [5] | s...
s385818936
p03689
C++
// In the name of God #include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair #define F first #define S second #define an size() using namespace std; const ll maxn=109; int main() { ll W,H,w,h,s; cin>>W>>H>>w>>h; s=w*h; if(W%w==0&&H%h==0) { cout<<"No"; ...
a.cc: In function 'int main()': a.cc:49:17: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [5]') 49 | cout<"Yes\n"; | ~~~~^~~~~~~~ | | | | | const char [5] | s...
s409381491
p03689
C++
#include <iostream> #include <algorithm> using namespace std; int main() { int R, C, R2, C2, r, c; cin >> R >> C >> R2 >> C2; if (R % R2 == 0 && C % C2 == 0) FAIL; int b[500][500] = {}; int useRow = (R%R2 != 0); for (r = 0; r < R; r++) { ...
a.cc: In function 'int main()': a.cc:9:41: error: 'FAIL' was not declared in this scope 9 | if (R % R2 == 0 && C % C2 == 0) FAIL; | ^~~~
s721132246
p03689
C++
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<double, double> pdd; const ull mod = 1e9 + 7; #define REP(i,n) for(int i=0;i<(int)n;++i) int main(){ int H, h, W, w; cin >> H >> W >> h >> w; ...
a.cc: In function 'int main()': a.cc:18:13: error: lvalue required as left operand of assignment 18 | if(W%w=0){ | ~^~
s094239985
p03689
C++
#include <bits/stdc++.h> using namespace std; int main() { iostream_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int H,W,h,w; cin>>H>>W>>h>>w; if(H%h==0&&(W%w==0)) { cout<<"No\n"; } else { for(int i=1;i<=H;i++) { for(int j=1;j<=W;j++) { if(i%h==1&&(j%w==1)) { cout<<(10000000...
a.cc: In function 'int main()': a.cc:5:9: error: 'iostream_base' has not been declared 5 | iostream_base::sync_with_stdio(false); | ^~~~~~~~~~~~~
s192282213
p03689
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <cmath> #include <cassert> #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define rep(i,n) FOR(i,0,n) #define DEBUG(x) cout<<#x<<": "<<x<<endl #define vint vector<int> #define vdouble vector<double> #define vs...
a.cc: In function 'int main()': a.cc:33:9: error: return-statement with no value, in function returning 'int' [-fpermissive] 33 | return; | ^~~~~~
s146064633
p03689
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long H = sc.nextLong(); long W = sc.nextLong(); long h = sc.nextLong(); long w = sc.nextLong(); long x = (-10000000)*(h*w-1)-1; String[] ans = new String[H]; for(int i=0; i<H; ++i){ ...
Main.java:12: error: incompatible types: possible lossy conversion from long to int String[] ans = new String[H]; ^ 1 error
s925121436
p03689
C++
/*input 2 4 1 2 */ #include <bits/stdc++.h> #define ll long long int #define lld long double using namespace std; int main(){ ios::sync_with_stdio(false); ll a,b,c,d;cin>>a>>b>>c>>d; ll array[a+1][b+1]={0}; ll x=0; for(ll i=c;i<=a;i+=c){ for(ll j=d;j<=b;j+=d){ x++; } } if(((a*b)-x-(x*c*d))==0){ temp=1;...
a.cc: In function 'int main()': a.cc:19:17: error: 'temp' was not declared in this scope; did you mean 'tm'? 19 | temp=1; | ^~~~ | tm
s433329803
p03689
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int H, W, h, w; cin >> H >> W >> h >> w; if (H <= 2 && W <= 2) { cout << "No" << endl; return 0; } vector< vector<ll> > a(H, vector<ll>(W, min(H, 2) * min(W, 2) * 1e9 / (H * W - min(H,...
a.cc: In function 'int main()': a.cc:23:30: error: 'j' was not declared in this scope 23 | cout << a[i][j]; | ^
s495228754
p03689
C++
LL c1 = 0, c2 = 0; REP(y, h) REP(x, w) { if(y <= bh && x <= bw) { c1++; } else { c2++; } } LL d2[500][500] = {}; REP(y, H) REP(x, W) { }
a.cc:1:5: error: 'LL' does not name a type 1 | LL c1 = 0, c2 = 0; | ^~ a.cc:2:8: error: expected constructor, destructor, or type conversion before '(' token 2 | REP(y, h) REP(x, w) { | ^ a.cc:9:5: error: 'LL' does not name a type 9 | LL d2[500][500] = {}; | ^~ a...
s393567759
p03689
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int h = sc.nextInt(); int w = sc.nextInt(); ifif( (H-h)%2==0 || (W-w)%2==0 ) System.out.println("No"); System.out.println("Yes"); long s =...
Main.java:10: error: ';' expected ifif( (H-h)%2==0 || (W-w)%2==0 ) System.out.println("No"); ^ 1 error
s833368460
p03689
C++
#include <iostream> #include <set> #include <vector> #include <string> #include <algorithm> #include <queue> #include <set> #include <cstring> #include <map> #include <bitset> #include <random> #include <stack> #include <list> #include <unordered_set> #include <unordered_map> #include <ctime> using namespace std; #de...
a.cc: In function 'int main()': a.cc:44:13: error: redeclaration of 'int cnt' 44 | int cnt = 0; | ^~~ a.cc:41:34: note: 'int cnt' previously declared here 41 | int mn = 1e9, mx = -1e9, cnt = 0; | ^~~
s602945723
p03689
C++
#include<cstdio> int main() { int n,m,h,w; scanf("%d%d%d%d",&n,&m,&h,&w); return puts("No"),0;
a.cc: In function 'int main()': a.cc:7:37: error: expected '}' at end of input 7 | return puts("No"),0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s972099863
p03689
C++
if (i % h < r) cout << 5 * H << " "; else if (i % h == r) cout << -5 * H * r - 1 << " "; else cout << "0 "; } cout << "\n"; } return 0; } if (W % w != 0) { cout << "Yes\n"; int r = W % w; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { if (j % w < r) ...
a.cc:1:33: error: expected unqualified-id before 'if' 1 | if (i % h < r) | ^~ a.cc:3:33: error: expected unqualified-id before 'else' 3 | else if (i % h == r) | ^~~~ a.cc:5...
s372452914
p03689
Java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exception { InputStream inp...
Main.java:53: error: class, interface, enum, or record expected } ^ 1 error
s571326894
p03689
C++
using namespace std; #define ll long long #define ld long double #define pll pair <ll , ll> #define pb push_back #define pf push_front #define pob pop_back #define pof pop_front #define mp make_pair #define X first #define Y second #define LB(x) (x & -(x)) #define BIT(a,b) ((ll)((a)&(1 << (b)))==0 ? false : true) ...
a.cc: In function 'int main()': a.cc:25:5: error: 'ios_base' has not been declared 25 | ios_base :: sync_with_stdio(false); | ^~~~~~~~ a.cc:26:5: error: 'cin' was not declared in this scope 26 | cin.tie(0); | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is pro...
s877117782
p03689
C++
/*#include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp>*/ #include <bits/stdc++.h> using namespace std; //using namespace __gnu_pbds; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pii; //typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update...
a.cc:44:7: error: unterminated comment 44 | } /*else if (W % w != 0) { | ^ a.cc: In function 'int main()': a.cc:44:6: error: expected '}' at end of input 44 | } /*else if (W % w != 0) { | ^ a.cc:31:12: note: to match this '{' 31 | int main() { | ^
s633036220
p03689
C++
#include <cstdlib> #include <iostream> #include <queue> #include <vector> #include <cmath> #include <string> using namespace std; typedef unsigned long long u64; typedef signed long long l64; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int H, W, h, w; cin >> H >> W >> h >> w; l64 mat[H][W]; l...
a.cc: In function 'int main()': a.cc:41:52: error: invalid type argument of unary '*' (have 'int') 41 | } else if ( (999999999 / (h*w-1)) * (h*w-1) + 1) * (H/h) * (W/w) < (999999999 / (h*w-1)) * H * W ) { | ^~~~~~~
s934511345
p03689
C++
#include<set> #include<map> #include<cmath> #include<ctime> #include<cstdio> #include<cassert> #include<cstdlib> #include<cstring> #include<algorithm> using namespace std; const double PI=acos(-1); typedef long long ll; typedef pair<int,int> pi; #define fi first #define se second #define mp make_pair #define pb push_ba...
a.cc: In function 'bool check()': a.cc:48:15: error: 'i' was not declared in this scope; did you mean 'pi'? 48 | if (a[i][j]>0){ | ^ | pi a.cc:48:18: error: 'j' was not declared in this scope 48 | if (a[i][j]>0){ | ^
s013479549
p03689
C++
int main(){ puts("No"); }
a.cc: In function 'int main()': a.cc:2:5: error: 'puts' was not declared in this scope 2 | puts("No"); | ^~~~
s653329506
p03689
C++
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; long long H, h, W, w; long long a[1090][1090]; bool check() { long long sum = 0; for (int i = 1; i <= H; ++i) for (int j = 1; j <= W; ++j) sum += a[i][j]; return sum > 0; } int main() { scanf("%lld %lld %l...
a.cc: In function 'int main()': a.cc:18:24: error: 'LL' was not declared in this scope 18 | a[i][j] = -LL(h*w-1)*260000LL-1LL; | ^~
s589770407
p03689
C++
#include <bits/stdc++.h> using namespace std; #define int long long using ll=long long; using vi=vector<int>; using vl=vector<long long>; using pii=pair<int,int>; using pll=pair<long long,long long>; #define ITR(i,c) for(auto i=begin(c);i!=end(c);++i) #define FORE(x,c) for(auto &x:c) #define REPF(i,a,n) for(int i=a,i##...
a.cc: In function 'int main()': a.cc:55:5: error: 'dump_vvi' was not declared in this scope 55 | dump_vvi(g); | ^~~~~~~~
s019040790
p03689
C++
#include <cmath> #include <algorithm> #include <numeric> #include <string> using u8t = std::uint64_t; using i8t = std::int64_t; #define F(I,N) for(i8t I=0,_N=N;I<_N;I++) #define FR(I,N) for(i8t I=N;I--;) #define R(V) i8t V;std::cin>>V; #define RV(V,N) std::vector<i8t> V;F(_i,N){R(_x)V.push_back(_x);} #define RL1(line) ...
a.cc:5:18: error: 'uint64_t' in namespace 'std' does not name a type; did you mean 'wint_t'? 5 | using u8t = std::uint64_t; | ^~~~~~~~ | wint_t a.cc:6:18: error: 'int64_t' in namespace 'std' does not name a type 6 | using i8t = std::int64_t; | ...
s715284659
p03690
C++
#include <iostream> #include <algorithm> #include <set> #include <map> using namespace std; const int N = 100 * 1000 + 5; int a[N], b[N]; set <pair <int, int> > s; map <int, set <int> > mp; int c[N], d[N]; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { cin >> a[i]; a[0] ^= a[i]; } for (int i...
a.cc: In function 'int main()': a.cc:64:47: error: 'z' was not declared in this scope 64 | if (a[0] == a[z]) { | ^
s296048832
p03690
C++
#include<bits/stdc++.h> using namespace std; #pragma GCC optimize("Ofast,unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4.2") #define all(x) (x).begin(),(x).end() int inp(){ int x; cin >> x; return x; } int get_compos(const int &key, const vector<int> &comp){ return lower_bound(all(comp),...
a.cc: In function 'void solve()': a.cc:115:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 115 | int main(){ | ^~ a.cc:115:9: note: remove parentheses to default-initialize a variable 115 | int main(){ | ^~ | -- a.cc:115:9: note: ...
s870014586
p03690
C
//khodaya khodet komak kon #include <bits/stdc++.h> #define F first #define S second #define pb push_back #define all(x) x.begin(), x.end() #pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; const in...
main.c:2:10: fatal error: bits/stdc++.h: No such file or directory 2 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s285331544
p03690
C++
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #includ...
a.cc:94:16: error: macro "FOR" requires 3 arguments, but only 2 given 94 | FOR(i,N) cin>>A[i]; | ^ a.cc:39:9: note: macro "FOR" defined here 39 | #define FOR(i,a,b) for(int i=(a);i<(b);++i) | ^~~ a.cc:95:16: error: macro "FOR" requires 3 arguments, but only 2 given 95...
s750510525
p03690
C++
#include <bits/stdc++.h> using namespace std; const int N = 100005; unordered_map<int,int> id; vector<int> v; int a[N], b[N], p[N], rk[N], xa[N], xb[N]; int n, N, num; int find(int x){ return p[x] == x ? x : p[x] = find(p[x]); } void unionset(int x, int y){ x = find(x), y= find(y); if (x == y) return; ...
a.cc:7:8: error: conflicting declaration 'int N' 7 | int n, N, num; | ^ a.cc:3:11: note: previous declaration as 'const int N' 3 | const int N = 100005; | ^ a.cc: In function 'int main()': a.cc:42:13: error: increment of read-only variable 'N' 42 | N++; | ...
s637408770
p03690
C++
#include <bits/stdc++.h> using namespace std; int a[100500], b[100500]; int mid[100500], mid2[100500]; int main() { int n = 0; scanf("%d", &n); for(int i = 1; i <= n; i++) scanf("%d", a + i), a[0] ^= a[i]; for(int i = 1; i <= n; i++) scanf("%d", b + i), b[0] ^= b[i]; for(int i = 0; i <= n; i++) mid[i] = a[i], mid2...
a.cc: In function 'int main()': a.cc:22:14: error: 'i' was not declared in this scope 22 | if(a[i] == b[i]) cout << tot + 1 << endl; | ^
s331221914
p03690
C++
#include <iostream> #include <fstream> #include <map> #include <vector> using namespace std; const int nmax=100005; map<int,int> ap,norm; vector<int> v[nmax]; int viz[nmax],a[nmax],b[nmax]; int n,i,j,nr,edges,cc; void dfs(int x) { viz[x]=1; for(int i=0;i<v[x].size();i++) if(!viz[v[x][i]]) dfs...
a.cc: In function 'int main()': a.cc:20:15: error: 'sync_woth_stdio' is not a member of 'std::ios_base' 20 | ios_base::sync_woth_stdio(false); | ^~~~~~~~~~~~~~~
s564276627
p03690
C++
#include<bit s/stdc++.h> const i nt MAXN = 4e5 + 10; using namespace std; inline i nt read() { char c = getchar(); in t x = 0, f = 1; while(c < ' 0' || c > '9') {if(c == '-') f = -1; c = getchar();} while(c >= '0' && c <= '9') x = x * 10 + c - '0', c = getchar(); return x * f; ...
a.cc:1:13: error: missing terminating > character 1 | #include<bit | ^ a.cc:13:15: warning: missing terminating ' character 13 | while(c < ' | ^ a.cc:13:15: error: missing terminating ' character a.cc:14:6: warning: multi-character literal with 8 characters exceeds 'int'...
s577039207
p03690
C++
#include<bits/stdc++.h> #define X first #define Y second #define pb emplace_back #define FOR(i,a,b) for(int (i)=(a);i<(b);++(i)) #define EFOR(i,a,b) for(int (i)=(a);i<=(b);++(i)) #define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X)) #define reps(X,S,Y) for (int (X) = S;(X) < (Y);++(X)) #define rrep(X,Y) for (int (X) = (Y)...
a.cc: In function 'int main()': a.cc:56:25: error: 'given' was not declared in this scope; did you mean 'give'? 56 | if (defx == give) given = *es[want].rbegin(); | ^~~~~ | give a.cc:69:23: error: 'given' was not declared in this scope; did you mean '...
s386312269
p03690
C++
#include <bits/stdc++.h> #define ll long long using namespace std; struct node { int x,id; }ord[100005],ord2[100005]; int n,flag; int fa[100005],a[100005],b[100005],c[100005],c2[100005],vis[100005],v[100005]; map<int,int> mp; bool cmp(node a, node b) { return a.x<b.x; } int Find(int x){ if(fa[x]!=x) fa...
a.cc: In function 'int main()': a.cc:98:11: warning: ignoring return value of '_FIter std::unique(_FIter, _FIter) [with _FIter = __gnu_cxx::__normal_iterator<int*, vector<int> >]', declared with attribute 'nodiscard' [-Wunused-result] 98 | unique(n1.begin(), n1.end()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In...
s765663360
p03690
C++
#include <bits/stdc++.h> #define ll long long using namespace std; struct node { int x,id; }ord[100005],ord2[100005]; int n,flag; int fa[100005],a[100005],b[100005],c[100005],c2[100005],vis[100005],v[100005]; map<int,int> mp; bool cmp(node a, node b) { return a.x<b.x; } int Find(int x){ if(fa[x]!=x) fa...
a.cc: In function 'int main()': a.cc:98:11: warning: ignoring return value of '_FIter std::unique(_FIter, _FIter) [with _FIter = __gnu_cxx::__normal_iterator<int*, vector<int> >]', declared with attribute 'nodiscard' [-Wunused-result] 98 | unique(n1.begin(), n1.end()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In...
s035869137
p03690
C++
#include<cstdio> #include<algorithm> using namespace std; const int N=100010; int n,ck=2,suma,sumb,tota,totb,fxor,ans,cnt,f[N],[N],b[N],lsha[N],lshb[N]; int find(int x){ return x==f[x]?x:f[x]=find(f[x]); } int main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",a+i); lsha[i]=a[i]; suma^=a[i]; } for(int...
a.cc:5:50: error: expected unqualified-id before '[' token 5 | int n,ck=2,suma,sumb,tota,totb,fxor,ans,cnt,f[N],[N],b[N],lsha[N],lshb[N]; | ^ a.cc: In function 'int main()': a.cc:12:28: error: 'a' was not declared in this scope 12 | scanf("%d...
s423994909
p03690
C++
#include <cstdio> #include <cstring> #include <algorithm> #define inf 0x3f3f3f3f using namespace std; namespace SETS { int fa[100005]; void init(int n) { for(int i=1;i<=n;i++) fa[i]=i; } int find_father(int x) { return (fa[x]==x)?x:fa[x]=find_father(fa[x]); } void merge(int x,int y) { x=find_father(x);y=fin...
a.cc:29:1: error: 'vector' does not name a type 29 | vector <int> vt1[200005],vt2[200005]; | ^~~~~~ a.cc: In function 'int calc(int, int)': a.cc:34:9: error: 'vt1' was not declared in this scope 34 | vt1[i].clear(); | ^~~ a.cc:35:9: error: 'vt2' was not declared in this scope 35 | ...
s010851599
p03690
C++
#include <cstdio> #include <iostream> #include <algorithm> #include <map> #include <cstring> #include <cstdlib> #include <cctype> #define fo(i, x, y) for (int i = x; i <= y; ++i) #define fd(i, x, y) for (int i = x; i >= y; --i) using namespace std; const int maxn = 1e5 + 5; int n, cnt, ans; int a[maxn], b[maxn], tm...
a.cc: In function 'void un(int, int)': a.cc:37:13: error: reference to 'rank' is ambiguous 37 | if (rank[fx] < rank[fy]) fa[fx] = fy; | ^~~~ In file included from /usr/include/c++/14/bits/move.h:37, from /usr/include/c++/14/bits/exception_ptr.h:41, from /us...
s198024264
p03690
C++
#include<iostream> #include<stdio.h> #include<string.h> #include<map> #include<set> using namespace std; struct node{ int x,y; node(int _x,int _y){x=_x,y=_y;} }; operator <(node x,node y){ if(x.x==y.x)return x.y<y.y; return x.x<y.x; } set<node>s; int n,a[120000],b[120000]; int x; map<int,int>p; int main(){ scanf("...
a.cc:11:1: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive] 11 | operator <(node x,node y){ | ^~~~~~~~
s436576263
p03690
C++
#include<iostream> #include<stdio.h> #include<string.h> #include<map> #include<set> using namespace std; struct node{ int x,y; node(int _x,int _y){x=_x,y=_y;} }; inline operator <(node x,node y){ if(x.x==y.x)return x.y<y.y; return x.x<y.x; } set<node>s; int n,a[120000],b[120000]; int x; map<int,int>p; int main(){ ...
a.cc:11:8: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive] 11 | inline operator <(node x,node y){ | ^~~~~~~~
s355610857
p03690
C++
#include<bits/stdc++.h> const int MAXN = 2e5 + 10; using namespace std; int n; int ans=0,sum=0; int A[MAXN], B[MAXN], ta[MAXN], tb[MAXN], sa, sb, tot = 0, Do[MAXN], fa[MAXN]; int find(int x) { return fa[x] == x ? fa[x] : fa[x] = find(fa[x]); } int unionn(int x, int y) { fa[x] = y; } int main() { scanf("%d",...
a.cc: In function 'int unionn(int, int)': a.cc:12:1: warning: no return statement in function returning non-void [-Wreturn-type] 12 | } | ^ a.cc: In function 'int main()': a.cc:32:22: error: invalid operands of types 'int' and 'int [200010]' to binary 'operator-' 32 | A[i]=A[i]-Do; | ...
s851738363
p03690
C++
#include<bits/stdc++.h> const int MAXN = 4e5 + 10; using namespace std; int n; int A[MAXN], B[MAXN], ta[MAXN], tb[MAXN], sa, sb, tot = 0, date[MAXN], fa[MAXN]; int find(int x) { return fa[x] == x ? fa[x] : fa[x] = find(fa[x]); } int unionn(int x, int y) { fa[x] = y; } int main() { scanf("%d",&n); for(in...
a.cc: In function 'int unionn(int, int)': a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type] 11 | } | ^ a.cc: In function 'int main()': a.cc:15:58: error: 'i' was not declared in this scope 15 | for(int i = 1; i <= n; i++)scanf("%d",&B[i]);sb ^= B[i]; B[n + 1] = sb; ...
s078834976
p03690
C++
} for (int i = 1; i <= n; i ++) tar[n+1] ^= tar[i]; if (tar[n+1] != ori[n+1]) ans -= 2; for (int i = 1; i <= n+1; i ++) { a[i] = id[ori[i]]; b[i] = id[tar[i]]; vec[b[i]].push_back(i); } for (int i = 1; i <= kind; i ++) { // printf("kind %d:\n", i); for (int j = 0; j < vec[i].siz...
a.cc:1:5: error: expected declaration before '}' token 1 | } | ^ a.cc:2:9: error: expected unqualified-id before 'for' 2 | for (int i = 1; i <= n; i ++) tar[n+1] ^= tar[i]; | ^~~ a.cc:2:25: error: 'i' does not name a type 2 | for (int i = 1; i <= n; i ++) tar[n+1]...
s242284468
p03690
C++
// duliu #include <cstdio> #include <map> #include <set> #define fir first #define sec second #define ONLINE_JUDGE typedef std::set<int> MySt; typedef std::map<int, MySt> MyMp; const int MAXN = 1e5 + 10; int N, val[MAXN], vis[MAXN]; MyMp org_pos; namespace FastIO { template <typename T> void read(T & x) { x ...
a.cc: In function 'void FastIO::read(T&)': a.cc:21:46: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 21 | x = 0; register char ch = getchar(); | ^~ a.cc: In function 'int main()': a.cc:51:1: error: 'namespa...
s677861255
p03690
C++
package main import ( "bufio" "fmt" "io/ioutil" "os" ) type IOTp struct { iBuffer []byte iPos int } func (this *IOTp) GetChar() byte { res:=this.iBuffer[this.iPos] this.iPos++ return res } func (this *IOTp) ReadInt() int { res:=0 k:=1 for ch:=this.iBuffer[this.iPos]; !(ch>='0' && ch<='9'); ch=this.iBuffer...
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~ a.cc:14:6: error: expected constructor, destructor, or type conversion before '(' token 14 | func (this *IOTp) GetChar() byte { | ^ a.cc:19:6: error: expected constructor, destructor, or type conversion before '(' token ...
s952902369
p03690
C++
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #incl...
a.cc: In function 'int main()': a.cc:120:21: error: expected '}' at end of input 120 | cout<<ans-1; | ^ a.cc:86:11: note: to match this '{' 86 | int main(){ | ^
s230371645
p03690
C++
#include<bits/stdc++.h> using namespace std; int n,a[100010],a1[100010],b[100010],b1[100010]; int ans=-1,fa[100010],h[19260827],p[19260827],cnt; inline int hash(int x) { int y=x%19260817; while(h[y]>=0&&h[y]!=x)y=(y+1)%19260817; return y; } inline int f(int x) { if(fa[x]!=x)fa[x]=f(fa[x]); return fa[x]; } int...
a.cc: In function 'int main()': a.cc:54:31: error: reference to 'hash' is ambiguous 54 | int k=hash(a[i]); | ^~~~ In file included from /usr/include/c++/14/string_view:50, from /usr/include/c++/14/bits/basic_string.h:47, fr...
s775524802
p03690
C++
5 1 1 1 1 0 0 0 1 1 1 3
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 5 | ^
s100507795
p03690
C++
#include <iostream> #include <map> #include <set> #include <algorithm> using namespace std; int N, A[100005], B[100005], s = 0; map <int, int> M; vector <int> V[100005]; set <int> S; int ind; int A2[100005], B2[100005]; bool check() { sort(A2 + 1, A2 + N + 1); sort(B2 + 1, B2 + N + 1); for(int i = 1; i <= N...
a.cc:8:1: error: 'vector' does not name a type 8 | vector <int> V[100005]; | ^~~~~~ a.cc: In function 'void Read()': a.cc:40:13: error: 'V' was not declared in this scope 40 | V[pos].push_back(i); | ^ a.cc:43:12: error: 'V' was not declared in this scope 43 | if(V[i...
s625245106
p03690
C++
import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.Set; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = ...
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.ArrayDeque; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:2:1: error: 'import' does not name a type 2 | import java.util.ArrayList; | ^~~~~~ a.cc:2:1: note: C++20 'import' only available with '-fmod...
s272830329
p03690
C++
#include<bits/stdc++.h> #define fo(i,j,l) for(int i=j;i<=l;++i) #define fd(i,j,l) for(int i=j;i>=l;--i) using namespace std; typedef long long ll; const ll N=11e4; map<int,int> cha; int n,m,j,k,l,i,o; int fa[N],a[N],b[N],aa[N],bb[N],done[N]; inline int gf(int o) {return fa[o]==o?o:fa[o]=gf(fa[o]);} int main() { ci...
a.cc: In function 'int main()': a.cc:37:18: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and 'int') 37 | cout<<ans<0?0:ans; | ~~~~~~~~~^~ | | | | | int | std::basic_ostream<char> a.cc:37:18: note: can...
s850581140
p03690
C++
// use std::ops::{Index, IndexMut}; // use std::cmp::{Ordering, min, max}; // use std::collections::{BinaryHeap, BTreeMap}; // use std::collections::btree_map::Entry::{Occupied, Vacant}; // use std::clone::Clone; fn getline() -> String{ let mut res = String::new(); std::io::stdin().read_line(&mut res).ok(); ...
a.cc:54:14: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes 54 | fn printiter<'a, T>(v: &'a T) | ^~~~~~~~~~~~~ a.cc:56:6: warning: missing terminating ' character 56 | &'a T: std::iter::IntoIterator, | ^ a.cc:56:6: error: missing terminating ' ch...
s881202009
p03690
C++
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <ctime> #include <iostream> #include <sstream> #include <functional> #include <map> #include <string> #include <cstring> #include <vector> #include <queue> #include <stack> #include <deque> #include <set> #include <li...
a.cc: In function 'int main()': a.cc:128:41: error: expected '}' at end of input 128 | if(uf.find(i)==i) res++; | ^ a.cc:127:26: note: to match this '{' 127 | rep(i, dc.size()){ | ^ a.cc:128:41: error: expected '}' ...
s625471856
p03690
C++
#include <iostream> #include <vector> #include <algorithm> #include <iterator> using namespace std; int a_arr[10001]; int b_arr[10000]; bool b_chk[100000]; bool a_sort(const pair<unsigned int, unsigned int>&x, const pair<unsigned int, unsigned int>&y) { if (x.first < y.first) return true; if (x.first > y.first) re...
a.cc: In function 'int main()': a.cc:25:22: error: expected unqualified-id before 'xor' token 25 | unsigned int xor = 0; | ^~~ a.cc:28:17: error: expected primary-expression before 'xor' token 28 | xor ^= n; | ^~~ a.cc:28:21: error: expected...
s472515462
p03690
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; vector<int> a(N + 1): vector<int> b(N + 1); vector<int> c(N + 1); vector<int> d(N + 1); for (int i = 0; i < N; i++){ cin >> a[i]; c[i] = a[i]; } for (in...
a.cc: In function 'int main()': a.cc:6:29: error: expected ',' or ';' before ':' token 6 | vector<int> a(N + 1): | ^ a.cc:15:22: error: 'b' was not declared in this scope 15 | cin >> b[i]; | ^ a.cc:24:22: error: 'b' was not declar...
s616545345
p03690
Java
import javafx.concurrent.Task; import java.io.*; import java.util.*; /** * Created by tela on 2017/06/18. */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStr...
Main.java:1: error: package javafx.concurrent does not exist import javafx.concurrent.Task; ^ 1 error
s321665180
p03690
C++
#include <bits/stdc++.h> using namespace std; const int MaxN = 100003; int n,a[MaxN],b[MaxN]; int t1[MaxN],t2[MaxN]; int fa[MaxN],rank[MaxN]; bool vis[MaxN]; int getfa(int x) { if (x!=fa[x]) fa[x]=getfa(fa[x]); return fa[x]; } void uni(int a,int b) { a=getfa(a),b=getfa(b); if (a!=b) { if (rank[a]<rank[b]) { f...
a.cc: In function 'void uni(int, int)': a.cc:16:21: error: reference to 'rank' is ambiguous 16 | if (rank[a]<rank[b]) { | ^~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64, fro...
s889198709
p03690
C++
#include <bits/stdc++.h> #define N 100005 using namespace std; int bb[N],ct,*x[N]; bool cmp(int *a,int *b) { return (*a) < (*b); } void pppd(int *a,int sz) { for(int i = 1; i <= sz; i ++) x[i] = &a[i]; ct = 0; sort(x + 1, x + sz + 1, cmp); bb[1] = ++ ct; for(int i = 2; i <= sz; i ++) bb[i] = *x[i] == *x[i-1] ? bb...
a.cc:25:11: error: expected identifier before '(' token 25 | void union(int x,int y) | ^ a.cc:25:12: error: expected unqualified-id before 'int' 25 | void union(int x,int y) | ^~~ a.cc:25:12: error: expected ')' before 'int' 25 | void union(int x,int y) | ~^~~ ...
s219265663
p03690
C++
#include<iostream> #include<algorithm> #include<vector> #include<map> using namespace std; #define sz(x) (int)(x.size()) #define rep(i,a,b) for(int i=a;i<b;++i) #define pb push_back /////////////////// int const N = 2e5 + 41; int n; vector<int> a, b, ha, hb; map<int, int> h, bal; int x, w[N]; vector<int> e[N]; int ...
a.cc: In function 'void solve()': a.cc:102:14: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'void') 102 | cout << print(ans - 2) << endl; | ~~~~ ^~ ~~~~~~~~~~~~~~ | | | | | void | ...
s497606173
p03690
C++
#include<bits/stdc++.h> using namespace std; const int N=1e5+10; multiset<int> A,B; int n,a[N],b[N],c[N]; int rank(int x){ int l=0,r=n; while (l<r){ int mid=(l+r)>>1; if (c[mid]>=x) r=mid;else l=mid+1; } return l; } //S[x]表示b中权为x的未匹配的位置 set<int> S[N],T; int main() { scanf("%d",&n); for (int i=1;i<=n;i++){ ...
a.cc: In function 'int main()': a.cc:34:22: error: reference to 'rank' is ambiguous 34 | a[i]=rank(a[i]); | ^~~~ In file included from /usr/include/c++/14/bits/stl_pair.h:60, from /usr/include/c++/14/bits/stl_algobase.h:64, from /usr/includ...
s004987902
p03690
C++
#include <cstdio> #include <algorithm> #include <iostream> #include <vector> #include <cstring> #include <set> #include <utility> #include <cstdlib> #include <cmath> #include <queue> #include <stack> #include <string> #include <map> #include <cmath> #include <deque> #include <bitset> #define ll long long #define PI 3.1...
a.cc: In function 'int main()': a.cc:108:28: error: 'tmp' was not declared in this scope; did you mean 'tm'? 108 | p =tmp; | ^~~ | tm
s357568590
p03690
C++
#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <multset> #include <map> using namespace std; #define SZ(a) (int)(a).size() typedef long long ll; int main() { cin.sync_with_stdio(false); int n; map<int, int> t; vector<int> a; int xo = 0; for (int i = 0; i < n; i++) { int ...
a.cc:5:10: fatal error: multset: No such file or directory 5 | #include <multset> | ^~~~~~~~~ compilation terminated.
s410971422
p03690
C++
#include <cstdio> #include <cstdlib> #include <cmath> #include <iostream> #include <vector> #include <list> #include <algorithm> #include <functional> #include <map> #include <set> #include <cstring> #include <string> #include <cctype> #include <cassert> using namespace std; #define pb push_back #define mp make_pair ...
a.cc: In function 'int main()': a.cc:87:63: error: conversion from 'std::set<int>::reverse_iterator' {aka 'std::reverse_iterator<std::_Rb_tree_const_iterator<int> >'} to non-scalar type 'std::set<int>::iterator' {aka 'std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>, std::allocator<int> >::const_iterator'} r...
s607558512
p03690
C++
#include <cstdio> #include <cstdlib> #include <queue> using namespace std; const int MAXN = 1e5 + 10; void Fail(){ printf("-1\n"); exit(0); } int n, a[MAXN], b[MAXN], cx; void floor( int bit ){ cx = 0; for ( int i = 0; i < n; i++ ) cx ^= a[i]; while ( !q[0].empty() ) q[0].pop(); while ( !q[1].empty() ) q...
a.cc: In function 'void floor(int)': a.cc:20:18: error: 'q' was not declared in this scope 20 | while ( !q[0].empty() ) q[0].pop(); | ^ a.cc:21:18: error: 'q' was not declared in this scope 21 | while ( !q[1].empty() ) q[1].pop(); | ^ a.cc:25:25: error...
s423396377
p03690
C++
#include <cstdio> #include <cstdlib> #include <queue> using namespace std; const int MAXN = 1e5 + 10; void Fail(){ printf("-1\n"); exit(0); } int n, a[MAXN], b[MAXN], cx; void floor( int bit ){ cx = 0; for ( int i = 0; i < n; i++ ) cx ^= a[i]; while ( !q[0].empty() ) q[0].pop(); while ( !q[1].empty() ) q...
a.cc: In function 'void floor(int)': a.cc:20:18: error: 'q' was not declared in this scope 20 | while ( !q[0].empty() ) q[0].pop(); | ^ a.cc:21:18: error: 'q' was not declared in this scope 21 | while ( !q[1].empty() ) q[1].pop(); | ^ a.cc:25:25: error...
s959878249
p03690
C++
#include <iostream> #include <string> #include <vector> #include <algorithm> #include <unordered_map> #include <unordered_set> using namespace std; using pii = pair<int, int>; int main(){ ios_base::sync_with_stdio(false); int n; cin >> n; vector<int> a(n), b(n); for(int i = 0; i < n; ++i){ cin >> a[i]; } for(in...
a.cc: In function 'int main()': a.cc:39:9: error: 'iota' was not declared in this scope 39 | iota(g.begin(), g.end(), 0); | ^~~~
s227178724
p03691
C++
/* be name khoda */ // #define long_enable #include <iostream> #include <algorithm> #include <cstring> #include <numeric> #include <vector> #include <fstream> #include <set> #include <map> using namespace std; #ifdef long_enable typedef long long int ll; #else typedef int ll; #endif typedef pair<ll, ll> pii; typedef...
a.cc: In function 'int main()': a.cc:75:9: error: 'es' was not declared in this scope; did you mean 'eb'? 75 | es[i] = {a, b}; | ^~ | eb
s516040612
p03691
C++
// IOI 2021 #include <bits/stdc++.h> using namespace std; #define endl '\n' #define ends ' ' #define die(x) return cout << x << endl, 0 #define all(v) v.begin(), v.end() #define sz(x) (int)(x.size()) void debug_out() { cerr << endl; } template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) { cerr ...
a.cc:23:6: error: conflicting declaration 'bool M [402]' 23 | bool M[N]; | ^ a.cc:21:24: note: previous declaration as 'const int M' 21 | const int N = 4e2 + 2, M = 1e5 + 2; | ^ a.cc: In function 'int main()': a.cc:38:50: error: invalid types 'const int[int]' for array subs...
s268037320
p03691
C++
#include <map> #include <unordered_map> #include <unordered_set> #include <set> #include <vector> #include <numeric> #include <algorithm> #include <iostream> #include <string> #include <cstring> #include <sstream> #include <functional> #include <queue> #include <deque> #include <stack> #include <cassert> using namespa...
a.cc: In function 'int main()': a.cc:35:12: error: 'bitset' was not declared in this scope 35 | vector<bitset<400>> seen(N); | ^~~~~~ a.cc:17:1: note: 'std::bitset' is defined in header '<bitset>'; this is probably fixable by adding '#include <bitset>' 16 | #include <cassert> +++ |+#include...
s165062245
p03691
C++
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; typedef long long ll; inline int read() { int x = 0, f = 1; char c = getchar(); while (!isdigit(c)) {if (c == '-') f = -1; c = getchar();} while (isdigit(c)) {x = x * 10 + c - '0', c = getchar();} return x * f; } con...
a.cc:16:9: error: 'bitset' does not name a type 16 | typedef bitset<maxn> mybitset; | ^~~~~~ a.cc:18:1: error: 'mybitset' does not name a type 18 | mybitset bit[maxn]; bool mark[maxn]; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:24:39: error: 'bit' was not declared in this scope 24 | ...
s752897532
p03691
C++
// This amazing code is by Eric Sunli Chen. #include<bits/stdc++.h> using namespace std; template<typename T> bool get_int(T &x) { char t=getchar(); bool neg=false; x=0; for(; (t>'9'||t<'0')&&t!='-'&&t!=EOF; t=getchar()); if(t=='-')neg=true,t=getchar();if(t==EOF)return false; for(; t<='9'&&t>='0'; t=getchar())x=x...
a.cc:38:14: error: 'bool kill [411]' redeclared as different kind of entity 38 | bool kill[411]; | ^ In file included from /usr/include/c++/14/csignal:42, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116, from a.cc:2: /usr/include/signal.h:112:12: note:...
s360333813
p03691
C++
#include<cstdio> #include<cstring> #include<algorithm> #include<map> using namespace std; const int N=1e6+5,M=405; typedef long long ll; int a[N],b[N]; bool s[M][M]; bool vis[M]; int n,m; int main() { scanf("%d%d",&n,&m); for(int i=1;i<=m;i++) scanf("%d%d",&a[i],&b[i]); for(int i=1;i<=n;i++){ ...
a.cc: In function 'int main()': a.cc:20:20: error: 'box' was not declared in this scope 20 | bool x=box[i][a[j]],y=box[i][b[j]]; | ^~~ a.cc:21:19: error: 'y' was not declared in this scope 21 | if(x&&y) | ^
s732369717
p03691
C++
#pragma GCC optimize(3) #include<queue> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int n,s,m,cnt,tcnt,tot,idx[400010],lt[400010],rt[400010],a[100010],u[100010],p[100010],d[100010],vis[1000010],in[1000010],up[1000010]; vector<int>g[1000010]; inline void add_edge(int u,int v){ g[u].push_...
a.cc: In function 'void bfs()': a.cc:43:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] 43 | for(register int i=1;i<=n;i++) | ^ a.cc: In function 'int rd()': a.cc:76:22: warning: ISO C++17 does not allow 'register' storage class specifier [...
s873325203
p03691
C++
for(int j=0;j<N;j++){ mex[i][j]=mex[j][i]=1; } } } /* for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ printf("%d",mex[i][j]); } printf("\n"); } */ int cnt=0; for(int i=0;i<N;i++){ for(int j=0;j<i;j++){ if(mex[i][j]==0) cnt++; } } printf("%d\n",cnt); retur...
a.cc:1:7: error: expected unqualified-id before 'for' 1 | for(int j=0;j<N;j++){ | ^~~ a.cc:1:19: error: 'j' does not name a type 1 | for(int j=0;j<N;j++){ | ^ a.cc:1:23: error: 'j' does not name a type 1 | for(int j=0;j<N;j++){ | ...
s483106545
p03691
C++
/* ЗАПУСКАЕМ ░ГУСЯ░▄▀▀▀▄░РАБОТЯГУ░░ ▄███▀░◐░░░▌░░░░░░░ ░░░░▌░░░░░▐░░░░░░░ ░░░░▐░░░░░▐░░░░░░░ ░░░░▌░░░░░▐▄▄░░░░░ ░░░░▌░░░░▄▀▒▒▀▀▀▀▄ ░░░▐░░░░▐▒▒▒▒▒▒▒▒▀▀▄ ░░░▐░░░░▐▄▒▒▒▒▒▒▒▒▒▒▀▄ ░░░░▀▄░░░░▀▄▒▒▒▒▒▒▒▒▒▒▀▄ ░░░░░░▀▄▄▄▄▄█▄▄▄▄▄▄▄▄▄▄▄▀▄ ░░░░░░░░░░░▌▌░▌▌░░░░░ ░░░░░░░░░░░▌▌░▌▌░░░░░ ░░░░░░░░░▄▄▌▌▄▌▌░░░░░ */ #pragma GCC target("s...
In file included from /usr/include/c++/14/string:43, from /usr/include/c++/14/bits/locale_classes.h:40, from /usr/include/c++/14/bits/ios_base.h:41, from /usr/include/c++/14/ios:44, from /usr/include/c++/14/ostream:40, from /usr/includ...
s165340905
p03691
C++
#include<set> #include<map> #include<deque> #include<queue> #include<stack> #include<cmath> #include<ctime> #include<bitset> #include<string> #include<vector> #include<cstdio> #include<Cstdlib> #include<cstring> #include<climits> #include<complex> #include<iostream> #include<algorithm> #define ll long long using namesp...
a.cc:12:9: fatal error: Cstdlib: No such file or directory 12 | #include<Cstdlib> | ^~~~~~~~~ compilation terminated.
s647558418
p03691
C++
#include <cstdio> #include <vector> #define repeat(i, n) for (int i = 0; (i) < int(n); ++(i)) using namespace std; template <typename X, typename T> auto vectors(X x, T a) { return vector<T>(x, a); } template <typename X, typename Y, typename Z, typename... Zs> auto vectors(X x, Y y, Z z, Zs... zs) { auto cont = vector...
a.cc: In function 'int main()': a.cc:10:5: error: 'assert' was not declared in this scope 10 | assert (m < 15); | ^~~~~~ a.cc:3:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>' 2 | #include <vector> +++ |+#include <cassert> 3 | #defin...
s063358872
p03692
C++
#include <bits/stdc++.h> // iostream is too mainstream #include <cstdio> // bitch please #include <iostream> #include <algorithm> #include <cstdlib> #include <vector> #include <set> #include <map> #include <queue> #include <stack> #include <list> #include <cmath> #include <iomanip> #include <time.h> #define dibs reserv...
a.cc: In function 'int main()': a.cc:48:30: error: 'mod' was not declared in this scope; did you mean 'modf'? 48 | ans =(ans*2)%mod; | ^~~ | modf
s414126404
p03692
C++
#include <bits/stdc++.h> // iostream is too mainstream #include <cstdio> // bitch please #include <iostream> #include <algorithm> #include <cstdlib> #include <vector> #include <set> #include <map> #include <queue> #include <stack> #include <list> #include <cmath> #include <iomanip> #include <time.h> #define dibs reserv...
a.cc: In function 'int main()': a.cc:46:9: error: 'cat' was not declared in this scope 46 | cat ans =1; | ^~~ a.cc:48:17: error: 'ans' was not declared in this scope; did you mean 'abs'? 48 | ans =(ans*2)%mod; | ^~~ | abs a.cc:48:30...
s266652640
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if ((r*100+g+10+b)%4==0) { cout << "YES" << endl; } else { cout << "NO" endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:17: error: expected ';' before 'endl' 10 | cout << "NO" endl; | ^~~~~ | ;
s349479069
p03693
C++
a,b,c=map(int,input().split()) if (a*100+b*10+c)%4==0: print("YES") else: print("NO")
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c=map(int,input().split()) | ^
s562662179
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b,a; cin >> r >> g >> b; a = 100*r+10**g+b; if(a%4==0) cout >> "Yes" >>endl; else cout >> "No" >> endl; }
a.cc: In function 'int main()': a.cc:7:16: error: invalid type argument of unary '*' (have 'int') 7 | a = 100*r+10**g+b; | ^~ a.cc:8:19: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 8 | if(a%4==0) cout >> "Yes"...
s620850184
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; if((10*g+r)%4==0){cout<< YES <<endl;} cout<< NO <<endl; }
a.cc: In function 'int main()': a.cc:8:26: error: 'YES' was not declared in this scope 8 | if((10*g+r)%4==0){cout<< YES <<endl;} | ^~~ a.cc:9:8: error: 'NO' was not declared in this scope 9 | cout<< NO <<endl; | ^~
s851076126
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; if((10*g+r)%4==0){cout<<YES<<endl;} cout<<NO<<endl; }
a.cc: In function 'int main()': a.cc:8:25: error: 'YES' was not declared in this scope 8 | if((10*g+r)%4==0){cout<<YES<<endl;} | ^~~ a.cc:9:7: error: 'NO' was not declared in this scope 9 | cout<<NO<<endl; | ^~
s559834987
p03693
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> using namespace std; int main() { int r, g, b; cin << r << g << b; if (100 * r + 10 * g + b % 4 == 0) cout << "Yes" << "\n"; else cout << "No" << "\n"; }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 8 | cin << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<...
s213076096
p03693
C++
#include <iostream> #include <algorithm> #include <cmath> #include <string> using namespace std; int main() { int r, g, b; cin << r << g << b; if (100 * r + 10 * g + b % 4 == 0) { cout << "Yes" << "\n"; else cout << "No" << "\n"; }
a.cc: In function 'int main()': a.cc:8:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 8 | cin << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<...
s979033997
p03693
C
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int re = (100 * a) + (10 * b) + c; if (re % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s677347929
p03693
C
#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int re = (100 * a) + (10 * b) + c; if (re % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory 1 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s416973073
p03693
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<(b*10+c)%4==0?"YES":"NO"; return 0; }
a.cc: In function 'int main()': a.cc:6:19: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 6 | cout<<(b*10+c)%4==0?"YES":"NO"; | ~~~~~~~~~~~~~~~~^~~ | | | | | int | std::basic_ostream<char> a.cc:6:19: not...