submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s182187220
p03693
C++
#include <iostream> using namespace std; int r,g,b; cin >> r >> g>> b; int a=100r+10g+b; if(a%4==0){ cout<<”Yes”<<endl; }else{cout<<”No”<<endl;}
a.cc:5:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow] 5 | int a=100r+10g+b; | ^~~ a.cc:7:7: error: extended character ” is not valid in an identifier 7 | cout<<”Yes”<<endl; | ^ a.cc:7:7: error: extended character ” is not valid in an identifier a.c...
s992507677
p03693
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF 1e9 #define PI 3.14159265359 #define MOD 1000000007 #define ALL(v) v.begin(),v.end() #define ALLR(v) v.rbegin(),v.rend() typedef long long ll; const int dx[4] = {1,0,-1,0}; const int dy[4] = {0,1,0,-1}; //isPr...
a.cc: In function 'int main()': a.cc:20:21: error: expected primary-expression before '<' token 20 | cout << "YES" <<< endl; | ^
s929512492
p03693
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String result = "NO"; int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if((100*r+10*g+b)%4==0) result = "YSE"; System.out.println(result); } }
Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:4: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s550830034
p03693
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String result = "NO"; int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); if((100*r+10*g+b)%4==0) result = "YES"; System.out.println(result); }
Main.java:12: error: reached end of file while parsing } ^ 1 error
s625729465
p03693
C++
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtCoder { class Program { static void Main(string[] args) { Question.Exec(); } } public static class Question { public static void Exec() { var array = Console.ReadLine().Split(' ').Select(i => int.Par...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:2:7: error: expected nested-name-specifier before 'System' 2 | using System.Collections.Generic; | ^~~~~~ a.cc:3:7: error: expected nested-name-specifier before 'System' 3 | using System.L...
s741831171
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:7:30: error: lvalue required as left operand of assignment 7 | if((100*a + 10*b +c) % 4 = 0) cout << "YES" << endl; | ~~~~~~~~~~~~~~~~~~^~~
s185803794
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:7:45: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 7 | if((100*a + 10*b +c) % 4 != 0) cout >> "YES" >> endl; | ~~~~ ^~ ~~~~~ | ...
s675593945
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int 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:9:12: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | cout >> "Yes" >> endl; | ~~~~ ^~ ~~~~~ | | | | | const char [4] | std::ostream {a...
s689182510
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int 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:8:26: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 8 | if (n % 4 == 0) cout >> "Yes" >> endl; | ~~~~ ^~ ~~~~~ | | | | ...
s278656077
p03693
C++
#include <iostream> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int n; 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:9:26: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | if (n % 4 == 0) cout >> "Yes" >> endl; | ~~~~ ^~ ~~~~~ | | | | ...
s139584901
p03693
C++
#include <iostream> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int n; 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:9:26: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | if (n % 4 == 0) cout >> "Yes" >> endl; | ~~~~ ^~ ~~~~~ | | | | ...
s252333623
p03693
C++
#include <iostream> using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int n; n = 100 * r + 10 * g + b; if (n % 4 == 0) cout >> "Yes" >> endl; else >> "No" >>endl; }
a.cc: In function 'int main()': a.cc:9:26: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]') 9 | if (n % 4 == 0) cout >> "Yes" >> endl; | ~~~~ ^~ ~~~~~ | | | | ...
s155026151
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"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:6:26: error: expected primary-expression before ')' token 6 | if((100*a+10*b+c%)4==0)cout<<"Yes"; | ^ a.cc:6:27: error: expected ')' before numeric constant 6 | if((100*a+10*b+c%)4==0)cout<<"Yes"; | ~ ...
s844595349
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int d==a*100+10*b+c; if(d%4==0){ cout<<"Yes"<<endl; } else{ cout<<"No"<<endl; } }
a.cc: In function 'int main()': a.cc:7:8: error: expected initializer before '==' token 7 | int d==a*100+10*b+c; | ^~ a.cc:8:6: error: 'd' was not declared in this scope 8 | if(d%4==0){ | ^
s225851834
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 n = r * 100 + g * 10 + b; if(RGB % 4 == 0) { System.out.println("Yes"); }else { System.out.println("NO"...
Main.java:10: error: cannot find symbol if(RGB % 4 == 0) { ^ symbol: variable RGB location: class Main 1 error
s042789828
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b; cin << r << g << b; int x = 10 * g + b; if(x%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 << r << g << b; | ~~~ ^~ ~ | | | | | int | std::istream {aka std::basic_istream<char>} a.cc:6:7: note: candidat...
s804499545
p03693
C++
#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: In function 'int main()': a.cc:9:7: error: expected '}' before 'else' 9 | else{ | ^~~~ a.cc:7:32: note: to match this '{' 7 | if((r*100+g*10+b)%4==0){ | ^
s528498737
p03693
C++
#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: In function 'int main()': a.cc:8:11: 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...
s377206491
p03693
C++
#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: In function 'int main()': a.cc:8:11: 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...
s732463521
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; if((r*100+g*10+b)%==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: expected primary-expression before '=' token 8 | if((r*100+g*10+b)%==0)cout<<"YES"<<endl; | ^
s985902901
p03693
C++
#include <iostream> using namespace std; int main(){ cin>>r>>g>>b; int r,g,b; int a = g+b; if(r*100+g*10+b==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:5:7: error: 'r' was not declared in this scope 5 | cin>>r>>g>>b; | ^ a.cc:5:10: error: 'g' was not declared in this scope 5 | cin>>r>>g>>b; | ^ a.cc:5:13: error: 'b' was not declared in this scope 5 | cin>>r>>g>>b; | ^
s198534588
p03693
C++
#include <iostream> using namespace std; int r,g,b; int main{ cin>>r>>g>>b; int a = g+b; if(a%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:14: error: expected '}' before ';' token 5 | cin>>r>>g>>b; | ^ a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:5:11: error: invalid user-defined conversion from '...
s260854164
p03693
C++
#include <iostream> using namespace std; int main{ int r,g,b; cin>>r>>g>>b; int a = g+b; if(a%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:2: error: expected primary-expression before 'int' 5 | int r,g,b; | ^~~ a.cc:5:2: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:2: error:...
s660960916
p03693
C++
#include <iostream> using namespace std; int main{ int r,g,b; cin>>r>>g>>b; int a=g+b; if(a%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:4:5: error: cannot declare '::main' to be a global variable 4 | int main{ | ^~~~ a.cc:5:1: error: expected primary-expression before 'int' 5 | int r,g,b; | ^~~ a.cc:5:1: error: expected '}' before 'int' a.cc:4:9: note: to match this '{' 4 | int main{ | ^ a.cc:6:1: error: '...
s647102077
p03693
C++
int main{ int r,g,b; cin>>r>>g>>b; int a=g+b; if(a%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:2:5: error: cannot declare '::main' to be a global variable 2 | int main{ | ^~~~ a.cc:3:1: error: expected primary-expression before 'int' 3 | int r,g,b; | ^~~ a.cc:3:1: error: expected '}' before 'int' a.cc:2:9: note: to match this '{' 2 | int main{ | ^ a.cc:4:1: error: '...
s602811151
p03693
C++
int r,g,b; cin>>r>>g>>b; int a=g+b; if(a%4==0)cout<<"YES"<<endl; else cout<<"NO"<<endl;
a.cc:2:1: error: 'cin' does not name a type 2 | cin>>r>>g>>b; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if(a%4==0)cout<<"YES"<<endl; | ^~ a.cc:7:1: error: expected unqualified-id before 'else' 7 | else cout<<"NO"<<endl; | ^~~~
s624957900
p03693
C++
int r,g,b; cin>r>g>b; int a=g+b; if(a%4==0)cout<"YES"<endl; else cout<"NO"<endl;
a.cc:2:1: error: 'cin' does not name a type 2 | cin>r>g>b; | ^~~ a.cc:6:1: error: expected unqualified-id before 'if' 6 | if(a%4==0)cout<"YES"<endl; | ^~ a.cc:7:1: error: expected unqualified-id before 'else' 7 | else cout<"NO"<endl; | ^~~~
s092047335
p03693
C++
#include<bits/stdc++.h> using namespace std; #define f(i,a,b) for(int i=(int)(a);i<=(int)(b);i++) #define char_f(i,a) for(int i=(int)(a);(char)s[i]!='\0';i++) #define rf(i,a,b) for(int i=(int)(a);i>=(int)(b);i--) #define llf(i,a,b) for(long long int i=(long long int)(a);i<=(long long int)(b);i++) #define llrf(i,a,b) ...
a.cc: In function 'int main()': a.cc:106:15: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 106 | cin>>n>m>k; | ~~~~~~^~ | | | | | int | std::basic_is...
s457618801
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if((100*a+10*b+c)%4==0){ cout << "Yes"; else{ cout << "No"; } } }
a.cc: In function 'int main()': a.cc:9:3: error: expected '}' before 'else' 9 | else{ | ^~~~ a.cc:7:26: note: to match this '{' 7 | if((100*a+10*b+c)%4==0){ | ^ a.cc: At global scope: a.cc:13:1: error: expected declaration before '}' token 13 | } | ^
s652503330
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(){ cin >> a >> b >> c; if((100*a+10*b+c)%4==0){ cout << "Yes"; else{ cout << "No"; } } }
a.cc: In function 'int main()': a.cc:5:8: error: 'a' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:13: error: 'b' was not declared in this scope 5 | cin >> a >> b >> c; | ^ a.cc:5:18: error: 'c' was not declared in this scope 5 | cin >> a >> b >> c; |...
s653586962
p03693
Java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { InputReader in = new InputReader(System.in); OutputWriter out = new OutputWriter(System.out); int r = in.readInt()*100; int g = in.readInt() * 10; int b = in.readInt(); int result = r+b...
Main.java:7: error: cannot find symbol OutputWriter out = new OutputWriter(System.out); ^ symbol: class OutputWriter location: class Main Main.java:7: error: cannot find symbol OutputWriter out = new OutputWriter(System.out); ^ symbol: class OutputWriter location: class Main 2...
s358103933
p03693
Java
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { InputReader in = new InputReader(System.in); OutputWriter out = new OutputWriter(System.out); int r = in.readInt()*100; int g = in.readInt() * 10; int b = in.readInt(); int result = r+b...
Main.java:7: error: cannot find symbol OutputWriter out = new OutputWriter(System.out); ^ symbol: class OutputWriter location: class Main Main.java:7: error: cannot find symbol OutputWriter out = new OutputWriter(System.out); ^ symbol: class OutputWriter location: class Main 2...
s492656042
p03693
C
#include<stdio.h> int main(){ int i,N; int a[4801]; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&a[i]); } int r[100]={0}; int num=0; for(i=0;i<N;i++){ if(a[i]<400){ r[i]=1; } else if(a[i]>=400&&a[i]<800){ r[i]=2; } else if(a[i]>=800&&a[i]<1200){ r[i]=3; } ...
main.c: In function 'main': main.c:63:28: error: expected ';' before '}' token 63 | printf("%d %d",count,8) | ^ | ; 64 | } | ~
s834115945
p03693
C
#include<stdio.h> int main(){ int i,N; int a[4801]; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&a[i]); } int r[100]={0}; int num=0; for(i=0;i<N;i++){ if(a[i]<400){ r[i]=1; } else if(a[i]>=400&&a[i]<800){ r[i]=2; } else if(a[i]>=800&&a[i]<1200){ r[i]=3; } ...
main.c: In function 'main': main.c:63:28: error: expected ';' before '}' token 63 | printf("%d %d",count,8) | ^ | ; 64 | } | ~
s322041058
p03693
C++
using System; public class Hello{ public static void Main(string[] args){ var input = Console.ReadLine().Split(' '); var r = int.Parse(input[0]); var g = int.Parse(input[1]); var b = int.Parse(input[2]); Console.WriteLine((r * 100 + g * 10 + b) % 4 == ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Hello{ | ^~~~~~
s922701157
p03693
C++
using System; public class Hello{ public static void Main(string[] args){ var input = Console.ReadLine().Split(' '); var r = int.Parse(input[0]); var g = int.Parse(input[1]); var b = int.Parse(input[2]); Console.WriteLine((r * 100 + g * 10 + b) % 4 == ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Hello{ | ^~~~~~
s759169818
p03693
C++
using System; public class Hello{ public static void Main(string[] args){ var input = Console.ReadLine().Split(' '); var r = int.Parse(input[0]); var g = int.Parse(input[1]); var b = int.Parse(input[2]); Console.WriteLine((r * 100 + g * 10 + b) % 4 == ...
a.cc:1:7: error: expected nested-name-specifier before 'System' 1 | using System; | ^~~~~~ a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Hello{ | ^~~~~~
s973467140
p03693
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int d = a *100 + b*10 +c; if (d % 4 == 0) cout << "YES" << endl;  else cout << "NO" << endl; }
a.cc:8:43: error: extended character   is not valid in an identifier 8 | if (d % 4 == 0) cout << "YES" << endl;  | ^ a.cc: In function 'int main()': a.cc:8:43: error: '\U00003000' was not declared in this scope 8 | if (d % 4 == 0) cout << "YES" << endl;  ...
s930124175
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{ Syst...
Main.java:21: error: class, interface, enum, or record expected import java.util.*; ^ Main.java:41: error: reached end of file while parsing ???? ^ 2 errors
s167912338
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.ou...
Main.java:10: error: cannot find symbol int b = sc.nextINt(); ^ symbol: method nextINt() location: variable sc of type Scanner Main.java:14: error: unexpected type if(total%4=0){ ^ required: variable found: value 2 errors
s903251287
p03693
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int,int>; 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:13:11: error: expected ';' before '}' token 13 | return 0 | ^ | ; 14 | } | ~
s646960545
p03693
C++
#include <bits/stdioc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if ((100 * r + 10 * g + b) % 4 ) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
a.cc:1:10: fatal error: bits/stdioc++.h: No such file or directory 1 | #include <bits/stdioc++.h> | ^~~~~~~~~~~~~~~~~ compilation terminated.
s781818704
p03693
C++
#include <bits/stdioc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; if ((100 * r + 10 * g + b) % 4 ) { cout << "NO" << endl; } else { cout << "YES" << endl; }
a.cc:1:10: fatal error: bits/stdioc++.h: No such file or directory 1 | #include <bits/stdioc++.h> | ^~~~~~~~~~~~~~~~~ compilation terminated.
s259071501
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; } return 0; }
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; | ^~~...
s500900044
p03693
C++
#include<iostream> using namespace std; int main(){ int N,a_min,a_max; a_max = 0; a_min = 1000; cin >> N; long a[N]; for(int i=0;i<N;i++){ cin >> a[i]; a_min = min(a[i],a_min); a_max = max(a[i],a_max); } cout << a_max-a_min << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:16: error: no matching function for call to 'min(long int&, int&)' 12 | a_min = min(a[i],a_min); | ~~~^~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, from /usr/include/c++/14/bits/locale_classes.h:40, fr...
s600747340
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int s = r + g + b; if (s % 4 = 0) cout << 'YES' << endl; else cout << 'NO' << endl; }
a.cc:7:26: warning: multi-character character constant [-Wmultichar] 7 | if (s % 4 = 0) cout << 'YES' << endl; | ^~~~~ a.cc:8:16: warning: multi-character character constant [-Wmultichar] 8 | else cout << 'NO' << endl; | ^~~~ a.cc: In function 'int main()'...
s159877523
p03693
C++
#include<bits/stdc++.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int s = r + g + b;; if (s % 4 = 0) cout << 'YES' << endl; else cout << 'NO' << endl; }
a.cc:7:26: warning: multi-character character constant [-Wmultichar] 7 | if (s % 4 = 0) cout << 'YES' << endl; | ^~~~~ a.cc:8:16: warning: multi-character character constant [-Wmultichar] 8 | else cout << 'NO' << endl; | ^~~~ a.cc: In function 'int main()'...
s980558804
p03693
C
#include <stdio.h> int main() { int a[4]; scanf("%d%d%d",&a[0],&a[1],&a[2]); a[1] *= 10; a[1] += a[2]; else if (a[1] % 4 == 0) printf("YES"); else printf("NO"); }
main.c: In function 'main': main.c:9:3: error: 'else' without a previous 'if' 9 | else if (a[1] % 4 == 0) | ^~~~
s221794376
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b; cin >> r >> g >> b int a = 10 * g + b; if(a % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:21: error: expected ';' before 'int' 6 | cin >> r >> g >> b | ^ | ; 7 | int a = 10 * g + b; | ~~~ a.cc:9:6: error: 'a' was not declared in this scope 9 | if(a % 4 == 0) { | ^
s961803722
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, a; cin >> r >> g >> b a = 10 * g + b; if(a % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:21: error: expected ';' before 'a' 6 | cin >> r >> g >> b | ^ | ; 7 | a = 10 * g + b; | ~
s067978599
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, a; cin >> r >> g >> b a = 10 * g + b; if(a % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:21: error: expected ';' before 'a' 6 | cin >> r >> g >> b | ^ | ; 7 | a = 10 * g + b; | ~ a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:4:12: note: to match this '{...
s068922637
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, z; cin >> r >> g >> b z = 10 * g + b; if(z % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:21: error: expected ';' before 'z' 6 | cin >> r >> g >> b | ^ | ; 7 | z = 10 * g + b; | ~
s971360097
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, z; cin >> r >> g >> b z = 10 * g + b; if(z % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:21: error: expected ';' before 'z' 6 | cin >> r >> g >> b | ^ | ; 7 | z = 10 * g + b; | ~ a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:4:12: note: to match this '{...
s772465790
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, z; cin >> r >> g >> b >> z = 10 * g + b; if(z % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:16: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 7 | z = 10 * g + b; | ^ In file included from /usr/include/c++/14/sstream:40, from /usr/include...
s162943719
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r, g, b, z; cin >> r >> g >> b >>; z = 10 * g + b; if(z % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:24: error: expected primary-expression before ';' token 6 | cin >> r >> g >> b >>; | ^ a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:4:12: note: to match this '{' 4 | int main() { | ^
s497959047
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { int r,g,b,z; cin >> r >> g >> b >> endl; z = 10 * g + b; if(z % 4 == 0) { cout << "YES" << endl; } else { cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:6:22: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 6 | cin >> r >> g >> b >> endl; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ In file included from /usr/in...
s767055947
p03693
C++
#include <bit/stdc++.h> using namespace std; int main(){ int r,g,b,n; cin >>r >> g >> b; n = 100*r + 10*g + b; cout << (n%4 ==0) ? "YES" : "NO" << endl; }
a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory 1 | #include <bit/stdc++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s606978208
p03693
C++
rgb = gets.strip.map(&:to_i) puts rgb % == 0 ? 'YES' : 'NO'
a.cc:3:19: warning: multi-character character constant [-Wmultichar] 3 | puts rgb % == 0 ? 'YES' : 'NO' | ^~~~~ a.cc:3:27: warning: multi-character character constant [-Wmultichar] 3 | puts rgb % == 0 ? 'YES' : 'NO' | ^~~~ a.cc:1:1: error: 'rgb' does not n...
s039987394
p03693
C++
#include <iostream> #include <vector> #include <string> #include <math.h> #include <algorithm> #include <set> #include <iomanip> #include <stdio.h> #include <sstream> #include <string> using namespace std; int main(void){ ing r,g,b; cin>>r>>g>>b; if((r*100+g*10+b)%4==0){ cout<<"YES"<<endl; }else{ cout<<...
a.cc: In function 'int main()': a.cc:13:3: error: 'ing' was not declared in this scope; did you mean 'int'? 13 | ing r,g,b; | ^~~ | int a.cc:14:8: error: 'r' was not declared in this scope 14 | cin>>r>>g>>b; | ^ a.cc:14:11: error: 'g' was not declared in this scope 14 | cin>>...
s613953875
p03693
C++
#include<bits/std++.h>; using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if ((10*b+c)%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; // cout<<b<<" "<<c<<" "<<(10*b+c)%4<<endl; return 0; }
a.cc:1:23: warning: extra tokens at end of #include directive 1 | #include<bits/std++.h>; | ^ a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h>; | ^~~~~~~~~~~~~~ compilation terminated.
s345046838
p03693
C++
#include<bits/std++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if ((10*b+c)%4==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; // cout<<b<<" "<<c<<" "<<(10*b+c)%4<<endl; return 0; }
a.cc:1:9: fatal error: bits/std++.h: No such file or directory 1 | #include<bits/std++.h> | ^~~~~~~~~~~~~~ compilation terminated.
s531125609
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); int d=a*100+b*10+c; if(d%4==0){ printf("YES"); }else{ printf("NO"); } }
a.cc:6:3: error: extended character   is not valid in an identifier 6 | int d=a*100+b*10+c; | ^ a.cc: In function 'int main()': a.cc:6:3: error: 'int\U00003000d' was not declared in this scope 6 | int d=a*100+b*10+c; | ^~~~~~ a.cc:7:6: error: 'd' was not declared in this scope 7 | if(d...
s602141544
p03693
C++
#include <iostream.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int judge = g * 10 + b; if (judge % 4 == 0) { cout << "YES"; }else { cout << "NO"; } }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s339812110
p03693
C++
#include <iostream.h> using namespace std; int main(){ int r, g, b; cin >> r >> g >> b; int judge = r * 10 + b; if (judge % 4 == 0) { cout << "YES"; } else { cout << "NO"; } }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s141548728
p03693
C++
#include <iostream.h> using namespace std; int main{ int r, g, b = 0; cin >> r >> g >> b; int judge = r * 10 + b; if (judge % 4 == 0) { cout << "YES"; } else { cout << "NO"; } }
a.cc:1:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s509590377
p03693
C++
#include <bits/stdc++.h> using namespace std ; int main () { int r,g,b; cin >> r >> g >> b >> endl; if ((100*r + 10*g + b) % 4 == 0){ cout << 'Yes' << endl; } else { cout << 'No' << endl; } return 0; }
a.cc:12:13: warning: multi-character character constant [-Wmultichar] 12 | cout << 'Yes' << endl; | ^~~~~ a.cc:18:13: warning: multi-character character constant [-Wmultichar] 18 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:8:22: error: no match f...
s952875752
p03693
C++
#include <bits/stdc++.h> using namespace std ; int main () { int r g b; cin >> r >> g >> b >> endl; if ((100*r + 10*g + b) % 4 == 0){ cout << 'Yes' << endl; } else { cout << 'No' << endl; } return 0; }
a.cc:12:13: warning: multi-character character constant [-Wmultichar] 12 | cout << 'Yes' << endl; | ^~~~~ a.cc:18:13: warning: multi-character character constant [-Wmultichar] 18 | cout << 'No' << endl; | ^~~~ a.cc: In function 'int main()': a.cc:6:9: error: expected in...
s842346721
p03693
C++
#include <bits/stdc++> using nameapace std; int main(){ int r g b ; cin >> r >> g >> b >> endl; if ( r+g+b==0 ) { cout << 'Yes' << enddl; } else { cout << 'No' << endl; } return 0; }
a.cc:1:10: fatal error: bits/stdc++: No such file or directory 1 | #include <bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s556350578
p03693
C
#include<stdio.h> int main() { int r,g,b; scanf("%d %d %d", &r, &g, &b); if ((2*g + b)%4 == 0) printf("YES") else printf("NO") return 0; }
main.c: In function 'main': main.c:8:18: error: expected ';' before 'else' 8 | printf("YES") | ^ | ; 9 | else | ~~~~
s974233527
p03693
C++
#include <bits/stdc++.h> #include <math.h> #define REP(i, n) for(int i = 0; i < (n); i++) #define ALL(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair<int, int> P; const int INF = 1001001001; const int mINF = -1001001001; int main() { int r,g,b; cin >> r >> g >> b; ans = g*10+b; if(an...
a.cc: In function 'int main()': a.cc:15:1: error: 'ans' was not declared in this scope; did you mean 'abs'? 15 | ans = g*10+b; | ^~~ | abs
s032433166
p03693
Java
#include <iostream> 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; }
Main.java:1: error: illegal character: '#' #include <iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include <iostream> ^ Main.java:6: error: not a statement cin >> r >> g >> b; ^ Main.java:7: error: not a statement if ((g * 10 + b) % 4 == 0) cout << "YES" << end...
s940698692
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int c == g + b; if (c / 4 == 0) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:7:15: error: expected initializer before '==' token 7 | int c == g + b; | ^~ a.cc:8:13: error: 'c' was not declared in this scope 8 | if (c / 4 == 0) cout << "YES" << endl; | ^
s960263452
p03693
C++
#include <bits/stdc++.h> using namespace std; int main(void) { int r, g, b; cin >> r >> g >> b; if (((g&0x3) == 0 && (b&0x3) == 0) || (g&0x3) == 2 && (b&0x3) == 2))) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:70: error: expected primary-expression before ')' token 8 | if (((g&0x3) == 0 && (b&0x3) == 0) || (g&0x3) == 2 && (b&0x3) == 2))) { | ^
s955128412
p03693
C++
#include <iostream> using namespace std; int main() { int r,g,b; cin >> e >> g >> b; int ra = r *100; int ga = g *10; int k = ra + ga + b; if(k%4 == 0) cout << "YES" <<endl; else cout << "NO" <<endl; }
a.cc: In function 'int main()': a.cc:6:10: error: 'e' was not declared in this scope 6 | cin >> e >> g >> b; | ^
s173342415
p03693
C++
#include<bits/stdc++.h> 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:19: error: unable to find numeric literal operator 'operator""g' 7 | int A = 100*r + 10g + b; | ^~~
s132091241
p03693
Java
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int r = scanner.nextInt() * 100; int g = scanner.nextInt() * 10; int b = scanner.nextInt(); if((r + g + b) % 4 == 0){ System.out.println("YES"); }else{ Sy...
Main.java:6: error: cannot find symbol int r = scanner.nextInt() * 100; ^ symbol: variable scanner location: class Main Main.java:7: error: cannot find symbol int g = scanner.nextInt() * 10; ^ symbol: variable scanner location: class Main Main.java:8: error: cannot find symbo...
s914875343
p03693
C++
#include <iostream> 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; } return 0; }
a.cc: In function 'int main()': a.cc:7:30: error: expected primary-expression before '==' token 7 | if((b * 10 + c) % 4) == 0) | ^~
s636862218
p03693
C++
#include<bits/stdc++.h> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; if((10*y+z)%4==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:16: error: 'y' was not declared in this scope; did you mean 'yn'? 7 | if((10*y+z)%4==0) cout<<"YES"<<endl; | ^ | yn a.cc:7:18: error: 'z' was not declared in this scope 7 | if((10*y+z)%4==0) cout<<"YES"<<endl; ...
s059576611
p03693
C++
#include <iostream> using namespace std; int main(){ int r, g, b; std::cin >> r >> g >> b; judge = 100 * r + 10 * g + b; if(judge%4 == 0) std::cout << "Yes" << std::endl; else std::cout << "No" << std::endl; }
a.cc: In function 'int main()': a.cc:7:3: error: 'judge' was not declared in this scope 7 | judge = 100 * r + 10 * g + b; | ^~~~~
s970435335
p03693
C++
#include <iostream> #include <vector> #include <string> #include<cmath> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; cout<<((100*r+10*g+b)%4==0)?"YES":"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:13:43: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 13 | cout<<((100*r+10*g+b)%4==0)?"YES":"NO"<<endl; | ~~~~^~~~~~
s772079978
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:26: error: expected ';' before ':' token 8 | cout << "YES" << endl: | ^ | ;
s128856844
p03693
C++
#include<bits/stdc++.h>//万能头文件 using namespace std; unsigned long long x,y,z; int main() { cin>>x>>y>>z;//输入 if((10*y+z)%4==0) //学过数学的人都知道,判断一个数是否能被4整除只要看最后两位是否能整除4就可以了 cout<<"YES";//输出(说和没说都一样) else cout<<"NO"; return 0; }
a.cc:6:17: error: expected '}' before ';' token 6 | cin>>x>>y>>z;//输入 | ^ a.cc:5:1: note: to match this '{' 5 | { | ^ a.cc:6:14: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive] 6 |...
s422582983
p03693
C
#include <stdio.h> int main() { int a, b, c; int sum; // スペース区切りの整数の入力 scanf("%d %d %d", &a, &b, &c); // 整数に sum = a * 100 + b * 10 + c; // 4で割り切れる? if (sum % 4 == 0) { printf("YES"); } else { printf("NO"); } return 0 }
main.c: In function 'main': main.c:24:17: error: expected ';' before '}' token 24 | return 0 | ^ | ; 25 | } | ~
s786662237
p03693
Java
import java.util.*; public class Main { public static void main (String [] args) { Scanner cin = new Scanner (System.in); a = cin.nextInt(); b = cin.nextInt(); c = cin.nextInt(); if((b * 10 + c ) % 4 == 0) System.out.println("Yes"); else System.out.println("No"); ...
Main.java:7: error: cannot find symbol a = cin.nextInt(); ^ symbol: variable a location: class Main Main.java:8: error: cannot find symbol b = cin.nextInt(); ^ symbol: variable b location: class Main Main.java:9: error: cannot find symbol c = cin.nextInt(); ^ ...
s025284242
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(); r = r*100; g = g*10; if((r+g+b)%4 == 0){ System.out.println("YES"); }else{ ...
Main.java:2: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s177802491
p03693
Java
import java.util.*; public class main{ public static void(String[] args){ Scanner sc = new Scanner(System.in); int r = sc.nextInt(); int g = sc.nextInt(); int b = sc.nextInt(); r = r*100; g = g*10; if((r+g+b)%4 == 0){ System.out.println("YES"); }else{ ...
Main.java:3: error: <identifier> expected public static void(String[] args){ ^ 1 error
s589179104
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b,ans; cin>>r>>g>>b; ans=r*100+g*10+b"; cout<<(ans%4==0?"YES":"NO"); }
a.cc:6:19: warning: missing terminating " character 6 | ans=r*100+g*10+b"; | ^ a.cc:6:19: error: missing terminating " character 6 | ans=r*100+g*10+b"; | ^~ a.cc: In function 'int main()': a.cc:6:19: error: expected ';' before 'cout' 6 | ans=r*100+g*10+b...
s328946310
p03693
C++
#include <bits/stdc++.h> using namespace std; int main() { char a,b,c; cin >> a >> b >> c ; string s = "AAA"; s.at(0)=a; s.at(1)=b; s.at(2)=c; int x=stoi(s); if(s%4==0) cout <<"YES"; else cout << "NO"; }
a.cc: In function 'int main()': a.cc:14:6: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 14 | if(s%4==0) | ~^~ | | | | | int | std::string {aka std::__cxx11::basic_string<char>} In file included from /usr/...
s737222501
p03693
C++
#include<iostream> using namespace std; int main(){ int r,g,b,i; cin >> r >> g >> b; i = r*100 + g*10 + b; if(i % 4 = 0){ cout << "Yes" << endl; }else{ cout <<"No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:8: error: lvalue required as left operand of assignment 8 | if(i % 4 = 0){ | ~~^~~
s356618078
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b; cin >> r >> g >> b; int x = 100 * r + 10 * g + b ; if ( x % 4 == 0) cout << "YES" << endl; else { cout << "NO" << endl; return 0; }
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() { | ^
s009875456
p03693
C++
#include <iostream> 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"<<evdl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:8:34: error: 'evdl' was not declared in this scope 8 | if (s%4==0) cout<<"YES"<<evdl; | ^~~~
s792621420
p03693
C++
#include <iostream> 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"<<evd1; else cout<<"NO"<<end1; }
a.cc: In function 'int main()': a.cc:8:34: error: 'evd1' was not declared in this scope 8 | if (s%4==0) cout<<"YES"<<evd1; | ^~~~ a.cc:9:26: error: 'end1' was not declared in this scope 9 | else cout<<"NO"<<end1; | ^~~~
s676889645
p03693
C++
#include <iostream> using namespace std; int main(){ int r,g,b; cin>>r>>g>>b; int s=100*r+10*g+b; if (c%4==0) cout<<"YES"<<evd1; else cout<<"NO"<<end1; }
a.cc: In function 'int main()': a.cc:8:13: error: 'c' was not declared in this scope 8 | if (c%4==0) cout<<"YES"<<evd1; | ^ a.cc:8:34: error: 'evd1' was not declared in this scope 8 | if (c%4==0) cout<<"YES"<<evd1; | ^~~~ a.cc:9:26: error:...
s145556814
p03693
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int R, G, B; cin >> R >> G >> B; int gb_Sum = 10*G + B; if(ggb_Sum%4) cout << "NO" << endl; else cout << "YES" << endl; }
a.cc: In function 'int main()': a.cc:10:8: error: 'ggb_Sum' was not declared in this scope; did you mean 'gb_Sum'? 10 | if(ggb_Sum%4) cout << "NO" << endl; | ^~~~~~~ | gb_Sum
s643911648
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" << end1; else cout << "NO" << end1; }
a.cc: In function 'int main()': a.cc:7:21: error: expected primary-expression before '%' token 7 | if (r*100+g*10+b) % 4 == 0) cout << "YES" << end1; | ^ a.cc:8:24: error: 'end1' was not declared in this scope 8 | else cout << "NO" << end1; | ^~~~
s133209601
p03693
C++
#include <iostream> using namespace std; int main() { int r, g, b ; cin >> r >> g >> b; int c = r * g * b if (c % 4 == 0) cout << "YES" << end1; else cout << "NO" << end1; }
a.cc: In function 'int main()': a.cc:8:3: error: expected ',' or ';' before 'if' 8 | if (c % 4 == 0) cout << "YES" << end1; | ^~ a.cc:9:3: error: 'else' without a previous 'if' 9 | else cout << "NO" << end1; | ^~~~ a.cc:9:24: error: 'end1' was not declared in this scope 9 | else cout <...
s290098680
p03693
C++
v#include <iostream> #include <vector> #include <algorithm> #include <map> #define print(n) std::cout << n << std::endl #define FOR(i,n) for(int i = 0; i < n; i++) using namespace std; int main() { int r,g,b; cin >> r >> g >> b; int n = 100 * r + 10 * g + b; if(n % 4 == 0)print("YES"); else print("...
a.cc:1:2: error: stray '#' in program 1 | v#include <iostream> | ^ a.cc:1:1: error: 'v' does not name a type 1 | v#include <iostream> | ^ In file included from /usr/include/c++/14/bits/stl_algobase.h:62, from /usr/include/c++/14/vector:62, from a.cc:2: /usr/include...
s550811987
p03693
C++
//C #include <cassert> //#include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <ccomplex...
a.cc: In function 'int main()': a.cc:121:33: error: expected ';' before '}' token 121 | cout<<"NO"<<endl | ^ | ; 122 | } | ~ a.cc: In function 'long long int gcd(long long int, l...
s844494350
p03693
Java
import java.util.*; public class Test3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = 3; String[] arr = new String[n]; String count = ""; for(int i = 0; i < n; i++) { arr[i] = sc.next(); count += arr[i]; ...
Main.java:3: error: class Test3 is public, should be declared in a file named Test3.java public class Test3 { ^ 1 error
s223957001
p03693
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int r, g, b; cin >> r >> g >> b; int ans = r*100 + g*10 + b; cout << (ans % 4 ? "NO" : "YES") << end; return 0; }
a.cc: In function 'int main()': a.cc:10:38: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 10 | cout << (ans % 4 ? "NO" : "YES") << end; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostr...