submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s982624515
p03693
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int r,g,b cin >> r >> g >> b; r*=100; g*=10; r=r+g+b; if(r%4==0) cout <<"YES"<<endl; else cout <<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin >> r >> g >> b; | ^~~ a.cc:9:9: error: 'b' was not declared in this scope 9 | r=r+g+b; | ^
s491771002
p03693
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int r,g,b cin>> r >> g >> b; r*=100; g*=10; r=r+g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>> r >> g >> b; | ^~~ a.cc:9:9: error: 'b' was not declared in this scope 9 | r=r+g+b; | ^
s660051422
p03693
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int r,g,b cin>>r >>g >>b; r*=100; g*=10; r=r+g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>r >>g >>b; | ^~~ a.cc:9:9: error: 'b' was not declared in this scope 9 | r=r+g+b; | ^
s164339112
p03693
C++
#include<iostream> #include<stdio.h> using namespace std; int main(){ int r,g,b cin>>r >>g >>b; r*=100; g*=10; r+=g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:3: error: expected initializer before 'cin' 6 | cin>>r >>g >>b; | ^~~ a.cc:9:8: error: 'b' was not declared in this scope 9 | r+=g+b; | ^
s005076972
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b while(r>1&&g<9&&b<9){ cin>>r >>g >>b; r*=100; g*=10; r+=g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'while' 5 | while(r>1&&g<9&&b<9){ | ^~~~~
s999197466
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b cin>>r >>g >>b; r*=100; g*=10; r+=g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'cin' 5 | cin>>r >>g >>b; | ^~~ a.cc:8:8: error: 'b' was not declared in this scope 8 | r+=g+b; | ^
s385111234
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b cin>>r >>g >>b; r*=100; g*=10; r+=g+b; if(r%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'cin' 5 | cin>>r >>g >>b; | ^~~ a.cc:8:8: error: 'b' was not declared in this scope 8 | r+=g+b; | ^
s285337683
p03693
C++
main :: IO() main = do [_,g,b] <- map read . words <$> getLine putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO"
a.cc:1:1: error: 'main' does not name a type 1 | main :: IO() | ^~~~
s580390623
p03693
C++
main :: IO() main = do [r,g,b] <- map read . words <$> getLine putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO"
a.cc:1:1: error: 'main' does not name a type 1 | main :: IO() | ^~~~
s195028244
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>C; int x=a*100+b*10+c; if(x%4==0){ cout<<"YES"<<endl; } else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:5:14: error: 'C' was not declared in this scope 5 | cin>>a>>b>>C; | ^
s085417350
p03693
C++
#include <bits/stdc++.c> 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; return 0; }
a.cc:1:10: fatal error: bits/stdc++.c: No such file or directory 1 | #include <bits/stdc++.c> | ^~~~~~~~~~~~~~~ compilation terminated.
s826949328
p03693
C++
8 int main() 9 { 10 int a, b, c; 11 12 cin >> a >> b >> c; 13 14 if((a * 100 + b * 10 + c) % 4) { 15 puts("NO"); 16 } else { 17 puts("YES"); 18 } 19 return 0; 20 } 21 #el
a.cc:14:5: error: stray '#' in program 14 | 21 #el | ^ a.cc:1:3: error: expected unqualified-id before numeric constant 1 | 8 int main() | ^ a.cc:14:2: error: expected unqualified-id before numeric constant 14 | 21 #el | ^~
s416927215
p03693
C++
771+#include <bits/stdc++.h> 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; } }
a.cc:1:5: error: stray '#' in program 1 | 771+#include <bits/stdc++.h> | ^ a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 771+#include <bits/stdc++.h> | ^~~ a.cc: In function 'int main()': a.cc:5:3: error: 'cin' was not declared in this scope 5 | cin >>r>>g>>b; ...
s068427832
p03693
C++
#include <iostream> using namespace std; int main(){ int g,b; cin >> g>>b; int c = 10g + b; if(c % 4 == 0)cout <<"YES"<<end1; else cout<<"NO"<<end1 }
a.cc: In function 'int main()': a.cc:8:11: error: unable to find numeric literal operator 'operator""g' 8 | int c = 10g + b; | ^~~ a.cc:9:31: error: 'end1' was not declared in this scope 9 | if(c % 4 == 0)cout <<"YES"<<end1; | ^~~~ a.cc:10:20: error: 'end1...
s235662904
p03693
C++
#include stdio.h int main(){ int g,b; cin >> g>>b; int c = 10g + b; if(c % 4 == 0)cout <<"YES"<<end1; else cout<<"NO"<<end1 }
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include stdio.h | ^~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> g>>b; | ^~~ a.cc:7:11: error: unable to find numeric literal operator 'operator""g' 7 | int c =...
s206866158
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 { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:5: error: expected '}' before 'else' 10 | else { | ^~~~ a.cc:8:35: note: to match this '{' 8 | if ((100*r + 10*g + b) % 4 == 0){ | ^
s681656942
p03693
C++
4 3 2
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 4 3 2 | ^
s991045675
p03693
C
#include<stdio.h> int main(void) { int r,g,b,total; scanf("%d %d %d",&r,&g,&b); total=r*100+g*10+b; if(total%4==0){ printf("YES\n"); else{ printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:9:6: error: expected '}' before 'else' 9 | else{ | ^~~~
s173127851
p03693
C
#include<stdio.h> int main() { int r,g,b,total; scanf("%d %d %d",&r,&g,&b); total=r*100+g*10+b; if(total%4==0){ printf("YES\n"); else{ printf("NO\n"); } return 0; }
main.c: In function 'main': main.c:9:6: error: expected '}' before 'else' 9 | else{ | ^~~~
s983101416
p03693
Java
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Collections; class Main { public static void main(string args[]) { Scanner std = new Scanner(System.in); List<Integer> list = new ArrayList<>(); ...
Main.java:7: error: cannot find symbol public static void main(string args[]) { ^ symbol: class string location: class Main 1 error
s208024071
p03693
C++
using namespace std; #include <bits/stdc++.h> #define rep(i, s) for (int i = 0; i < s; ++i) #define repr(i, n) for(int i = n; i >= 0; i--) #define FOR(i, m, n) for(int i = m; i < n; i++) #define all(v) (v.begin(), v.end()) #define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i) #define VEC...
a.cc: In function 'int main()': a.cc:6:24: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]', declared with attribute 'nodiscard' [-Wunused-result] 6 | #define all(v) (v.begin...
s654522778
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int s = 100 * r + 10 * g + b; if (s%4 == 0) { cout << "YES" << endl; } else { cout << "NO" <<endl; return 0; }
a.cc: In function 'int main()': a.cc:16:2: error: expected '}' at end of input 16 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s455254945
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; if((10*g+b)%4==0){ cout << "YES" << endl; }else if{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:9:11: error: expected '(' before '{' token 9 | }else if{ | ^ | (
s474055713
p03693
C++
include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; if((10*g+b)%4==0){ cout << "YES" << endl; }else if{ cout << "NO" << endl; } }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> r >> g >> b; | ^~~ a.cc:8:5: error: 'cout' was not declared in this scope 8 | cout << "YES" << endl; ...
s052470549
p03693
C++
include<bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b >>endl; if((10*g+b)%4==0){ cout << "YES" << endl; }else if{ cout << "NO" << endl; } }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin >> r >> g >> b >>endl; | ^~~ a.cc:6:24: error: 'endl' was not declared in this scope 6 | cin >> r >> g >> b >>e...
s650098750
p03693
C++
include<bits/stdc++.h> using namespace std; int(){ int r,g,b; cin >> r >> g >> b >>endl; if((10*g+b)%4==0){ cout << "YES" << endl; }else if{ cout << "NO" << endl; } }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc:4:5: error: expected unqualified-id before ')' token 4 | int(){ | ^
s743397664
p03693
C++
include<bits/stdc++.h> using namespace std; int(){ int r,g,b; cin >> r >> g >> b >>endl; if((10g+b)%4==0){ cout << "YES" << endl; }else if{ cout << "NO" << endl; } }
a.cc:1:1: error: 'include' does not name a type 1 | include<bits/stdc++.h> | ^~~~~~~ a.cc:4:5: error: expected unqualified-id before ')' token 4 | int(){ | ^
s061163727
p03693
C++
#include <bits/stdc++.h> #include<algorithm> #include<math.h> using namespace std; template <class T> using V = vector<T>; using ll = long long; using db = double; using st = string; using ch = char; using vll = V<ll>; using vpll =V<pair<ll,ll>>; using vst = V<st>; using vdb = V<db>; using vch = V<ch>; #define ...
a.cc: In function 'int main()': a.cc:80:5: error: 'elese' was not declared in this scope 80 | elese co("NO") | ^~~~~
s371235029
p03693
C++
using namespace std; int main() { int a, b; cin >> a >> b; int c = a * b; if (c % 2 == 0) cout << "Even" << endl; else cout << "Odd" << endl; }
a.cc: In function 'int main()': a.cc:5:5: error: 'cin' was not declared in this scope 5 | cin >> a >> b; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:7:21: erro...
s017352710
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b r = g*10+b; if(r%4 == 0){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:5:15: error: expected ';' before 'r' 5 | cin>>r>>g>>b | ^ | ; 6 | r = g*10+b; | ~
s088672451
p03693
C++
#include <iostream> using namespace std; int main() { // int r, b, b; cin >> r >> g >> b; if ((r * 100 + g * 10 + b) % 4 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:19: error: redeclaration of 'int b' 8 | int r, b, b; | ^ a.cc:8:16: note: 'int b' previously declared here 8 | int r, b, b; | ^ a.cc:9:21: error: 'g' was not declared in this scope 9 | cin >> r >> g >...
s707619953
p03693
C++
#include <iostream> using namespace std; int main() { // int r, b, b; cin >> r >> g >> b; if (((r * 100 + g * 10 + b) % 4) == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:19: error: redeclaration of 'int b' 8 | int r, b, b; | ^ a.cc:8:16: note: 'int b' previously declared here 8 | int r, b, b; | ^ a.cc:9:21: error: 'g' was not declared in this scope 9 | cin >> r >> g >...
s048960285
p03693
C++
#include <iostream> using namespace std; int main() { // int r, b, b; cin >> r >> g >> b; if (((r * 100 + g * 10 + b) % 4) == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:19: error: redeclaration of 'int b' 8 | int r, b, b; | ^ a.cc:8:16: note: 'int b' previously declared here 8 | int r, b, b; | ^ a.cc:9:21: error: 'g' was not declared in this scope 9 | cin >> r >> g >...
s783867742
p03693
C++
#include<bits/stdc++.h> 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:10:11: error: unable to find string literal operator 'operator""NO' with 'const char [1]', 'long unsigned int' arguments 10 | cout<<""NO<<endl; | ^~~~
s856739970
p03693
C++
#include <iostream> using namespace std; int main() { int card[3]; scanf("%d %d %d", &card[0], &card[1], &card[2]); if (card[] % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:18: error: expected primary-expression before ']' token 9 | if (card[] % 4 == 0) | ^
s085352193
p03693
C++
int a, b, c; string s; cin >> a >> b >> c; int num = a * 100 + b * 10 + c; s = num % 4 == 0 ? "YES" : "NO"; cout << s << endl;
a.cc:3:9: error: 'string' does not name a type 3 | string s; | ^~~~~~ a.cc:4:9: error: 'cin' does not name a type 4 | cin >> a >> b >> c; | ^~~ a.cc:8:9: error: 's' does not name a type 8 | s = num % 4 == 0 ? "YES" : "NO"; | ^ a.cc:10:9: erro...
s400281052
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" << endl; } else { cout << "NO" << emdl; } }
a.cc: In function 'int main()': a.cc:12:21: error: 'emdl' was not declared in this scope 12 | cout << "NO" << emdl; | ^~~~
s762729976
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" << endl; } else { cout << "No" << emdl; } }
a.cc: In function 'int main()': a.cc:12:21: error: 'emdl' was not declared in this scope 12 | cout << "No" << emdl; | ^~~~
s571863043
p03693
C++
#include<iostream> using namespace std; main(){ int r, g, b ; cin >> r >> g >> b ; int ans = (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:15:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 15 | cout << "NO" < endl; ...
s857256380
p03693
C++
#include<iostream> using namespace std; main(){ int r , g, b ; cin << r << g << b ; int ans = (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:6:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << r << g << b ; | ~~~ ^~ ~ ...
s894121056
p03693
C++
#include <bits/stdc++.h> using namespace std; main(){ int r , g, b ; cin << r << g << b ; int ans = (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 4 | main(){ | ^~~~ a.cc: In function 'int main()': a.cc:6:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << r << g << b ; | ~~~ ^~ ~ ...
s116369197
p03693
C++
#include <bits/stdc++.h> using namespace std; main{ int r , g, b ; cin << r << g << b ; int ans = (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:4:1: error: 'main' does not name a type 4 | main{ | ^~~~
s780561002
p03693
C++
#include <bits/stdc++.h> using namespace std; int r , g, b ; cin << r << g << b ; int ans = (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:5:2: error: 'cin' does not name a type 5 | cin << r << g << b ; | ^~~ a.cc:9:2: error: expected unqualified-id before 'if' 9 | if (ans % 4 ){ | ^~ a.cc:12:9: error: expected unqualified-id before 'else' 12 | else | ^~~~ a.cc:16:2: error: expected declaration before ...
s569139949
p03693
C++
using namespace std; int r , g, b ; cin << r << g << b ; int ans == (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:4:2: error: 'cin' does not name a type 4 | cin << r << g << b ; | ^~~ a.cc:6:10: error: expected initializer before '==' token 6 | int ans == (r *100 + g * 10 + b )/ 4 ; | ^~ a.cc:8:2: error: expected unqualified-id before 'if' 8 | if (ans % 4 ){ | ^~ a.cc:11:9: error: e...
s678681193
p03693
C++
#include <bits/std++.h> using namespace std; int r , g, b ; cin << r << g << b ; int ans == (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:1:10: fatal error: bits/std++.h: No such file or directory 1 | #include <bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s614937442
p03693
C++
#include <bits/std++.h> using namespace std; int r , g, b ; cin << r << g << b ; int ans == (r *100 + g * 10 + b )/ 4 ; if (ans % 4 ){ cout << "YES" << endl; } else { cout << "NO" < endl; } }
a.cc:1:10: fatal error: bits/std++.h: No such file or directory 1 | #include <bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s677404798
p03693
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scaner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int ans = r*100 + g*10 + b; if(ans%4 == 0){ System.out.println("YES"); }else{ System.out.println...
Main.java:5: error: cannot find symbol Scaner sc = new Scanner(System.in); ^ symbol: class Scaner location: class Main 1 error
s321135795
p03693
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scaner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int ans = r*100 g*10 + b; if(ans%4 == 0){ System.out.println("YES"); }else{ System.out.println(...
Main.java:9: error: ';' expected int ans = r*100 g*10 + b; ^ Main.java:9: error: not a statement int ans = r*100 g*10 + b; ^ 2 errors
s539161998
p03693
C++
#include<bits/stdc++.h> using namespace std; int main() { int r,g,b,t; cin >> r >> g >> b;  r=r*100; g=g*10; t=r+g+b; if(t%4==0) cout << "YES"<<endl; else cout << "NO" << endl; return 0; }
a.cc:9:1: error: extended character   is not valid in an identifier 9 |  r=r*100; | ^ a.cc: In function 'int main()': a.cc:9:1: error: '\U00003000r' was not declared in this scope 9 |  r=r*100; | ^~~
s837586593
p03693
C++
#include<bits/stdc++.h> using namespace std; int main() { int r,g,b,t; cin >> r >> g >> b;  r=r*100; g=g*10; t=r+g+b; if(t%4==0) cout << "YES"<<endl; else cout << "NO" << endl; }
a.cc:8:1: error: extended character   is not valid in an identifier 8 |  r=r*100; | ^ a.cc: In function 'int main()': a.cc:8:1: error: '\U00003000r' was not declared in this scope 8 |  r=r*100; | ^~~
s298019054
p03693
C++
#include<bits/stdc++.h> using namespace std; int main() { int r,g,b,t; cin >> r >> g >> b;  r=r*100; g=g*10; t=r+g+b; if(t%4==0) cout << "YES"<<endl; else cout << "NO" << endl; }
a.cc:8:1: error: extended character   is not valid in an identifier 8 |  r=r*100; | ^ a.cc: In function 'int main()': a.cc:8:1: error: '\U00003000r' was not declared in this scope 8 |  r=r*100; | ^~~
s808613884
p03693
C++
#include<bits/stdc++.h> using namespace std; int main() { int r,g,b,t;  r=r*100; g=g*10; t=r+g+b; if(t%4==0) cout << "YES"<<endl; else cout << "NO" << endl; }
a.cc:6:1: error: extended character   is not valid in an identifier 6 |  r=r*100; | ^ a.cc: In function 'int main()': a.cc:6:1: error: '\U00003000r' was not declared in this scope 6 |  r=r*100; | ^~~
s866768802
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int c = 10*g + b; str = re; if(c%4 == 0){ re = 'YES'; } else { re = 'NO'; } cout << re << endl; return 0; }
a.cc:11:10: warning: multi-character character constant [-Wmultichar] 11 | re = 'YES'; | ^~~~~ a.cc:13:10: warning: multi-character character constant [-Wmultichar] 13 | re = 'NO'; | ^~~~ a.cc: In function 'int main()': a.cc:9:3: error: 'str' was not declared in this scope; d...
s362009405
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int c = 10*g + b; if(c%4 == 0){ re = 'YES'; } else { re = 'NO'; } cout << re << endl; return 0; }
a.cc:10:10: warning: multi-character character constant [-Wmultichar] 10 | re = 'YES'; | ^~~~~ a.cc:12:10: warning: multi-character character constant [-Wmultichar] 12 | re = 'NO'; | ^~~~ a.cc: In function 'int main()': a.cc:10:5: error: 're' was not declared in this scope; d...
s500684913
p03693
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)n; i++) #define repb(i, n) for (int i = (int)n; i >= 0; i--) #define reps(i, m, n) for (int i = (int)m; i < (int)n; i++) #define repsb(i, m, n) for (int i = (int)m; i >= (int)n; i--) #define SORT(v, n) sort(v, v + n); #define VSORT(v) sort(v.begin(), v...
a.cc: In function 'int main(int, const char**)': a.cc:17:20: error: unable to find numeric literal operator 'operator""b' 17 | if ((100 * a + 10b + c) % 4 == 0) | ^~~
s276862431
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"; else cout <<"No"; }
a.cc: In function 'int main()': a.cc:7:3: error: 'num' was not declared in this scope; did you mean 'enum'? 7 | num = 10*g+b | ^~~ | enum a.cc:9:5: error: 'else' without a previous 'if' 9 | else cout <<"No"; | ^~~~
s798097295
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; int R; int C[9]={}; for (int i=0;i<N;i++){ cin >> R; C[R>=3200?8:R/400]++; } int ans=0; for (int i=0;i<8;i++){ ans+=C[i]>0?1:0; } cout << ans << " " << ans+c[8] << endl; }
a.cc: In function 'int main()': a.cc:17:29: error: 'c' was not declared in this scope 17 | cout << ans << " " << ans+c[8] << endl; | ^
s959732597
p03693
C++
#include <vector> #include <iostream> #include <iomanip> #include <sstream> #include <math.h> #include <list> using namespace std; int sum_digit(int n) { if (n == 0) return 0; else return n % 10 + sum_digit(n / 10); } int absolute(int a) { if (a < 0) return -a; else return a; } int main() { int N; cin >> N; ...
a.cc: In function 'int main()': a.cc:44:14: error: 'max' cannot be used as a function 44 | cout << max(min,1) << ' ' << max << endl; | ~~~^~~~~~~
s931402487
p03693
C++
#include <bits/stdc++.h> using namepace 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:2:7: error: expected nested-name-specifier before 'namepace' 2 | using namepace 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 /usr/incl...
s598651175
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b; cin >>r>>g>>b; ans = 100 * r + 10 * g + b; if (ans % 4)cout<<"YES"<<endl; else cout <<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'? 7 | ans = 100 * r + 10 * g + b; | ^~~ | abs
s744178527
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,c,b; cin>>a>>c>>b; a=c*10+b if(a%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:8:11: error: expected ';' before 'if' 8 | a=c*10+b | ^ | ; 9 | if(a%4==0){ | ~~ a.cc:12:5: error: 'else' without a previous 'if' 12 | else{ | ^~~~
s253465720
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; n = 100*r + 10 * g + b; if (n%4==0){ cout <<"YES"<<endl; } else { cout <<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:6:3: error: 'n' was not declared in this scope 6 | n = 100*r + 10 * g + b; | ^
s662375673
p03693
C++
#include <iosteram> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int x = r * 100 + g * 10 + b; if (x % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:1:10: fatal error: iosteram: No such file or directory 1 | #include <iosteram> | ^~~~~~~~~~ compilation terminated.
s342221868
p03693
C++
#include <iostream> using namespace std; int main(){ int g,b; cin>>g>>g>>b; if((g*10+b)%4=0) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:14: error: lvalue required as left operand of assignment 6 | if((g*10+b)%4=0) cout<<"YES"<<endl; | ~~~~~~~~^~
s450616400
p03693
C++
#include <iostream> using namespace std; int main(){ int g,b; cin>>g>>g>>b; if((g*10+b)%4=0) cout<<"YES"<<endl; else cout<<"NO"<<endl return 0; }
a.cc: In function 'int main()': a.cc:6:14: error: lvalue required as left operand of assignment 6 | if((g*10+b)%4=0) cout<<"YES"<<endl; | ~~~~~~~~^~ a.cc:7:24: error: expected ';' before 'return' 7 | else cout<<"NO"<<endl | ^ | ; 8 | ...
s617706757
p03693
C++
#include <iostream> using namespace std;  int main() { int r, g, b; cin >> r >> g >> b; int c = (100 * r + 10 * g + b) ; if(c % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:3:1: error: extended character   is not valid in an identifier 3 |  int main() | ^ a.cc:3:1: error: '\U00003000int' does not name a type 3 |  int main() | ^~~~~
s002730424
p03693
C++
#include <iostream> using namespace std;  int main() { int r, g, b; cin >> r >> g >> b; int c = 100 * r + 10 * g + b; if(c % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:3:1: error: extended character   is not valid in an identifier 3 |  int main() | ^ a.cc:3:1: error: '\U00003000int' does not name a type 3 |  int main() | ^~~~~
s195869798
p03693
C++
#include <iostream> using namespace std;  int main() { int r, g, b; cin >> r >> g >> b; int c = 100*r + 10*g + b; if(c % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:3:1: error: extended character   is not valid in an identifier 3 |  int main() | ^ a.cc:3:1: error: '\U00003000int' does not name a type 3 |  int main() | ^~~~~
s421251262
p03693
C++
#include <iostream> using namespace std;  int main() { int r, g, b; cin >> r >> g >> b; int c = 100*r + 10*g + b; if(c % 4 == 0) cout << "YES" << endl; else cout << "NO" << end; }
a.cc:3:1: error: extended character   is not valid in an identifier 3 |  int main() | ^ a.cc:3:1: error: '\U00003000int' does not name a type 3 |  int main() | ^~~~~
s085039055
p03693
Java
import java.util.*; class Main{ public static void main(String[]args)throws IOException{ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int sum = r*100+g*10+b; if(sum%4==0)System.out.println("YES"); else System.out.println("NO"); } ...
Main.java:3: error: cannot find symbol public static void main(String[]args)throws IOException{ ^ symbol: class IOException location: class Main 1 error
s146416389
p03693
C++
r,g,b = gets.chomp.split(" ").map(&:to_i) if (100*r + 10*g + b) %4 == 0 puts 'YES' else puts 'NO' end
a.cc:4:8: warning: multi-character character constant [-Wmultichar] 4 | puts 'YES' | ^~~~~ a.cc:6:8: warning: multi-character character constant [-Wmultichar] 6 | puts 'NO' | ^~~~ a.cc:1:1: error: 'r' does not name a type 1 | r,g,b = gets.chomp.split(" ").map(&:to_i) | ^
s391600738
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<((10*b+c)%4==0)?"YES":"NO")<<endl; }
a.cc: In function 'int main()': a.cc:6:41: error: expected ';' before ')' token 6 | cout<<((10*b+c)%4==0)?"YES":"NO")<<endl; | ^ | ;
s871722812
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<((10*b+c)%4==0)?"YES":"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:41: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 6 | cout<<((10*b+c)%4==0)?"YES":"NO"<<endl; | ~~~~^~~~~~
s791427175
p03693
C++
#include <iostream> using namespace std; int A, B, C; int main() { cin>>A>>B>>C; if ((A*100+B*10+C)%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; return; }
a.cc: In function 'int main()': a.cc:8:1: error: return-statement with no value, in function returning 'int' [-fpermissive] 8 | return; | ^~~~~~
s381097709
p03693
C++
#include <iostream> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; cout << ((r*100 + g*10 + b % 4 == 0) ? "YES" : "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:55: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << ((r*100 + g*10 + b % 4 == 0) ? "YES" : "NO" << endl; | ~~~~~^~~~~~~ a.cc:8:62: error: e...
s569191049
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,m; cin>>r>>g>>m; if((g*10+m))/4==0){ cout<<"YES"<<endl; } else { cout<<"NO"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before '/' token 6 | if((g*10+m))/4==0){ | ^
s036590531
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,m; cin>>r>>g>>m; if((g*10+m))%4==0){ cout<<"YES"<<endl; } else { cout<<"NO"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before '%' token 6 | if((g*10+m))%4==0){ | ^
s338155973
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,m; if((g*10+m))%4==0){ cout<<"YES"<<endl; } else { cout<<"NO"<<endl;} return 0; }
a.cc: In function 'int main()': a.cc:6:15: error: expected primary-expression before '%' token 6 | if((g*10+m))%4==0){ | ^
s368304442
p03693
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if((b*10+c)%==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:6:18: error: expected primary-expression before '=' token 6 | if((b*10+c)%==0){ | ^
s815899210
p03693
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c if((b*10+c)%==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:5:15: error: expected ';' before 'if' 5 | cin>>a>>b>>c | ^ | ; 6 | if((b*10+c)%==0){ | ~~ a.cc:9:3: error: 'else' without a previous 'if' 9 | else{ | ^~~~
s536486104
p03693
C++
#include <iostream> using namespace std; int A, B, C; int main(){ cin >> A >> B >> C; if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl; else cout << NO << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: 'NO' was not declared in this scope 7 | else cout << NO << endl; | ^~
s264201817
p03693
C++
#include <iostream> using namespace std; int A, B, C; int main(){ cin >> A >> B >> C; if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl; else cout << NO << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:17: error: 'NO' was not declared in this scope 7 | else cout << NO << endl; | ^~
s811650380
p03693
C++
#include <iostream> using namespace std; int A,B,C; int main{ cin >> A >> B >> C; if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl; else cout << NO << endl; return 0; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:22: error: expected '}' before ';' token 5 | cin >> A >> B >> C; | ^ a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:5:18: error: invalid user-defined c...
s428309134
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, S; cin >> r >> g >> b; S = 100*r + 10*g + b if ( S%4 == 0 ){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:23: error: expected ';' before 'if' 7 | S = 100*r + 10*g + b | ^ | ; 8 | if ( S%4 == 0 ){ | ~~ a.cc:11:3: error: 'else' without a previous 'if' 11 | else { | ^~~~
s894535377
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; n = r * 100 + g * 10 + b; cout << (n % 4 == 0 ? "YES" : "NO") << endl; return 0 }
a.cc: In function 'int main()': a.cc:7:3: error: 'n' was not declared in this scope 7 | n = r * 100 + g * 10 + b; | ^ a.cc:10:11: error: expected ';' before '}' token 10 | return 0 | ^ | ; 11 | } | ~
s181029755
p03693
C++
#include <iostream> int main() { int r, g, b; cin >> r >> g >> b; n = r * 100 + g * 10 + b; cout << (n % 4 == 0 ? "YES" : "NO") << endl; return 0 }
a.cc: In function 'int main()': a.cc:4:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 4 | int r, g, b; 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 | ...
s085543551
p03693
C++
#include <bits/stdc++.h> 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:7:21: error: expected primary-expression before '%' token 7 | if ((g * 10) + b) % 4 == 0) { | ^
s466668318
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int r, g, b; vector<int> vec = {r, g, b}; cin >> r >> g >> b; if ((vec[1] * 10) + vec[2]) % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:31: error: expected primary-expression before '%' token 8 | if ((vec[1] * 10) + vec[2]) % 4 == 0) { | ^
s571842159
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> vec = {r, g, b}; cin >> r >> g >> b; if ((vec[1] * 10) + vec[2]) % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:5:24: error: 'r' was not declared in this scope 5 | vector<int> vec = {r, g, b}; | ^ a.cc:5:27: error: 'g' was not declared in this scope 5 | vector<int> vec = {r, g, b}; | ^ a.cc:5:30: error: 'b' was not d...
s303344730
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ vector<int> vec = {r, g, b}; cin >> r >> g >> b; if ((vec[1] * 10) + vec[2]) / 4) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:5:24: error: 'r' was not declared in this scope 5 | vector<int> vec = {r, g, b}; | ^ a.cc:5:27: error: 'g' was not declared in this scope 5 | vector<int> vec = {r, g, b}; | ^ a.cc:5:30: error: 'b' was not d...
s897037951
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >>a>>b>>c; if((2*b+c)%4==0){ cout >> "YES" >> endl; } else{ cout >> "NO" >> endl; } }
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 'const char [4]') 8 | cout >> "YES" >> endl; | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {aka std::ba...
s471899439
p03693
Java
public class Main { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); sb.append(sc.next()).append(sc.next()).append(sc.next()); int a = Integer.valueOf(sb.toString()); if (a % 4 == 0) { System.out.print("YES"); }...
Main.java:4: error: cannot find symbol private static Scanner sc; ^ symbol: class Scanner location: class Main Main.java:8: error: cannot find symbol sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s011065520
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; num = 100*r + 10*g + b; if (num % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:7:5: error: 'num' was not declared in this scope; did you mean 'enum'? 7 | num = 100*r + 10*g + b; | ^~~ | enum
s072397915
p03693
C++
#include <bits/stdc++.h> using namespace std; int main () { int r, g, b; cin >> r >> g >> b; if ( rgb%4 == 0) { cout << "YES" << endl; } else { cout "NO" << endl; } }
a.cc: In function 'int main()': a.cc:8:8: error: 'rgb' was not declared in this scope 8 | if ( rgb%4 == 0) { | ^~~ a.cc:12:9: error: expected ';' before string constant 12 | cout "NO" << endl; | ^~~~~ | ;
s660328811
p03693
C++
#include <iostream> using namespace std; int r, g, b; int main() { cin >> r >> g >> b; if ((a * 100 + b * 10 + c) % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:8: error: 'a' was not declared in this scope 8 | if ((a * 100 + b * 10 + c) % 4 == 0) | ^ a.cc:8:27: error: 'c' was not declared in this scope 8 | if ((a * 100 + b * 10 + c) % 4 == 0) | ^
s277035133
p03693
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String a=sc.nextLine(); a=a.replace(" ",""); int po=Integer.parseint(a); System.out.println((po%4==0)?"YES":"NO"); } }
Main.java:9: error: cannot find symbol int po=Integer.parseint(a); ^ symbol: method parseint(String) location: class Integer 1 error
s739373727
p03693
C
#include <stdio.h> int main(void){ int a,b,c,d; scanf("%d %d %d ",&a,&b,&c); d=100*a+10*b+c if(d%4==0){ printf("YES");} else{printf("NO");} return 0; }
main.c: In function 'main': main.c:5:17: error: expected ';' before 'if' 5 | d=100*a+10*b+c | ^ | ; 6 | if(d%4==0){ | ~~
s623039358
p03693
C
#include <stdio.h> int main(){ int r,g,b; if (10*g+b)%4==0{ printf("YES"); }else{ printf("NO"); } end
main.c: In function 'main': main.c:4:16: error: expected expression before '%' token 4 | if (10*g+b)%4==0{ | ^ main.c:9:1: error: expected declaration or statement at end of input 9 | end | ^~~
s482763588
p03693
C++
#include <stdio.h> int main(){ int r,g,b; scanf('r','g','b'); if (g*10+b)%4 == 0{ printf("YES"); }else{ plitnf("NO") } }
a.cc: In function 'int main()': a.cc:4:7: error: invalid conversion from 'char' to 'const char*' [-fpermissive] 4 | scanf('r','g','b'); | ^~~ | | | char In file included from a.cc:1: /usr/include/stdio.h:428:42: note: initializing argument 1 of 'int scanf(const char*, ...)' 4...
s445622442
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