submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s660620281
p03693
C++
#include <iostream> #include <string> using namespace std; int main() { string r, g, b; cin >> r >> g >> b; int num = atoi((r+g+b).c_str()); if (num % 4 == 0) cout<<"Yes"<<endl; else cout << "No"<<endl; return 0 }
a.cc: In function 'int main()': a.cc:11:13: error: expected ';' before '}' token 11 | return 0 | ^ | ; 12 | 13 | } | ~
s910816528
p03693
C++
#include <iosteram> #include <string> using namespace std; int main() { string r, g, b; cin >> r >> g >> b; string num = r+g+b; if (int(num) % 4 == 0) cout<<"Yes"; else cout << "No"; }
a.cc:1:10: fatal error: iosteram: No such file or directory 1 | #include <iosteram> | ^~~~~~~~~~ compilation terminated.
s727253184
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin>>r>>g>>b; cout<<((10*g+b)%4 == 0 ? "YES:"NO)<<endl; }
a.cc: In function 'int main()': a.cc:7:28: error: unable to find string literal operator 'operator""NO' with 'const char [5]', 'long unsigned int' arguments 7 | cout<<((10*g+b)%4 == 0 ? "YES:"NO)<<endl; | ^~~~~~~~ a.cc:7:36: error: expected ':' before ')' token 7 | cout<<((1...
s821827900
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:5:25: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 5 | cout<<(a*100+b*10+c)%4==0?"YES":"NO"<<endl; | ~~~~~~~~~~~~~~~~~~~~~~^~~ | | | | | int | std::basi...
s428391295
p03693
C++
#include <iostream> using namespace std; int main() { int r, g , b; cin >> r >> g >> b; int rgb = (r*100) + (g*10) + b; if(rgb%4==0){ cout<< "YES"; }else{ cout<<"NO" } return 0; }
a.cc: In function 'int main()': a.cc:17:19: error: expected ';' before '}' token 17 | cout<<"NO" | ^ | ; 18 | } | ~
s522916311
p03693
C++
a, b, c = input().split() print('YES') if int(a + b + c) % 4 == 0 else print('NO')
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | print('YES') if int(a + b + c) % 4 == 0 else print('NO') | ^~~~~ a.cc:2:52: warning: multi-character character constant [-Wmultichar] 2 | print('YES') if int(a + b + c) % 4 == 0 else print('NO') | ...
s012533724
p03693
C++
#include <iostream> #include <string> using namespace std; int main(){ if((10*g+b)%4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:16: error: 'g' was not declared in this scope 6 | if((10*g+b)%4 == 0) cout << "YES" << endl; | ^ a.cc:6:18: error: 'b' was not declared in this scope 6 | if((10*g+b)%4 == 0) cout << "YES" << endl; | ^
s374860873
p03693
C++
#include <iostream> using namespace std; int main () { int r, g, b; cin >> r >> g >> b; int ans = r*100+g*10+b; if(ans%4 == 0) cout >> "YES" >> endl; else cout >> "NO" >> endl; return 0; }
a.cc: In function 'int main()': a.cc:8:23: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 8 | if(ans%4 == 0) cout >> "YES" >> endl; | ~~~~ ^~ ~~~~~ | | | | | ...
s228947667
p03693
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; void solve(){ int r,g,b; cin>>r>>g>>b; if((r*100+g*10+b)%4==0){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } } int main(){ solve();ac }
a.cc: In function 'int main()': a.cc:19:13: error: 'ac' was not declared in this scope 19 | solve();ac | ^~
s654477916
p03693
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; void solve(){ int r,g,b; cin>>r>>g>>b; if((r*100+g*10+b)%4==0){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
/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
s069944278
p03693
C++
#include<bits/stdc++.h> using namespace std; using ll=long long; void solve(){ int r,g,b; cin>>r>>g>>b; if((r*100+g*10+b)%4==0){ cout<<"YES"<<endl; }else{ cout<<"NO"<<endl; } }
/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
s744717202
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; int c = 100 * r + 10 * g + b; if ( c % 4 == 0){ puts("YES");}else{puts("NO");} } }
a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s184195957
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int c = 100 * r + 10 * g + b; if (c % 4 == 0){ puts("YES");} else { puts("NO"); }
a.cc: In function 'int main()': a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:5:1: note: to match this '{' 5 | { | ^
s592696031
p03693
Java
import java.util.*; public 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((A*100+B*10+C)%4 == 0){ System.out.println("YES"); } else{ System.out.println("NO"); } } }
Main.java:11: error: cannot find symbol if((A*100+B*10+C)%4 == 0){ ^ symbol: variable A location: class Main Main.java:11: error: cannot find symbol if((A*100+B*10+C)%4 == 0){ ^ symbol: variable B location: class Main Main.java:11: error: cannot find symbol if((A*100+B*10+C)%4 == 0){...
s092315823
p03693
C++
#include<iostream> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int 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:10:29: error: expected '}' at end of input 10 | else cout << "NO" << endl; | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s574886275
p03693
C++
#include<iostream> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int a=100*r+10*g+b; bool can=false; if(a%4==0) { can=true; } if(can) cout << "YES" <<endl; else cout << "NO" << endl;
a.cc: In function 'int main()': a.cc:13:29: error: expected '}' at end of input 13 | else cout << "NO" << endl; | ^ a.cc:3:12: note: to match this '{' 3 | int main() { | ^
s806213648
p03693
C++
#include <iostream> using namespace std; int main() { int x,y,z;cin >> x >> y >> z; if((x*100+y*10+z)%4)cout<<"NO"<endl; else cout<<"YES"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:33: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | if((x*100+y*10+z)%4)cout<<"NO"<endl; | ~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/string:48, ...
s403579929
p03693
C++
#include <iostream> using namespace std; int main() { int x,y,z;cin >> x >> y >> z; if((x*100+y*10+z)%)cout<<"NO"<endl; else cout<<"YES"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:6:21: error: expected primary-expression before ')' token 6 | if((x*100+y*10+z)%)cout<<"NO"<endl; | ^ a.cc:6:32: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 6 | if((x...
s591342998
p03693
C
#include <stdio.h> int main(void){ int r, g, b; int sum; scanf("%d%d%d", &r, &g, &b); sum = 100 * r + 10 * g + b); if (sum % 4 == 0) { printf("Yes"); } else { printf("No"); } return 0; }
main.c: In function 'main': main.c:7:35: error: expected ';' before ')' token 7 | sum = 100 * r + 10 * g + b); | ^ | ; main.c:7:35: error: expected statement before ')' token
s507032669
p03693
Java
import java.util.Scanner; public static Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt() * 100; int g = sc.nextInt() * 10; int b = sc.nextInt(); int t = r + g + b; if(t%4 == 0){ System.out.println("YES"); }else{ System.out....
Main.java:2: error: class, interface, enum, or record expected public static Main{ ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:15: error: cl...
s169533084
p03693
Java
import java.util.Scanner; public static Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r, g, b, t; r = sc.nextInt() * 100; g = sc.nextInt() * 10; b = sc.nextInt(); t = r + g + b; if(t%4 == 0){ System.out.println("YES"); }else{ System....
Main.java:2: error: class, interface, enum, or record expected public static Main{ ^ Main.java:3: error: unnamed classes are a preview feature and are disabled by default. public static void main(String[] args){ ^ (use --enable-preview to enable unnamed classes) Main.java:16: error: cl...
s686853266
p03693
C++
#include<iostream> int main() { int r, g, b; std::cin << r << g << b; if ((g*10+b)%4==0) { std::cout << "YES" << std::endl; } else { std::cout << "NO" << std::endl; } }
a.cc: In function 'int main()': a.cc:5:12: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 5 | std::cin << r << g << b; | ~~~~~~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>...
s929943015
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; b+=g*10; b+=r*100; if(b%4==0){ cout<<"YES"<<endl: } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:9:18: error: expected ';' before ':' token 9 | cout<<"YES"<<endl: | ^ | ;
s177404103
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; b+=g*10+r*100; if(b%4==0){ cout<<"YES"<<endl: } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: expected ';' before ':' token 8 | cout<<"YES"<<endl: | ^ | ;
s212962375
p03693
C++
#include<iostream> #include<vector> #include<string> using namespace std; int main() { int a, b, c, x = 0; cin << a << b << c; x = a * 100 + b * 10 + c; if (x % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; } /* 死のマウス .  あり許せん!    ∧__∧  || (#`Д´ ) ||  || ( |   | | |||  从| |  ...
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 << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<...
s376112458
p03693
C++
#include<bits/stdc++.h> using namespace std; int main () { int r, g, b; cin >> r >> g >> b; int rgb = 100*r + 10* g + b; if(rgb %4 = 0){ cout << "Yes" << endl; } else{ cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:10: error: lvalue required as left operand of assignment 8 | if(rgb %4 = 0){ | ~~~~^~
s020427166
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:7:6: error: 'rgb' was not declared in this scope 7 | if(rgb %4 = 0){ | ^~~
s049984220
p03693
Java
import java.util.Scanner; public class ABC064A { public static void main(String[] args) { ABC064A main = new ABC064A(); main.run(); } int r; int g; int b; public void run() { Scanner sc = new Scanner(System.in); r = sc.nextInt(); g = sc.nextInt(); b = sc.nextInt(); int ans = r*100 + g*10 + b; if...
Main.java:3: error: class ABC064A is public, should be declared in a file named ABC064A.java public class ABC064A { ^ 1 error
s611494933
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; n = 10 * g + b; if (n % 4 == 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:8:3: error: 'n' was not declared in this scope 8 | n = 10 * g + b; | ^
s934551440
p03693
C++
#include <iostream> int main() { int r, g, b; std::cin >> r >> g >> b; int sum = g * 10 + b; if (sum % 2 == 0) std::cout << "YES" << std::end; else std::cout << "NO" << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:7:40: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 7 | if (sum % 2 == 0) std::cout << "YES" << std::end; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include...
s193629051
p03693
C++
#include <iostream> int main() { int r, g, b; std::cin >> a >> b >> c; int sum = b * 10 + c; if (sum % 4 == 0) std::cout << "YES" << std::endl; else std::cout << "NO" << std::endl; return 0; }
a.cc: In function 'int main()': a.cc:5:15: error: 'a' was not declared in this scope 5 | std::cin >> a >> b >> c; | ^ a.cc:5:25: error: 'c' was not declared in this scope 5 | std::cin >> a >> b >> c; | ^
s286306746
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(); int total = (100*r ) +(10 * g) + b if(total % 4 == 0){ System.out.println("YES"): }else{ System.out.println("NO"); } } }
Main.java:10: error: ';' expected int total = (100*r ) +(10 * g) + b ^ Main.java:12: error: ';' expected System.out.println("YES"): ^ 2 errors
s756929766
p03693
C++
include<iostream> using namespace std; int main(void){ int r,g,b; cin>>r>>g>>b; int sum=100*r+10*g+b; if(sum%4==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:8:9: error: 'cin' was not declared in this scope 8 | cin>>r>>g>>b; | ^~~ a.cc:13:17: error: 'cout' was not declared in this scope 13 | cout<<"YES"<<...
s684311072
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b,x ; cin>> r>> g>> b; x=100*r+10*g+b if(x%4==0){ cout << "YES" << endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:7:17: error: expected ';' before 'if' 7 | x=100*r+10*g+b | ^ | ; 8 | if(x%4==0){ | ~~ a.cc:11:3: error: 'else' without a previous 'if' 11 | else{ | ^~~~
s265643356
p03693
C++
#include<iostream> #include<sstream> using namespace4 std; int main(){ int r,g,b; cin>>r>>g>>b; stringstream s; string rr,gg,bb; s<<r; s>>rr; s<<b; s>>bb; s<<g; s>>gg; string ss=""; ss+=rr; ss+=gg; ss+=bb; int res; s<<ss; s>>res; if(res%4==0) cout<<"YES"<<endl; e...
a.cc:3:7: error: expected nested-name-specifier before 'namespace4' 3 | using namespace4 std; | ^~~~~~~~~~ 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 in...
s553008536
p03693
C++
N = (int(input()[::2])) print("YES" if (N%4)==0 else "NO")
a.cc:1:1: error: 'N' does not name a type 1 | N = (int(input()[::2])) | ^
s683633090
p03693
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; 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:21: error: lvalue required as left operand of assignment 10 | if ((r*100+g*10+b)%4=0) { | ~~~~~~~~~~~~~~^~
s395867268
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:7:23: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout<<((10)*b+c)%4==0?"YES":"NO")<<endl; | ~~~~~~~~~~~~~~~~~~^~~ | | | | | int | std::basic_ost...
s989493957
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:7:23: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout<<((10)*b+c)%4==0?"YES":"NO"<<endl; | ~~~~~~~~~~~~~~~~~~^~~ | | | | | int | std::basic_ostr...
s542474287
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:7:23: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout<<((10)*b+c)%4==0?"YES":"NO"<,endl; | ~~~~~~~~~~~~~~~~~~^~~ | | | | | int | std::basic_ostr...
s007936940
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin << a << b << c; d=a*100+b*10+c; if(d%4==0){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:7: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int') 6 | cin << a << b << c; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidat...
s616930820
p03693
C++
#include<iostream> using namespace std; int main(){ int r, g, b; cin r >> g >> b; if((g*10+b)%4 == 0) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:6: error: expected ';' before 'r' 7 | cin r >> g >> b; | ^~ | ;
s707878111
p03693
C++
#include<iostream> #define size(array) (sizeof(array) / sizeof(array[0])) using namespace std; int main(void){ int a,b,c,d; cin >> a >> b >> c; d = a * 100 + b * 10 + c; if(d % 4 == 0){ cout << "YES"; }else{ cout << "NO" } }
a.cc: In function 'int main()': a.cc:11:21: error: expected ';' before '}' token 11 | cout << "NO" | ^ | ; 12 | } | ~
s307569365
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b ,c; char X,Y; string S1,S2; cin >>a >> b >> c; if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)%2 == 0)) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:59: error: expected primary-expression before ')' token 8 | if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)%2 == 0)) cout << "YES" << endl; | ^
s224352629
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a, b ,c; char X,Y; string S1,S2; cin >>a >> b >> c; if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)% == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:53: error: expected primary-expression before '==' token 8 | if((100*a+10*b+c)%2 == 0 && ((100*a+10*b+c)/2)% == 0) cout << "YES" << endl; | ^~
s147834266
p03693
C++
#include<bits/stdc++.h> using namespace std; int main () { int a,b,c; cin >> a >> b >> c; int A; A = 100*a + 10*b + c; if ( A % 4 = 0 ) { cout << "Yes" << endl; } if (!( A % 4 = 0 )) { cout << "No" << endl; } }
a.cc: In function 'int main()': a.cc:11:10: error: lvalue required as left operand of assignment 11 | if ( A % 4 = 0 ) { | ~~^~~ a.cc:15:14: error: lvalue required as left operand of assignment 15 | if (!( A % 4 = 0 )) { | ~~^~~
s846980087
p03693
C++
def solve(): r, g, b = list(map(int, input().split())) value = r*100 + g*10 + b if value % 4 == 0: print("YES") else: print("NO") solve()
a.cc:1:1: error: 'def' does not name a type 1 | def solve(): | ^~~
s420906847
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b ; int a = g*10 + b if (a % 2 == 0) cout << "Yes" << endl; else cout << "No" << endl; }
a.cc: In function 'int main()': a.cc:8:5: error: expected ',' or ';' before 'if' 8 | if (a % 2 == 0) cout << "Yes" << endl; | ^~ a.cc:9:5: error: 'else' without a previous 'if' 9 | else cout << "No" << endl; | ^~~~
s483633713
p03693
C++
#include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { int r, g, b; cin >> r >> g >> ...
a.cc: In function 'int main()': a.cc:16:15: error: lvalue required as left operand of assignment 16 | if ((g*10+b)%4=0) result = "YES"; | ~~~~~~~~^~
s043438067
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; c=b*10+a*100; if(c%4==0) cout<<"YES"; else cout<"NO"; cout<<"\n"; }
a.cc: In function 'int main()': a.cc:8:12: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [3]') 8 | else cout<"NO"; | ~~~~^~~~~ | | | | | const char [3] | std::ostream {aka std::basic_ostr...
s782656447
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int num = r*100 + g*10 + b; if (num%4 == 0) cout >> "YES\n"; else cout >> "NO\n"; return 0; }
a.cc: In function 'int main()': a.cc:8:24: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [5]') 8 | if (num%4 == 0) cout >> "YES\n"; | ~~~~ ^~ ~~~~~~~ | | | | | ...
s824366441
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; 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:5:17: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 5 | cin >> a >> b > c; | ~~~~~~~~~~~~~ ^ ~ | | | | | int | std::...
s782773770
p03693
C++
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0; i<n; i++) #define MOD 10e9+7 int main(){ int r, g, b; cin >> r >> g >> b; int n = 100*r + 10*g + b; if(n % 4 == 0) cout << "YES"; else cout << "NO";
a.cc: In function 'int main()': a.cc:10:23: error: expected '}' at end of input 10 | else cout << "NO"; | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s200323857
p03693
Java
import java.util.Scanner; public class abc064a { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); int num = 100*r + 10*g + b; if (num%4==0){ System.out.println("Yes"); } else{ System.out.println("No"...
Main.java:3: error: class abc064a is public, should be declared in a file named abc064a.java public class abc064a { ^ 1 error
s044373155
p03693
Java
public class abc064a { public static void main(String[] args){ //1<=r,g,b<=9 int r = new java.util.Scanner(System.in).nextInt(); int g = new java.util.Scanner(System.in).nextInt(); int b = new java.util.Scanner(System.in).nextInt(); if (r<1 || r>9 || b<1 || b>9 || g<1 || g>9){ System.out.println("入力可能な数字は...
Main.java:1: error: class abc064a is public, should be declared in a file named abc064a.java public class abc064a { ^ 1 error
s020156900
p03693
Java
package problems; public class abc064a { public static void main(String[] args){ //1<=r,g,b<=9 int r = new java.util.Scanner(System.in).nextInt(); int g = new java.util.Scanner(System.in).nextInt(); int b = new java.util.Scanner(System.in).nextInt(); if (r<1 || r>9 || b<1 || b>9 || g<1 || g>9){ System.ou...
Main.java:3: error: class abc064a is public, should be declared in a file named abc064a.java public class abc064a { ^ 1 error
s856580346
p03693
C++
#include <iostream> int main() { int a,b,c,tmp; std::cin >> a >> b >> c; tmp=b*2+c std::cout << ((tmp%4==0) ? "Yes" : "No") << '\n'; return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: expected ';' before 'std' 6 | tmp=b*2+c | ^ | ; 7 | std::cout << ((tmp%4==0) ? "Yes" : "No") << '\n'; | ~~~
s028027335
p03693
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String r = sc.nextInt(); String g = sc.nextInt(); String b = sc.nextInt(); int number = Integer.parseInt(r + g + b); if (number % 4 == 0) { ...
Main.java:5: error: incompatible types: int cannot be converted to String String r = sc.nextInt(); ^ Main.java:6: error: incompatible types: int cannot be converted to String String g = sc.nextInt(); ^ Main.java:7: error: incompatible types: int ...
s650924751
p03693
C++
#include <iostream> #include <vector> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int tmp = r * 100 + g * 10 + b; if(rmp % 4 == 0) cout << "YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:11:6: error: 'rmp' was not declared in this scope; did you mean 'tmp'? 11 | if(rmp % 4 == 0) cout << "YES"; | ^~~ | tmp
s005102839
p03693
C++
#include <bits/stdc++.h> using namespace std; int q(int a){ int r,g,b; cin>>r>>g>>b; if((10*g+b)%4==0){ cout<<"YSE"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc: In function 'int q(int)': a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type] 13 | } | ^ /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 exi...
s883125627
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a; int b; int c; cin >> a >> b >> c; if ((10 * b + c - 1) / 4 != (10 * b + c) / 4) { cout << YES << endl; } else { cout << NO << endl; } }
a.cc: In function 'int main()': a.cc:10:13: error: 'YES' was not declared in this scope 10 | cout << YES << endl; | ^~~ a.cc:13:13: error: 'NO' was not declared in this scope 13 | cout << NO << endl; | ^~
s364321697
p03693
C++
#include<iostream> using namespace std ; int main{ int r,g,b,num; cin >> r ; cin >> g ; cin >> b ; num = 10*g + b ; if(num%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:3: error: expected primary-expression before 'int' 5 | int r,g,b,num; | ^~~ a.cc:5:3: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:3: ...
s373615174
p03693
C++
#include<iostream> using namespace std ; int main{ int r,g,b,num; cin >> r ; cin >> g ; cin >> b ; num = 10*g + b ; if(num%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:3: error: expected primary-expression before 'int' 5 | int r,g,b,num; | ^~~ a.cc:5:3: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:3: ...
s584818159
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { a,b,c; 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:5:6: error: 'a' was not declared in this scope 5 | a,b,c; | ^ a.cc:5:8: error: 'b' was not declared in this scope 5 | a,b,c; | ^ a.cc:5:10: error: 'c' was not declared in this scope 5 | a,b,c; | ^
s689621911
p03693
C++
#include<iostream> using namespace std; int main() { int r,g,b; cin>>r>>g>>b; int a=100*r+10g+b; if (a%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:7:15: error: unable to find numeric literal operator 'operator""g' 7 | int a=100*r+10g+b; | ^~~
s297150549
p03693
C++
#include<iostream> using namespace std; int main() { int r,g,b; cin>> r >> g >> b; int c=100r+10g+b; if(c%4==0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:7:3: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow] 7 | int c=100r+10g+b; | ^~~ a.cc: In function 'int main()': a.cc:7:9: error: fixed-point types not supported in C++ 7 | int c=100r+10g+b; | ^~~~ a.cc:7:14: error: unable to find numeric ...
s936830714
p03693
C++
#include <iostream> using namespace std; int main(){ int a,b,c; cin >> a >> b >>c; if(b*c%4==0) cout<< "YES"; else cout << "NO" return 0; }
a.cc: In function 'int main()': a.cc:9:26: error: expected ';' before 'return' 9 | else cout << "NO" | ^ | ; ...... 12 | return 0; | ~~~~~~
s077251631
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int r,g,b; cin >> r >> g >> b; int kazu == g * 10 + b; if(kazu % 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:12: error: expected initializer before '==' token 8 | int kazu == g * 10 + b; | ^~ a.cc:10:6: error: 'kazu' was not declared in this scope 10 | if(kazu % 4 == 0) cout << "YES" << endl; | ^~~~
s171021448
p03693
C++
z#include <algorithm> #include <iostream> #include <numeric> #include <vector> #include <string> #include <bitset> #include <queue> #include <tuple> #include <cmath> #include <map> #include <cstring> template<typename T> bool chmax( T &a, const T &b ) { if ( a <= b ) { a = b; return ( true ); } else { return ( false )...
a.cc:1:2: error: stray '#' in program 1 | z#include <algorithm> | ^ a.cc:1:1: error: 'z' does not name a type 1 | z#include <algorithm> | ^ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, ...
s620789104
p03693
Java
Ⅴ import java.util.Scanner; 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(); int sum = (r * 100) + (g * 10) + (b * 1); if (sum % 4 == 0){ System.out.println("YES"); } el...
Main.java:1: error: class, interface, enum, or record expected ? ^ 1 error
s547793263
p03693
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i) #define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i) #define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--) #define rreps(i, n) for (int i = ((int)(n)); i > 0; i--) #define irep(i, m, n) for (int i =...
a.cc: In function 'int main()': a.cc:132:9: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 132 | if(ans%4==0)ans="YES"; | ~~~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In ...
s829896074
p03693
C++
include <iostream> using namespace std; int main(){ int a, b,c, d; cin >> a >> b >> c; if ((10*b+c)%4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc:1:1: error: 'include' does not name a type 1 | include <iostream> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin >> a >> b >> c; | ^~~ a.cc:7:26: error: 'cout' was not declared in this scope 7 | if ((10*b+c)%4 == 0) cout <...
s370292752
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:8:28: error: expected ';' before ':' token 8 | else cout << "NO" << endl: | ^ | ;
s899226337
p03693
C++
#include <iostream> #include <string> using namespace std; int main() { int N; cin >> N; string S; cin >> S; string result; int a = 0; for(int i = 0;i < N;++i){ if(S[i] == '('){ a = a + 1; } if(S[i] == ')'){ if(a > 0){ a = a - 1; ...
a.cc: In function 'int main()': a.cc:24:23: error: redeclaration of 'std::string result' 24 | std::string result = result + ")"; | ^~~~~~ a.cc:23:23: note: 'std::string result' previously declared here 23 | std::string result = result + "("; | ...
s576652863
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a, b, c; cin >> a >> b >> c; ((b*10 + c)%4 == 0) ? cout << "YES\n" : cout "NO\n"; return 0; }
a.cc: In function 'int main()': a.cc:10:45: error: expected ';' before string constant 10 | ((b*10 + c)%4 == 0) ? cout << "YES\n" : cout "NO\n"; | ^~~~~~~ | ;
s890580733
p03693
C++
#include<iostream> using namespace std; int main(){ int r, g, g; cin >> r >> g >> b; cout << (100 * r + 10 * g + 1 * b % 4 == 0? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:13: error: redeclaration of 'int g' 5 | int r, g, g; | ^ a.cc:5:10: note: 'int g' previously declared here 5 | int r, g, g; | ^ a.cc:6:20: error: 'b' was not declared in this scope 6 | cin >> r >> g >> b; | ...
s483000005
p03693
C++
#include<iostream> using namespace std; int main(){ cin >> r >> g >> b; cout << (100 * r + 10 * g + 1 * b % 4 == 0? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:9: error: 'r' was not declared in this scope 5 | cin >> r >> g >> b; | ^ a.cc:5:14: error: 'g' was not declared in this scope 5 | cin >> r >> g >> b; | ^ a.cc:5:19: error: 'b' was not declared in this scope 5 | cin >> r >> g >> b; ...
s012765934
p03693
C++
#include <iostream> using namespace std int main() { int r,g,b,sum; cin >> r; cin >> g; cin >> b; if ((10*g+b)%4) cout << "YES"; else cout << "NO"; return 0 }
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | 5 | int main() | ~~~ a.cc: In function 'int main()': a.cc:16:17: error: expected ';' before '}' token 16 | return 0 | ^ ...
s808180310
p03693
C++
#include <iostream> using namespace std int main() { int r,g,b,sum; cin >> r; cin >> g; cin >> b; if ((10*g+b)%4) cout << true; else cout << false; return 0 }
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | 5 | int main() | ~~~ a.cc: In function 'int main()': a.cc:16:17: error: expected ';' before '}' token 16 | return 0 | ^ ...
s994197091
p03693
C++
#include <iostream> using namespace std int main() { int r,g,b,sum; cin >> r; cin >> g; cin >> b; if ((10*g+b)%4) cout << true; else cout << false; } return 0
a.cc:3:20: error: expected ';' before 'int' 3 | using namespace std | ^ | ; 4 | 5 | int main() | ~~~ a.cc:18:1: error: expected unqualified-id before 'return' 18 | return 0 | ^~~~~~
s297115460
p03693
C
#include <stdio.h> main(){ int r,g,b; scanf("%d %d %d",&r,&g,&b); if((100*r+10*g+b)%4){ printf("NO"); }else{ printf("YES); } return(0); }
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int] 3 | main(){ | ^~~~ main.c: In function 'main': main.c:11:16: warning: missing terminating " character 11 | printf("YES); | ^ main.c:11:16: error: missing terminating " character 11 | printf("YES); ...
s903821802
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c; cin>>a>>b>>c; std::string n =a+b+c; int num = atoi(n.c_str()); if(num%4==0) cout << "YES" <<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:21: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 6 | std::string n =a+b+c; | ~~~^~
s724249721
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c; cin>>a>>b>>c; string n =a+b+c; int num = atoi(n.c_str()); if(num%4==0) cout << "YES" <<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:6:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 6 | string n =a+b+c; | ~~~^~
s608880624
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a,b,c cin>>a>>b>>c; string n =a+b+c; int num = atoi(n.c_str()); if(num%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>>a>>b>>c; | ^~~ a.cc:6:17: error: 'c' was not declared in this scope 6 | string n =a+b+c; | ^
s152813000
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:7:17: error: lvalue required as left operand of assignment 7 | if((10*g + b) % 4 = 0) cout << "Yes" << endl; | ~~~~~~~~~~~^~~
s382347368
p03693
Java
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 整数の入力 int a = sc.nextInt(); // スペース区切りの整数の入力 int b = sc.nextInt(); int c = sc.nextInt(); int buff = a*100 + b*10 + c if(buff%4==0){ System.out.println("Yes"); ...
Main.java:11: error: ';' expected int buff = a*100 + b*10 + c ^ Main.java:17: error: reached end of file while parsing } ^ 2 errors
s358240037
p03693
C++
int main(void) { int r,g,b,a,c,d,e,f; scanf("%d",&r); scanf("%d",&g); scanf("%d",&b); a=r*100; c=g*10; d=b; e=a+c+d; if(e%4==0){ printf("YES\n"); } else { printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:4:9: error: 'scanf' was not declared in this scope 4 | scanf("%d",&r); | ^~~~~ a.cc:12:9: error: 'printf' was not declared in this scope 12 | printf("YES\n"); | ^~~~~~ a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this i...
s632536910
p03693
C++
#include<stdio.h> int main(void) { int r,g,b; scanf("%d",&r); scanf("%d",&g); scanf("%d",&b); s=r*100+g*10+b; if(s%4==0){ printf("YES\n"); } else{ printf("NO\n"); } return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: 's' was not declared in this scope 8 | s=r*100+g*10+b; | ^
s443107499
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:6:12: error: expected ';' before 'r' 6 | cin r >> g >> b; | ^~ | ;
s092934470
p03693
C++
#include <iostream> using namespace std; int main(){ int r; //rを定義 int g; //gを定義 int b; //bを定義 cin >> r >> g >>b; if(((r * 100 + g * 10 + b) % 4 == 0){ cout << "YES" << endl; //rgbが4の倍数の場合TESと出力 } else { cout << "NO" << endl; //それ以外NOと出力 } }
a.cc: In function 'int main()': a.cc:13:41: error: expected ')' before '{' token 13 | if(((r * 100 + g * 10 + b) % 4 == 0){ | ~ ^ | ) a.cc:20:1: error: expected primary-expression before '}' token 20 | } | ^
s521423004
p03693
C++
#include<iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c; d = (a * 100) + (b * 10) + c; if (d % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:14:18: error: expected '}' at end of input 14 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s276203375
p03693
C++
#include<iostream> using namespace std; int (){ int a,b,c,d; cin>>a>>b>>c; d=(a*100)+(b*10)+c if(d%4==0) { cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
a.cc:4:6: error: expected unqualified-id before ')' token 4 | int (){ | ^
s580779877
p03693
C
include<stdio.h> int main(){ int r,g,b,rgb=0; scanf("%d %d %d", &r,&g,&b); rgb += r*100; rgb += g*10; rgb += b; if(rgb%4 == 0) printf("YES"); else printf("NO"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^
s060709813
p03693
C
include<stdio.h> int main() int r,g,b; int rgb = 100*r + 10*g + b; if(rgb%4 == 0) printf("YES"); else printf("NO"); return 0; }
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token 1 | include<stdio.h> | ^ main.c:4:19: error: 'r' undeclared here (not in a function) 4 | int rgb = 100*r + 10*g + b; | ^ main.c:4:26: error: 'g' undeclared here (not in a function) 4...
s089378776
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:8:3: error: expected '}' before 'else' 8 | else | ^~~~ a.cc:6:27: note: to match this '{' 6 | if ((r*100+g*10+b)%4==0){ | ^ a.cc: At global scope: a.cc:11:5: error: expected unqualified-id before 'return' 11 | return 0; ...
s787066707
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:5:3: error: expected initializer before 'cin' 5 | cin >> r >> g >> b; | ^~~ a.cc:6:19: error: 'b' was not declared in this scope 6 | if ((r*100+g*10+b)%4==0){ | ^ a.cc:8:3: error: expected '}' before 'else' 8 | else | ^~~~ a....
s460829115
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:5:3: error: expected initializer before 'cin' 5 | cin >> r >> g >> b; | ^~~ a.cc:6:18: error: 'b' was not declared in this scope 6 | if((r*100+g*10+b)%4==0) | ^
s260006346
p03693
C++
#include<iostream> 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; return 0; }
a.cc: In function 'int main()': a.cc:5:3: error: expected initializer before 'cin' 5 | cin >> r >> g >> b; | ^~~ a.cc:8:9: error: 'b' was not declared in this scope 8 | r=r+g+b; | ^
s314171888
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; return 0; }
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; | ^
s357165166
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; | ^