submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s128681131
p03693
C++
#include <stdio.h> #include <iostream> #include <string> #include <stdlib.h> using namespace std; int main(void) { char r[10]; char g[10]; char b[10]; char s[20]; cin >> r >> g >> b; sprintf_s (s,"%s%s%s",r,g,b); int i = atoi(s); if (i % 4 == 0) { cout << "Yes"; } else { cout<<"No"; } return 0; }
a.cc: In function 'int main()': a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'? 13 | sprintf_s (s,"%s%s%s",r,g,b); | ^~~~~~~~~ | sprintf
s035542099
p03693
C++
#include<iostream> using namespace std; int main() { int valuePlace100, valuePlace10, valuePlace1; cin >> valuePlace100 >> valuePlace10 >> valuePlace1; sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1; if(sum % 4 == 0) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:3: error: 'sum' was not declared in this scope 7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1; | ^~~ a.cc:7:10: error: 'valuePlace' was not declared in this scope; did you mean 'valuePlace1'? 7 | sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1; ...
s726457332
p03693
C++
#include<iostream> int main() { int valuePlace100, valuePlace10, valuePlace1; cin >> valuePlace100 >> valuePlace10 >> valuePlace1; sum = (valuePlace)*100+(valuePlace10)*10+valuePlace1; if(sum % 4 == 0) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> valuePlace100 >> valuePlace10 >> valuePlace1; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | exter...
s970601485
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b,make; cin >> r >> g >> b; make = 100 * r + 10 * g + b; if(make % 4 == 0){ cout << "Yes"; }else{ cout "No"; } return 0; }
a.cc: In function 'int main()': a.cc:11:7: error: expected ';' before string constant 11 | cout "No"; | ^~~~~ | ;
s059134171
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b,make; cin >> r >> g >> b; make = 100 * r + 10 * g + b; if(make % 4 == 0){ cout << 'Yes'; }else{ cout 'No'; } return 0; }
a.cc:9:11: warning: multi-character character constant [-Wmultichar] 9 | cout << 'Yes'; | ^~~~~ a.cc:11:8: warning: multi-character character constant [-Wmultichar] 11 | cout 'No'; | ^~~~ a.cc: In function 'int main()': a.cc:11:7: error: expected ';' before '\x4e6f' 11 | cou...
s430257095
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; a = g * 10 + b; if (a % 4 == 0) {cout << "Yes" << endl;} else {cout << "No" << endl;} }
a.cc: In function 'int main()': a.cc:7:5: error: 'a' was not declared in this scope 7 | a = g * 10 + b; | ^
s981623959
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if ((100*r+10*g+b)% 4 = 0) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:7:23: error: lvalue required as left operand of assignment 7 | if ((100*r+10*g+b)% 4 = 0) cout << "Yes" << endl; | ~~~~~~~~~~~~~~^~~
s374923496
p03693
C++
#include <iostream> using namespace std; int main() { int a, g, b; cin >> r >> g >> b; a = g * 10 + b; if (a % 4 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:6:12: error: 'r' was not declared in this scope 6 | cin >> r >> g >> b; | ^
s481705461
p03693
Java
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if((r*100+g*10+b)%4==0){ System.out.print("YES") }else{ System.out.print...
Main.java:11: error: ';' expected System.out.print("YES") ^ Main.java:13: error: ';' expected System.out.print("NO") ^ 2 errors
s029510224
p03693
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if ((100 * a + 10 * b + c) % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:14:2: error: expected '}' at end of input 14 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s382827748
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; int niketa = g*10+b; if(niketa % 4 == 0){ cout << "YES" << endl;} else{ cout << "NO" << endl;}
a.cc: In function 'int main()': a.cc:13:27: error: expected '}' at end of input 13 | cout << "NO" << endl;} | ^ a.cc:4:11: note: to match this '{' 4 | int main(){ | ^
s540271349
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin << r << g << b; int niketa = g*10+b; if(niketa % 4 == 0){ cout >> "YES" >> endl;} else{ cout >> "NO" >> endl;}
a.cc: In function 'int main()': a.cc:7:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 7 | cin << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:7:7: note: candidat...
s772321258
p03693
C++
#include <cstdio> #include <string> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; if((g*10+b)%4==0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: 'cin' was not declared in this scope 8 | cin >> r >> g >> b; | ^~~ a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include <string> +++ |+#include <iostream> 3 | a.cc:10:...
s965667468
p03693
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; int number = 10 * b + c; if(number % 4 = 0){ cout << 'Yes' << endl; }else{ cout << 'No' << endl; } return 0; }
a.cc:9:11: warning: multi-character character constant [-Wmultichar] 9 | cout << 'Yes' << endl; | ^~~~~ a.cc:11:11: warning: multi-character character constant [-Wmultichar] 11 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:8:13: error: lvalue required as ...
s610011280
p03693
C++
#include <iostream> using namespace std; int a,b,c; cin >> a >> b >> c; int number = 10 * b + c; if(number % 4 = 0){ cout << 'Yes' << endl; }else{ cout << 'No' << endl; } return 0; }
a.cc:8:11: warning: multi-character character constant [-Wmultichar] 8 | cout << 'Yes' << endl; | ^~~~~ a.cc:10:11: warning: multi-character character constant [-Wmultichar] 10 | cout << 'No' << endl; | ^~~~ a.cc:4:1: error: 'cin' does not name a type 4 | cin >> a >> b >> ...
s084315518
p03693
C++
#include <iostream> using namespace std; int main(){ char a,b,c; cin >> a >> b >> c; int number = 100 * a + 10 * b + c; if(number % 4 = 0){ cout << "Yes" << endl; }else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:13: error: lvalue required as left operand of assignment 8 | if(number % 4 = 0){ | ~~~~~~~^~~
s784030841
p03693
C
#include<stdio.h> int main (){ int a,b,c; scanf ("%d%d%d",&a,&b,&c); if ((10*b+c)%4==0){ printf ("YES"); } else{ printf ("NO") } return 0; }
main.c: In function 'main': main.c:9:16: error: expected ';' before '}' token 9 | printf ("NO") | ^ | ; 10 | } | ~
s684940878
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"; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:29: error: lvalue required as left operand of assignment 7 | if((r*100 + g*10 + b) % 4 = 0) cout << "YES"; | ~~~~~~~~~~~~~~~~~~~^~~
s385890990
p03693
C++
#include<iostream> int main(){ int r, g, b; cin >> r >> g >> b; if((r*100 + g*10 + b) % 4 = 0) cout << "YES"; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> r >> g >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ///< Lin...
s517137846
p03693
C++
temp = input().rstrip().split(" ") r = temp[0] g = temp[1] b = temp[2] ans = int(r+g+b) if ans % 4 == 0 : print("YES") else: print("NO")
a.cc:1:1: error: 'temp' does not name a type 1 | temp = input().rstrip().split(" ") | ^~~~
s359266296
p03693
C++
#include <iostream> use 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; }
a.cc:3:1: error: 'use' does not name a type 3 | use namespace std; | ^~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> r >> g >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:...
s709109388
p03693
C++
#include<stdio.h> int main() { int r g b sum; scanf("%d %d %d",&r,&g,&b); sum = 2*g + b; if (sum % 4 == 0) printf("YES"); else printf ("NO"); return 0; }
a.cc: In function 'int main()': a.cc:4:15: error: expected initializer before 'g' 4 | int r g b sum; | ^ a.cc:5:27: error: 'r' was not declared in this scope 5 | scanf("%d %d %d",&r,&g,&b); | ^ a.cc:5:30: error: 'g' was not declared in this sco...
s236205557
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl; | ~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | | int...
s339368385
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 6 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl; | ~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | | int...
s872871262
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl; }
a.cc: In function 'int main()': a.cc:6:31: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 6 | cout<<(a*100+b*10+c)%4==0?"Yes":"No"<<endl; | ~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | | int...
s996358347
p03693
C++
$0=($2*10+$3)%4?"NO":"YES"
a.cc:1:1: error: '$0' does not name a type 1 | $0=($2*10+$3)%4?"NO":"YES" | ^~
s433537796
p03693
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; int main() { //cout.precision(10); int a, b, ; cin >> a >> b >> c; if(b * 10 + c % 4 == 0){ cout << "YES" <<endl; } else { cout << "NO" << endl; ...
a.cc: In function 'int main()': a.cc:12:15: error: expected unqualified-id before ';' token 12 | int a, b, ; | ^ a.cc:13:22: error: 'c' was not declared in this scope 13 | cin >> a >> b >> c; | ^ a.cc:19:2: error: expected '}' at end of input 19 | } ...
s495854957
p03693
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define EPS (1e-7) #define INF (1e9) #define PI (acos(-1)) //const ll mod = 1000000007; int main() { //cout.precision(10); int a, b, ; cin >> a >> b >> c; if(b * 10 + c % 4 == 0){ cout << "Yes" <<endl; } else { cout << "No" << endl; ...
a.cc: In function 'int main()': a.cc:12:15: error: expected unqualified-id before ';' token 12 | int a, b, ; | ^ a.cc:13:22: error: 'c' was not declared in this scope 13 | cin >> a >> b >> c; | ^ a.cc:19:2: error: expected '}' at end of input 19 | } ...
s712794972
p03693
C++
public:
a.cc:1:1: error: expected unqualified-id before 'public' 1 | public: | ^~~~~~
s250000493
p03693
C++
#include<iostream> using namespace std int main(){ int r,g,b; cin>>r>>g>>b; ((10*g+r)%4==0)?cout<<"YES":cout<<"NO"; return 0; }
a.cc:2:20: error: expected ';' before 'int' 2 | using namespace std | ^ | ; 3 | int main(){ | ~~~
s638475749
p03693
C++
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <algorithm> #include <functional> #include <string> #include <vector> #include <map> #include <queue> #include <stdio.h> using namespace std; #define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) typedef long long ll; int main() { cin.tie(0); ios::sy...
a.cc: In function 'int main()': a.cc:19:19: error: redeclaration of 'int g' 19 | int r, g, g; | ^ a.cc:19:16: note: 'int g' previously declared here 19 | int r, g, g; | ^ a.cc:20:26: error: 'b' was not declared in this scope 20 | cin >> r >> ...
s556484586
p03693
C
#include <stdio.h> int main(){ int r,g,b,s; scanf("%d %d %d",&r,&g,&b); s=r*100+g*10+b; if (s%4 == 0) printf("YES\n"); else printf("NO\n); return 0; }
main.c: In function 'main': main.c:7:15: warning: missing terminating " character 7 | else printf("NO\n); | ^ main.c:7:15: error: missing terminating " character 7 | else printf("NO\n); | ^~~~~~~ main.c:8:3: error: expected expression before 'return' 8 | return ...
s504135172
p03693
C
int main(){ int r,g,b,s; scanf("%d %d %d",&r,&g,&b); s=r*100+g*10+b; if (s%4 == 0) printf("YES\n"); else printf("NO\n); return 0; }
main.c: In function 'main': main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d %d %d",&r,&g,&b); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){ main.c:3:3: warning: in...
s260924905
p03693
C
main(){ int r,g,b,s; scanf("%d %d %d",r,g,b); s=r*100+g*10+b; if (s%4 == 0) printf("YES\n"); else printf("NO\n); }
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main(){ | ^~~~ main.c: In function 'main': main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 3 | scanf("%d %d %d",r,g,b); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a d...
s968728225
p03693
C++
r, g, b = map(str, input().split( )) ans = 'NO' if int(r + g + b) % 4 ==0: ans = 'YES' print(ans)
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | ans = 'NO' | ^~~~ a.cc:5:15: warning: multi-character character constant [-Wmultichar] 5 | ans = 'YES' | ^~~~~ a.cc:1:1: error: 'r' does not name a type 1 | r, g, b = map(str, input().split( )) ...
s833836394
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; string ans = "NO"; if((10 * b + c) % 4 == 0) ans = "YES"; cout >> ans; }
a.cc: In function 'int main()': a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 8 | cout >> ans; | ~~~~ ^~ ~~~ | | | | | std::string {aka std::__cx...
s846752842
p03693
C
#include <stdio.h> int main(void){ int tmp[8] = {0}; int b=0,cnt=0,max=0,i,n; scanf("%d",&n); int a[n]; for(i=0;i<n;i++){ scanf("%d",&a[i]); if(a[i] >= 3200){ b++; }else{ tmp[a[i]/400]++; } } for(i=0;i<8;i++){ if(tmp[i] > 0){ ...
main.c:30:5: error: expected identifier or '(' before 'if' 30 | if(b==0){ | ^~ main.c:33:12: error: expected declaration specifiers or '...' before string constant 33 | printf("%d %d",cnt,max); | ^~~~~~~ main.c:33:20: error: unknown type name 'cnt'; did you mean 'int'? 33 | ...
s112172314
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; cout<<((100*r+20*g+b)%4==0?"YeS":"NO")<<endl; return 0; } ~
a.cc:10:2: error: expected class-name at end of input 10 | ~ | ^
s357811283
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; score = r * 100 + g * 10 + b; if(score % 4 == 0)cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:9: error: 'score' was not declared in this scope 6 | score = r * 100 + g * 10 + b; | ^~~~~
s504135098
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; score = r * 100 + g * 10 + b; if(score % 4 == 0)cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:9: error: 'score' was not declared in this scope 6 | score = r * 100 + g * 10 + b; | ^~~~~
s569030348
p03693
C
#include<stdio.h> int main() { int r, g, b, ama; scanf("%d %d %d", &r, &g, &b); ama = (10*g+b)%4; if (ama == 0) { printf("YES"); } else { printf("NO"); } return 0; } return 0; }
main.c:21:2: error: expected identifier or '(' before 'return' 21 | return 0; | ^~~~~~ main.c:22:2: error: expected identifier or '(' before '}' token 22 | } | ^
s232267018
p03693
C
#include<stdio.h> int main() { int r, g, b, ama; scanf("%d %d %d", &r, &g, &b); ama = (10*g+b)%4 if (10*g+b % 4 == 0) { printf("YES"); } else { printf("NO"); } printf("%d", ama); return 0; }
main.c: In function 'main': main.c:6:18: error: expected ';' before 'if' 6 | ama = (10*g+b)%4 | ^ | ; 7 | 8 | if (10*g+b % 4 == 0) | ~~
s036552462
p03693
C++
r_str, g_str, b_str = input().split(" ") print("YES" if int(g_str+b_str)%4 == 0 else "NO")
a.cc:1:1: error: 'r_str' does not name a type 1 | r_str, g_str, b_str = input().split(" ") | ^~~~~
s364629438
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; S=a*100+b*10+c; if(S%4==0){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:3: error: 'S' was not declared in this scope 7 | S=a*100+b*10+c; | ^
s957922442
p03693
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((10*a+b)%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 10 | cout<<"NO"<endl; | ~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/b...
s309725080
p03693
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((10*a+b)%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<endl; } return 0; }
a.cc: In function 'int main()': a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 10 | cout<<"NO"<endl; | ~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/string:48, from /usr/include/c++/14/b...
s473300701
p03693
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((10*a+b)%4==0)){ cout<<"YES"<<endl; } else{ cout<<"NO"<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:20: error: expected primary-expression before ')' token 6 | if((10*a+b)%4==0)){ | ^ a.cc:10:15: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 10 | cout<<"NO"<endl; ...
s314118528
p03693
C++
#include "bits/stdc++.h" using namespace std; int main() { int r, g, b; cin >> r >> g >> b; num = 10*g + b; if(num%4==0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:9: error: 'num' was not declared in this scope; did you mean 'enum'? 8 | num = 10*g + b; | ^~~ | enum
s078738950
p03693
C++
#include <bits/stdc++.h> using namespace std; #define dump(x) cout << (x) << endl typedef long long ll; typedef pair<int, int> pi; typedef vector<int> V; int main() { int r, g, b; cin >> r >> g >> b; dump((10*g+b)%4 == 0 ? "YES" : "NO") return 0; }
a.cc: In function 'int main()': a.cc:12:3: error: expected ';' before 'return' 12 | return 0; | ^~~~~~
s739132619
p03693
C++
include <stdio.h> int main() { int r,g,b scanf("%d %d %d",r,g,b) if (gb%4!=0) { printf(NO) } if (gb%4=0) { printf() }
a.cc:1:1: error: 'include' does not name a type 1 | include <stdio.h> | ^~~~~~~
s741354492
p03693
C
#include <stdio.h> int main() { int r; int g; int b; char "word1" = YES; char "word2" = NO; scanf("%d %d %d",&r,&g,&b); int c=r*100+g*10+b; if (c%4==0) { printf("%c\n",word1); } else { printf("%d\n",word2); } }
main.c: In function 'main': main.c:7:8: error: expected identifier or '(' before string constant 7 | char "word1" = YES; | ^~~~~~~ main.c:8:8: error: expected identifier or '(' before string constant 8 | char "word2" = NO; | ^~~~~~~ main.c:13:19: error: 'word1' undeclared (first us...
s504138726
p03693
C
#include <stdio.h> int main() { int r; int g; int b; char "word1" = YES; char "word2" = NO; scanf("%d %d %d",&r,&g,&b); int c=r*100+g*10+b; if (c%4==0) { printf("%c\n",word1); } else { printf("%d\n",word2); } }
main.c: In function 'main': main.c:7:8: error: expected identifier or '(' before string constant 7 | char "word1" = YES; | ^~~~~~~ main.c:8:8: error: expected identifier or '(' before string constant 8 | char "word2" = NO; | ^~~~~~~ main.c:13:19: error: 'word1' undeclared (first us...
s336339270
p03693
C
#include <stdio.h> int main() { int r; int g; int b; char a = "YES"; char b = "NO"; scanf("%d %d %d",&r,&g,&b); int c=r*100+g*10+b; if (c%4==0) { printf("%c\n",a); } else { printf("%d\n",b); } }
main.c: In function 'main': main.c:7:12: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 7 | char a = "YES"; | ^~~~~ main.c:8:8: error: conflicting types for 'b'; have 'char' 8 | char b = "NO"; | ^ main.c:6:7: note: pre...
s722379884
p03693
C
#include <stdio.h> int main() { int r; int g; int b; char a="YES"; char b="NO"; scanf("%d %d %d",&r,&g,&b); int c=r*100+g*10+b; if (c%4==0) { printf("%s\n",a); } else { printf("%s\n",b); } }
main.c: In function 'main': main.c:7:10: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 7 | char a="YES"; | ^~~~~ main.c:8:8: error: conflicting types for 'b'; have 'char' 8 | char b="NO"; | ^ main.c:6:7: note: previous ...
s913450904
p03693
C
#include <stdio.h> int main() { int r; int g; int b; scanf("%d %d %d",&r,&g,&b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); } }
main.c: In function 'main': main.c:11:19: error: 'YES' undeclared (first use in this function) 11 | printf("%s\n",YES); | ^~~ main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in main.c:15:19: error: 'NO' undeclared (first use in this functi...
s785204054
p03693
C
#include <stdio.h> int main() { int r; int g; int b; scanf("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); } }
main.c: In function 'main': main.c:11:19: error: 'YES' undeclared (first use in this function) 11 | printf("%s\n",YES); | ^~~ main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in main.c:15:19: error: 'NO' undeclared (first use in this functi...
s017761390
p03693
C
#include <stdio.h> int main() { int r; int g; int b; scanf("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); } }
main.c: In function 'main': main.c:11:19: error: 'YES' undeclared (first use in this function) 11 | printf("%s\n",YES); | ^~~ main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in main.c:15:19: error: 'NO' undeclared (first use in this functi...
s761223511
p03693
C
#include <stdio.h> int main() { int r; int g; int b; scanf("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); }
main.c: In function 'main': main.c:11:19: error: 'YES' undeclared (first use in this function) 11 | printf("%s\n",YES); | ^~~ main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in main.c:15:19: error: 'NO' undeclared (first use in this functi...
s933992283
p03693
C
#include <stdio.h> int main() { int r; int g; int b; scanf ("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); }
main.c: In function 'main': main.c:11:19: error: 'YES' undeclared (first use in this function) 11 | printf("%s\n",YES); | ^~~ main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in main.c:15:19: error: 'NO' undeclared (first use in this functi...
s455191425
p03693
C
include <stdio.h> int main() { int r; int g; int b; scanf ("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%s\n",YES); } else { printf("%s\n",NO); }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s729558529
p03693
C
include <stdio.h> int main() { int r; int g; int b; scanf ("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%d\n",YES); } else { printf("%d\n",NO); }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s071701481
p03693
C
include <stdio.h> int main() { int r; int g; int b; scanf ("%d %d %d",r,g,b); int a=r*100+g*10+b; if (a%4==0) { printf("%c\n",YES); } else { printf("%c\n",NO); }
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include <stdio.h> | ^
s154417130
p03693
C++
#include <algorithm> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; int main()...
a.cc: In function 'int main()': a.cc:22:9: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 22 | cin << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:22:9: no...
s321575683
p03693
C++
#include <stdio.h> int main(void) { int r, g, b; scanf("%d%d%d", &r, &g, &b); if(!((g * 10 + b) % 4)) printf("YES"); else printf("NO"); return 0; }
a.cc:6:20: error: extended character   is not valid in an identifier 6 | if(!((g * 10 + b) % 4)) printf("YES"); | ^ a.cc:6:23: error: extended character   is not valid in an identifier 6 | if(!((g * 10 + b) % 4)) printf("YES"); | ^ a.cc: In function 'int ...
s439639539
p03693
C++
#include <bits/stdc++.h> using namespace std; #define INF 1<<30 #define LINF 1ll<<60ll #define MOD 1000000007 #define pb(a) push_back(a) #define vi vector<int> #define vl vector<long long> #define vvi vector<vi> #define P pair<int,int> #define all(vec) (vec.begin()),(vec.end()) typedef long long ll; typedef unsigned ...
a.cc: In function 'int main()': a.cc:39:21: error: expected ';' before ')' token 39 | YES(!(g*10+b)%4)); | ^
s607015514
p03693
C
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if ((100 * r + 10 * g + 1 * b) % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s582186423
p03693
C
#include <iostream> using namespace std; int main() { int r = 0; int g = 0; int b = 0; cin >> r >> g >> b; if ((100 * r + 10 * g + 1 * b) % 4 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
main.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
s591522686
p03693
C++
#include<iostream> using namespace std ; int r,g,b ; cin >> r>>g>>b; int main(){ if((100*r + 10*g + b)%4 ==0){ cout << "YES" << endl ; } else cout << "NO" << endl; return 0 ; }
a.cc:5:1: error: 'cin' does not name a type 5 | cin >> r>>g>>b; | ^~~
s330016338
p03693
C++
#include<iosream> using namespace std ; int r,g,b ; cin >> r>>g>>b; int main(){ if((100*r + 10*g + b)%4 ==0){ cout << "YES" << endl ; } else cout << "NO" << endl; return 0 ; }
a.cc:1:9: fatal error: iosream: No such file or directory 1 | #include<iosream> | ^~~~~~~~~ compilation terminated.
s767815423
p03693
C++
#include <iostream> using namespace std; int g,b ; int main(){ cin >>g,b; if(10 * g + b % 4 ==0 ) cout << "Yes" << endl; { else cout << "no" << endl; { }
a.cc: In function 'int main()': a.cc:9:4: error: 'else' without a previous 'if' 9 | else | ^~~~ a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:8:4: note: to match this '{' 8 | { | ^ a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:4:11: n...
s327186548
p03693
C++
#include<iostream> using namespace std; int main () { int n; cin>>n; int l,r,a; for (int i = 0; i <n ; ++i){ cin<<a; l=min(l,a); r=max(r,a); } cout<<r-l; return 0; }
a.cc: In function 'int main()': a.cc:8:41: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 8 | for (int i = 0; i <n ; ++i){ cin<<a; | ~~~^~~ | | | | ...
s201750600
p03693
C++
#include<iostream> using namespace std int main(void){ int r, g, b; cin>>r>>g>>b; if((g*10+b)%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc:2:20: error: expected ';' before 'int' 2 | using namespace std | ^ | ; 3 | int main(void){ | ~~~
s363235179
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a ,cnt =0; for(int i=0;i<3;i++) { cin >> a; while(a % 2 == 0) { cnt ++; a /= 2; } } if(cnt >= 2)cout << "YES" << end; else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:15:29: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 15 | if(cnt >= 2)cout << "YES" << end; | ~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/istream:41, ...
s473348338
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a ,cnt =0; for(int i=0;i<3;i++) { cin >> a; while(a % 2 == 0) { cnt ++; a /= 2; } cout << cnt << endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s660174647
p03693
C++
#include <iostream>#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int S = 2 * g + b if(S % 4 == 0) cout << "YES" << endl; if(S % 4 != 0) cout << "NO" << endl; }
a.cc:1:20: warning: extra tokens at end of #include directive 1 | #include <iostream>#include <bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'if' 8 | if(S % 4 == 0) | ^~
s921773056
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; if ((10*g+b)%4=0){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:15: error: lvalue required as left operand of assignment 7 | if ((10*g+b)%4=0){ | ~~~~~~~~^~
s061379002
p03693
C++
#include<iostream> using namespace std; int main(){ int r, t, b; cin >> r >> g >> b; int rgb = r * 100 + g * 10 + b * 1; if(rgb % 4 == 0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:15: error: 'g' was not declared in this scope 7 | cin >> r >> g >> b; | ^
s099393138
p03693
C++
#include <iostream> int main() { int r, g, b; cin >> r >> g >> b; int n = ( r * 100 + g * 10 + b ); std::cout << ( n % 4 == 0 ? "YES" : "NO" ) << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin >> r >> g >> b; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ...
s201171311
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>a>>b; cout<<((a*10+b)%4?"Yes":"No)"; }
a.cc: In function 'int main()': a.cc:6:32: error: expected ')' before ';' token 6 | cout<<((a*10+b)%4?"Yes":"No)"; | ~ ^ | )
s837470196
p03693
C
#include<stdio.h> int main(){ int a,b,c; scanf_s("%d %d %d",a,b,c); if((10*b+c)%4==0){ printf("YES"); }else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scanf_s("%d %d %d",a,b,c); | ^~~~~~~ | scanf
s541958164
p03693
C
#include<stdio.h> int Main(){ int a,b,c; scanf("%d %d %d",a,b,c); if((10*b+c)%4==0){ printf("YES"); }else{ printf("NO"); } return 0; }
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x17): undefined reference to `main' collect2: error: ld returned 1 exit status
s202999174
p03693
C
#include<stdio.h> int main(){ int a,b,c; scanf(d %d %d,a,b,c); if((10*b+c)%4==0){ printf("YES"); }else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:4:9: error: 'd' undeclared (first use in this function) 4 | scanf(d %d %d,a,b,c); | ^ main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
s134415336
p03693
C
#include<stdio.h> int main(void){ int a,b,c; scanf(%d %d %d,a,b,c); if((10*b+c)%%4==0){ printf(YES); }else{ printf(NO); } return 0; }
main.c: In function 'main': main.c:4:9: error: expected expression before '%' token 4 | scanf(%d %d %d,a,b,c); | ^ main.c:6:15: error: expected expression before '%' token 6 | if((10*b+c)%%4==0){ | ^ main.c:7:12: error: 'YES' undeclared (first use in this function) 7 | ...
s875895849
p03693
C
#include<stdio.h> int main(){ int a,b,c; scanf_s(%d %d %d,a,b,c); if((10b+c)%%4==0){ printf(YES); }else{ printf(NO); } return 0; }
main.c: In function 'main': main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scanf_s(%d %d %d,a,b,c); | ^~~~~~~ | scanf main.c:4:11: error: expected expression before '%' token 4 | scanf_s(%d %d %d,a,b,c); | ...
s147361273
p03693
C
#include<stdio.h> int main(){ int a,b,c; scanf_s(%d %d %d,a,b,c); if((10b+c)%%4=0){ printf(YES); }else{ printf(NO); } return 0; }
main.c: In function 'main': main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 4 | scanf_s(%d %d %d,a,b,c); | ^~~~~~~ | scanf main.c:4:11: error: expected expression before '%' token 4 | scanf_s(%d %d %d,a,b,c); | ...
s650366604
p03693
C++
#include <iostream> #include <cstdio> int main (){ int a,b,c; cin >> a >>b >>c; int t = b*10+c; if(t%4==0){ cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >>b >>c; | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ...
s948192096
p03693
C++
#include <iostream> int main (){ int a,b,c; cin >> a >>b >>c int t = b*10+c; if(t%4==0){ cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 5 | cin >> a >>b >>c | ^~~ | std::cin In file included from a.cc:1: /usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here 62 | extern istream cin; ...
s660992838
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b ; if((100*r+10*g+b)%4==0) cout << "YES" << endl; else if cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:10:5: error: expected '(' before 'cout' 10 | cout << "NO" << endl; | ^~~~ | (
s040617889
p03693
C
#include<stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if((b*10)+c)%4==0||(b+c)==0){ printf("YES\n"); } else printf("N0\n"); return 0; }
main.c: In function 'main': main.c:6:17: error: expected expression before '%' token 6 | if((b*10)+c)%4==0||(b+c)==0){ | ^ main.c:6:32: error: expected statement before ')' token 6 | if((b*10)+c)%4==0||(b+c)==0){ | ^ main.c:9:5: error: 'else' wi...
s073457270
p03693
C
#include<stdio.h> int main(void){ int r; int g; int b; int sum; sum=100*r+10*g+b; printf(""); scanf("%d %d %d",&r &g &b); if (sum%4==0){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
main.c: In function 'main': main.c:9:22: error: invalid operands to binary & (have 'int *' and 'int') 9 | scanf("%d %d %d",&r &g &b); | ~~ ^ | | | int *
s912540312
p03693
C
#include<stdio.h> int main(void){ int r; int g; int b; int sum; sum=100*r+10*g+b; printf(""); scanf("%d %d %d",&r,&g,&b); if (sum%4==0){ printf("Yes\n"); }else{ printf("No"\n); } return 0; }
main.c: In function 'main': main.c:13:16: error: stray '\' in program 13 | printf("No"\n); | ^ main.c:13:16: error: expected ')' before 'n' 13 | printf("No"\n); | ~ ^~ | )
s642176106
p03693
C
#include<stdio.h> int main(){ int r,g,b; scanf("%d %d %d",&r,&g,&b); if((10*g+b)%4=0){ printf("YES\n"); } else{ printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:5:18: error: lvalue required as left operand of assignment 5 | if((10*g+b)%4=0){ | ^
s537077396
p03693
C++
int main(){ int a,b,c; cin >> a >> b >> c; int num = 100 * a + 10 * b + c; if(num % 4 == 0) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
a.cc: In function 'int main()': a.cc:3:3: error: 'cin' was not declared in this scope 3 | cin >> a >> b >> c; | ^~~ a.cc:6:20: error: 'cout' was not declared in this scope 6 | if(num % 4 == 0) cout << "Yes" << endl; | ^~~~ a.cc:6:37: error: 'endl' was not declared in this sc...
s301005646
p03693
C++
#include<iostream> using namespace std; int main{ int a,b,c,d; cin >>a >> b >>c; int d = a*100+b*10+c; if ( c % 4 ) cout << "YES" <<endl; else cout << "NO" << endl; }
a.cc:3:6: error: cannot declare '::main' to be a global variable 3 | int main{ | ^~~~ a.cc:4:9: error: expected primary-expression before 'int' 4 | int a,b,c,d; | ^~~ a.cc:4:9: error: expected '}' before 'int' a.cc:3:10: note: to match this '{' 3 | int main{ | ...
s370414577
p03693
Java
import java.util.Scanner; public class RGB_Cards { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int data1 = sc.nextInt(); //System.out.println(data1); int data2 = sc.nextInt(); //System.out.println(data2); int data3 = sc.nextInt(); //System.out.println(data3); int da...
Main.java:3: error: class RGB_Cards is public, should be declared in a file named RGB_Cards.java public class RGB_Cards { ^ 1 error
s904877085
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b,s; cin>>r>>g>>b; s=10g+b; if(s%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: unable to find numeric literal operator 'operator""g' 6 | s=10g+b; | ^~~
s239844708
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; if((10g+b)%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:7: error: unable to find numeric literal operator 'operator""g' 6 | if((10g+b)%4==0){ | ^~~
s451640883
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; r=10g+b if(r/4==0){ cout<<"YES"<<endl ; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: unable to find numeric literal operator 'operator""g' 6 | r=10g+b | ^~~ a.cc:10:3: error: 'else' without a previous 'if' 10 | else{ | ^~~~
s184024537
p03693
C++
#include<cstdio> int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int n=100*a+10*b+c; if(n%4==0)printf("YES\n"); else printf("NO\n"); returnn 0; }
a.cc: In function 'int main()': a.cc:8:1: error: 'returnn' was not declared in this scope 8 | returnn 0; | ^~~~~~~
s447748288
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int a = r*100 + g*10 + b; if(a%4 == 0) cout >> "YES"; else cout >> "NO"; }
a.cc: In function 'int main()': a.cc:9:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | cout >> "YES"; | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::basic_ostr...