submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s737950112 | p03693 | C++ | #include <iostream>
#include<String>
using namespace std;
int main()
{
int a,b,c,sum;
cin>>a>>b>>c;
sum=(100*a)+(10*b)+c;
if(sum%4==0)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
} | a.cc:2:9: fatal error: String: No such file or directory
2 | #include<String>
| ^~~~~~~~
compilation terminated.
|
s108614976 | p03693 | C++ | #include<iostream>
#include<CastingInterop.h>
#include<string>
using namespace std;
int main()
{
char arr[3];
int arr1[3];
string y;
for (int i = 0; i < 3; i++)
{
cin >> arr[i];
}
string s [1000];
for (int i = 0; i < 3; i++)
{
s[i] = arr[i];
}
for (int i = 0; i < 3; i++)
{
s[i] += s[i +1]+s[i+2];... | a.cc:2:9: fatal error: CastingInterop.h: No such file or directory
2 | #include<CastingInterop.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
|
s983176674 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
// Your code here!
int r, g, b;
cin >> r >> b >> b;
int num = 100 * r + 10 * g + b;
c
if (num % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:8:5: error: 'c' was not declared in this scope
8 | c
| ^
a.cc:11:5: error: 'else' without a previous 'if'
11 | else cout << "NO" << endl;
| ^~~~
|
s248565593 | p03693 | C | #include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
(((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n");
} | main.c: In function 'main':
main.c:5:44: error: expected ':' before ';' token
5 | (((a*100)+(b*10)+c)%4==0)?printf("YES\n");:printf("NO\n");
| ^
| :
main.c:5:45: error: expected expression before ':' token
5 | ... |
s007878588 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,z ;
cin>>a>>b>>c;
z=(a*100)+(b*10)+c;
if(s%4==0)
cout<<"YES";
else
cout<<"NO";
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:8: error: 's' was not declared in this scope
8 | if(s%4==0)
| ^
|
s735255681 | p03693 | C++ | #include<iostream>
using namesapce 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:2:7: error: expected nested-name-specifier before 'namesapce'
2 | using namesapce std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | int r,g,b;cin>>r>>g>>b;
| ^~~
| std::cin
... |
s970817252 | p03693 | C | #include<stdio.h>
int main(void)
{
int r,g,b,k=0;
scanf("%d",&r);
scanf("%d",&g);
scanf("%d",&b);
k=100*r+10*g+b;
if(k%4=0){
printf("YES");
}
else{
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:11:9: error: lvalue required as left operand of assignment
11 | if(k%4=0){
| ^
|
s155285489 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b>>c;
int total = 100*a + 10*b +c;
string s="No":
if(total%4==0) {s="Yes";}
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected ',' or ';' before ':' token
8 | string s="No":
| ^
|
s969430932 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b>>c;
int total = 100*a + 10*b +c;
string s="No":
if(total%4==0) s="Yes";
cout << s << endl;
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected ',' or ';' before ':' token
8 | string s="No":
| ^
|
s509832650 | p03693 | C++ | #include<bits/stdc++.h>
using namaespace std;
int main(){
int r, g, d; cin >> r >> g >> d;
int a = r * 100 + g * 10 + d;
if(a % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:2:7: error: expected nested-name-specifier before 'namaespace'
2 | using namaespace std;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | int r, g, d; cin >> r >> g >> d;
| ^~~
| ... |
s275247098 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
int main(){
String a,b,c;
cin >> a >> b >> c;
String d = a + b + c;
auto num = atoi(d.c_str());
if(e%4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'String' was not declared in this scope
6 | String a,b,c;
| ^~~~~~
a.cc:7:10: error: 'a' was not declared in this scope
7 | cin >> a >> b >> c;
| ^
a.cc:7:15: error: 'b' was not declared in this scope
7 | cin >> a >> b >> c;
... |
s859488084 | 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:21: error: expected ';' before ':' token
10 | cout<<"NO"<<endl:
| ^
| ;
|
s683874757 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >>b;
int ans4 = 100 * r + 10 * g + b;
if(ans4 % 4 ==0){
cout << "YES" << endl;
}else{
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:11:5: error: 'cout' was not declared in this scope
11 | cout << "YES" << endl;
... |
s076950862 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >>r >>g >>b;
int a = r*100 + g*10 + b;
if (a%4 = 0)
cout << "YES";
else
cout << "NO";
} | a.cc: In function 'int main()':
a.cc:10:8: error: lvalue required as left operand of assignment
10 | if (a%4 = 0)
| ~^~
|
s399268675 | 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<ll,ll>;
//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
//xにはvectorなどの... | a.cc: In function 'int main()':
a.cc:61:17: error: 'c' was not declared in this scope
61 | cin >>a>>b>>c;
| ^
|
s613729965 | p03693 | C++ | #include <cstdio>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c);
if (a * 100 + b * 10 + c) % 4 == 0)
{
printf("YES");
}
else
{
printf("NO");
}
} | a.cc: In function 'int main()':
a.cc:7:31: error: expected primary-expression before '%' token
7 | if (a * 100 + b * 10 + c) % 4 == 0)
| ^
|
s400072918 | p03693 | C++ | #include <cstdio>
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b, &c)
if (a * 100 + b * 10 + c) % 4 == 0)
{
printf("YES")
}
else
{
printf("NO")
}
} | a.cc: In function 'int main()':
a.cc:6:34: error: expected ';' before 'if'
6 | scanf("%d %d %d", &a, &b, &c)
| ^
| ;
7 | if (a * 100 + b * 10 + c) % 4 == 0)
| ~~
a.cc:12:5: error: 'else' w... |
s672995828 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
int r, g, b;
cin >> r >> g >> b;
int num = (r * 100) + (g * 10) + b;
if(num % 4 == 0){
cout << "YES" << endl;
}
eles{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:13:5: error: 'eles' was not declared in this scope
13 | eles{
| ^~~~
|
s703864247 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
int r, g, b;
cin >> r >> g > b;
int num = (r * 100) + (g * 10) + b;
if(num % 4 == 0){
cout << "YES" << endl;
}
eles{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:19: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | cin >> r >> g > b;
| ~~~~~~~~~~~~~ ^ ~
| | |
| | int
| ... |
s983380556 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void)
{
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:8:37: warning: multi-character character constant [-Wmultichar]
8 | if((100*r+10*g+b)%4==0) cout << 'YES' << endl;
| ^~~~~
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
9 | else cout << 'NO' << endl;
| ^~~~
a.cc... |
s303636811 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ii pair<int,int>
#define fi first
#define sc second
#define all(x) (x).begin(),(x).end()
int color(int n) {
if (n < 400) return 1;
else if (n < 800) return 2;
else if (n < 1200) return 3;
else if (n < 1600) return 4;
else if (n < ... | a.cc: In function 'int main()':
a.cc:41:14: error: no matching function for call to 'max(std::set<long long int>::size_type, long long unsigned int)'
41 | cout << max(s.size(), 1ULL) << ' ' << s.size() + c << '\n';
| ~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
... |
s563181686 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >>b;
int c = r*100+g*10+b
if (c % 4 == 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 (c % 4 == 0) cout << "YES" << endl;
| ^~
a.cc:9:5: error: 'else' without a previous 'if'
9 | else cout << "NO" << endl;
| ^~~~
|
s214371157 | p03693 | C | #include <stdio.h>
int main(void)
{
int r,g,b,s;
scanf("%d%d%d",&r,&g,&b);
s=r*100+d*10+b;
if(s%4==0)printf("YES");
else printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:7:17: error: 'd' undeclared (first use in this function)
7 | s=r*100+d*10+b;
| ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
|
s029684231 | p03693 | C | #include <stdio.h>
int main(void)
{
int r,g,b.s;
scanf("%d%d%d",&r,&g,&b);
s=r*100+d*10+b;
if(s%4==0)printf("YES");
else printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:5:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
5 | int r,g,b.s;
| ^
main.c:6:31: error: 'b' undeclared (first use in this function)
6 | scanf("%d%d%d",&r,&g,&b);
| ^
main... |
s100345421 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
int S;
S = (r*100)+(g*10)+b;
if(S%4==0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
}
| a.cc:5:1: error: extended character is not valid in an identifier
5 | int r,g,b;
| ^
a.cc:6:1: error: extended character is not valid in an identifier
6 | cin>>r>>g>>b;
| ^
a.cc:7:1: error: extended character is not valid in an identifier
7 | int S;
| ^
a.cc:8:1: error: extended c... |
s157714266 | p03693 | C | #include <stdio.h>
int main(void) {
int r, g, b;
scanf ("%d %d %d", &r, &g, &b);
int q = (10g + b)/4;
int a = (10g + b) - 4r;
if (a = 0){
printf("YES");
}else {
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:6:12: error: invalid suffix "g" on integer constant
6 | int q = (10g + b)/4;
| ^~~
main.c:7:12: error: invalid suffix "g" on integer constant
7 | int a = (10g + b) - 4r;
| ^~~
main.c:7:3: warning: large fixed-point constant implicitly trun... |
s768655776 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args)
Scanner scan = new Scanner(System.in);
int r = scan.nextInt();
int g = scan.nextInt();
int b = scan.nextInt();
int rgb = r * 100 + g *10 + b;
if((rgb % 4) == ... | Main.java:4: error: ';' expected
public static void main(String[] args)
^
Main.java:13: error: illegal start of type
if((rgb % 4) == 0){
^
Main.java:13: error: <identifier> expected
if((rgb % 4) == 0){
^
Main.java:15: error: illegal ... |
s450431954 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
int r = scan.nextint();
int g = scan.nextint();
int b = scan.nextint();
int rgb = r *... | Main.java:9: error: cannot find symbol
int r = scan.nextint();
^
symbol: method nextint()
location: variable scan of type Scanner
Main.java:10: error: cannot find symbol
int g = scan.nextint();
^
symbol: method nextint()
location: variable scan of type... |
s164317337 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
int r = scan.nextint();
int g = scan.nextint();
int b = scan.nextint();
int rgb = r ... | Main.java:13: error: ';' expected
int rgb = r * 100 + g *10 + b
^
Main.java:22: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:43: error: class, interface, enum, or record expected
????
^
3 errors
|
s814707761 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner scan = new Scanner(System.in);
int r = scan.nextint();
int g = scan.nextint();
int b = scan.nextint();
int rgb = r *... | Main.java:13: error: ';' expected
int rgb = r * 100 + g *10 + b
^
1 error
|
s097476003 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
String card = r + g + b;
int num = Integer.parseInt(card);
if(num % 4 == 0){
System.out.println("yes");
}else{
Syste... | Main.java:6: error: cannot find symbol
String card = r + g + b;
^
symbol: variable r
location: class Main
Main.java:6: error: cannot find symbol
String card = r + g + b;
^
symbol: variable g
location: class Main
Main.java:6: error: cannot find ... |
s884486078 | p03693 | C++ | #include<bit/stdc++.h>
using namespace std;
int main(){
int a,b,c,k;
cin >> a >> b >> c;
k = b * 10 + c;
if(k % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:1:9: fatal error: bit/stdc++.h: No such file or directory
1 | #include<bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s943068933 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
char a,b,c;
cin >> a >> b >> c;
d = 100*a + 10*b + c;
if( d%4 == 0 ){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
9 | d = 100*a + 10*b + c;
| ^
|
s128917690 | 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:7:19: error: lvalue required as left operand of assignment
7 | if((B * 10 + C) % 4 = 0){
| ~~~~~~~~~~~~~^~~
|
s166002051 | 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:7:19: error: lvalue required as left operand of assignment
7 | if((B * 10 + C) % 4 = 0;){
| ~~~~~~~~~~~~~^~~
a.cc:7:27: error: expected primary-expression before ')' token
7 | if((B * 10 + C) % 4 = 0;){
| ^
|
s370645319 | 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:7:19: error: lvalue required as left operand of assignment
7 | if((B * 10 + C) % 4 = 0;){
| ~~~~~~~~~~~~~^~~
a.cc:7:27: error: expected primary-expression before ')' token
7 | if((B * 10 + C) % 4 = 0;){
| ^
a.cc:11:23: error: ex... |
s736480505 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
int r, g, b;
cin >> r >> g >> b;
int s = r * 100 + g * 10 + b;
if (s % 4 == 0) cout << "YES << endl;
else cout << "NO" << endl;
return 0;
} | a.cc:8:29: warning: missing terminating " character
8 | if (s % 4 == 0) cout << "YES << endl;
| ^
a.cc:8:29: error: missing terminating " character
8 | if (s % 4 == 0) cout << "YES << endl;
| ^~~~~~~~~~~~~
a.cc: In function 'int main()'... |
s710002880 | p03693 | C++ | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
#define mrep(i,n) for (ll i = (ll)(n-1); i > 0; i--)
#define be(v) (v).begin(), (v).end()
#define sc... | a.cc: In function 'int main()':
a.cc:16:9: error: 'itn' was not declared in this scope; did you mean 'int'?
16 | itn s=a*100+b*10+c;
| ^~~
| int
a.cc:17:12: error: 's' was not declared in this scope
17 | if(s%4==0) cout << "YES" << endl;
| ^
|
s284430229 | p03693 | C++ | #include<iostream>
#include<string>
#include<bits/stdc++.h>
using namespace std;
int main()
{
String s;
cin>>s;
int a;
int a=stoi(s);
if(a%4==0)
cout<<"YES";
else
cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'String' was not declared in this scope
7 | String s;
| ^~~~~~
a.cc:8:6: error: 's' was not declared in this scope
8 | cin>>s;
| ^
a.cc:13:12: error: redeclaration of 'int a'
13 | int a=stoi(s);
| ^
a.cc:9:5: note: 'int... |
s272908677 | p03693 | C++ | #include <iostream>
#include <climits>
#include <algorithm>
int main(){
//initialization
int r, g ,b;
int ans;
//input data
cin >> r >> g >> b;
//solver
ans = ((r * 100) + (g * 10) + b) % 4
if(ans == 0){
cout << "YES" << "\n";
} else {
cout << "NO" << "\n";
}
//output
}
| a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
13 | cin >> r >> g >> b;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< L... |
s651619352 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
int gy = 0, br = 0, gr = 0, cy = 0, bl = 0, yl = 0, org = 0, r = 0, h = 0;
for (int i = 0; i < n; i++) {
int x;
cin >> x;
if(x >= 0 && x <= 399) {
gy = 1;
}
els... | a.cc: In function 'int main()':
a.cc:46:101: error: 'y' was not declared in this scope
46 | cout << gy + br + gr + cy + bl + yl + org + r << " " << gy + br + gr + cy + bl + yl + org + r + y << endl;
| ^
|
s220794665 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a,b,c;
cin>>a>>b>>c;
string rgb=a+b+c;
int abc=stoi(rgb);
if(abc % 4==0){
cont<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:10:5: error: 'cont' was not declared in this scope; did you mean 'const'?
10 | cont<<"YES"<<endl;
| ^~~~
| const
|
s889695099 | 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" << emdl;
}
}
| a.cc: In function 'int main()':
a.cc:10:21: error: 'emdl' was not declared in this scope
10 | cout << "NO" << emdl;
| ^~~~
|
s490840031 | 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();
int amari = (10 * g + b) % 4;
if (amari == 0) {
System.out.println("Y... | Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s967065022 | 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();
int amari = (10 * g + b) % 4;
if (amari == 0) {
System.out.println("Y... | Main.java:17: error: reached end of file while parsing
}
^
1 error
|
s613233728 | p03693 | Java | import java.util.*;
import java.io.*;
public class solutions {
public static void main (String[]args){
String val = "";
Scanner in = new Scanner(System.in);
String input = in.nextLine(); // get the entire line after the prompt
String[] numbers = input.split(" "); // split by spaces
val = numbe... | Main.java:5: error: class solutions is public, should be declared in a file named solutions.java
public class solutions {
^
1 error
|
s329707846 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(void){
int a, b, c;
cin >> a >> b>> c;
int number = a * 100 + b * 10 + c;
if (nunber / 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:7: error: 'nunber' was not declared in this scope; did you mean 'number'?
9 | if (nunber / 4 == 0){
| ^~~~~~
| number
|
s685518722 | p03693 | C++ | #include <stdc++.h>
using namespace std;
int main(void){
int a, b, c;
cin >> a >> b>> c;
int number = a * 100 + b * 10 + c;
if (nunber / 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
} | a.cc:1:10: fatal error: stdc++.h: No such file or directory
1 | #include <stdc++.h>
| ^~~~~~~~~~
compilation terminated.
|
s045875826 | 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;
int a=10*g+b;
if(a%4==0)cpit << "YES" << endl;
else cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:12:15: error: 'cpit' was not declared in this scope
12 | if(a%4==0)cpit << "YES" << endl;
| ^~~~
|
s899508468 | p03693 | C++ | // https://ei1333.github.io/luzhiled/
// http://beet-aizu.hatenablog.com/entry/2017/01/04/113233
// http://www.prefield.com/algorithm/
#include <bits/stdc++.h>
constexpr char bn = '\n';
using namespace std;
using ll = long long;
using ld = long double;
using vl = vector<ll>;
using vd = vector<ld>;
using vs = vector<str... | a.cc: In function 'int main()':
a.cc:80:30: error: expected ')' before ';' token
80 | out(YES((r*100+g*10+b)%4);
| ~ ^
|
s980752294 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;
int main() {
int r, b, 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:8:14: error: redeclaration of 'int b'
8 | int r, b, b;
| ^
a.cc:8:11: note: 'int b' previously declared here
8 | int r, b, b;
| ^
a.cc:9:16: error: 'g' was not declared in this scope
9 | cin >> r >> g >> b;
| ... |
s083547007 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0
(b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:5: error: expression cannot be used as a function
6 | if((a*10+b)%4==0||(b*10+c)%4==0||(c*10+a)%4==0
| ~
7 | (b*10+a)%4==0||(c*10+b)%4==0||(a*10+c)%4==0){
| ^~~~~~~~
|
s783509072 | 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 << "No" << endl;
}
if(B * 10 + C % 4 != 0){
cout << "Yes" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'A'
6 | cin A >> B >> C;
| ^~
| ;
|
s233761760 | 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 << "No" << endl;
}
if(B * 10 + C % 4 != 0){
cout << "Yes" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'A'
6 | cin A >> B >> C;
| ^~
| ;
|
s932083997 | 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 << "No" << endl;
}
if(B * 10 + C % 4 != 0){
cout << "Yes" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'A'
6 | cin A >> B >> C;
| ^~
| ;
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(B * 10 + C % 4 = 0){
| ~~~~~~~^~~~~~~
|
s509686456 | 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") << cout;
} | a.cc: In function 'int main()':
a.cc:7:60: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ostream' {aka 'std::basic_ostream<char>'})
7 | cout << ((a * 100 + b * 10 + c) % 4 == 0 ? "YES" : "NO") << cout;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~... |
s468030395 | p03693 | C | #include<stdio.h>
int main(void){
scanf("%d%d%d",&int a,&int b,&int c);
if((a*100+b*10+c)%4==0)
printf("Yes");
else
printf("No");
return 0;
} | main.c: In function 'main':
main.c:3:19: error: expected expression before 'int'
3 | scanf("%d%d%d",&int a,&int b,&int c);
| ^~~
main.c:4:7: error: 'a' undeclared (first use in this function)
4 | if((a*100+b*10+c)%4==0)
| ^
main.c:4:7: note: each undeclared identifier is ... |
s158891861 | p03693 | C++ | v#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
using namespace std;
#define int long long
#define REP(i,s,e) for((i)=(s);(i)<(e);(i)++)
#define RREP(i,s,e) for((i)=((s)-1);(i)>=(e);(i)--)
signed main(){
int R,G,B;
cin>>R>>G>>B;
if((R*100+G*10+B)%4==0)cout<<"YES... | 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/algorithm:60,
from a.cc:2:
/usr/includ... |
s765242141 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include<set>
#include<math.h>
#define pai 3.14159265358979323846264338327950288;
#define keta(n) cout << fixed << setprecision((n));
using ll = long long;
int main(){
int r,g,b;
cin>>r>>g>>b;
if((10*g+b)%4==0)cout... | a.cc: In function 'int main()':
a.cc:12:31: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
12 | if((10*g+b)%4==0)cout<<"Yes"<endl;
| ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
... |
s736938132 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string r,g,b;
cin >> r >> g >> b;
if(atoi(g + b) % 4 == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:13: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
7 | if(atoi(g + b) % 4 == 0) {
| ~~^~~
| |
| std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
... |
s598364905 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b, num;
cin >> r >> g >>b;
num = r*100 + g*10 + b;
if (num%4 == 0){
cout << "YES" << endl;
}
else {
cout << "NO << endl;
}
}
| a.cc:15:13: warning: missing terminating " character
15 | cout << "NO << endl;
| ^
a.cc:15:13: error: missing terminating " character
15 | cout << "NO << endl;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
... |
s605615737 | p03693 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int N =sc.nextInt();
int a=sc.nextInt();
for(int i=1;i<N;i++){
int Min;
int Max;
if(Min>a)Min=a;
if(Max<a)Max=a;
System.out.println(Max-Min);}
}
}
| Main.java:10: error: variable Min might not have been initialized
if(Min>a)Min=a;
^
Main.java:11: error: variable Max might not have been initialized
if(Max<a)Max=a;
^
2 errors
|
s428991002 | p03693 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int N=sc.nextInt();
int a=sc.nextInt();
for(int i=1;i<N;i++){
int Min=a;
int Max=a;
System.out.println(Max-Min);}
}
}
| Main.java:4: error: cannot find symbol
int N=sc.nextInt();
^
symbol: variable sc
location: class Main
Main.java:5: error: cannot find symbol
int a=sc.nextInt();
^
symbol: variable sc
location: class Main
2 errors
|
s230516024 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
int red = a*100;
int green = g*10;
int blue = c;
int num = red + green + blue;
if(num % 4 == 0){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:15: error: 'g' was not declared in this scope
8 | int green = g*10;
| ^
|
s652469431 | p03693 | C++ | #include <iostream.h>
using namespace std;
int main(){
int r,g,b,sum;
cin>>r>>g>>b;
sum=r*100+g*10+b;
if(sum%4==0){
cout<<YES<<endl;
}else{
cout<<NO<<endl;
}
}
| a.cc:1:10: fatal error: iostream.h: No such file or directory
1 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s512716014 | p03693 | C | #inclde<stdio.h>
int main(void){
int a, b, c;
int sum;
scanf("%d %d %d",&a &b &c);
sum = 100*a + 10*b + c;
if(sum % 4 == 0){
puts("YES\n");
}else{
puts("NO\n");
}
reutn 0;
}
| main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
1 | #inclde<stdio.h>
| ^~~~~~
| include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
5 | scanf("%d %d %d",&a &b &c);
| ^~~~~
mai... |
s098576032 | p03693 | C++ | #include <bists/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
int x=100*r+10*g+b;
cout<<(x%4==0?"YES":"NO")<<endl;
}
| a.cc:1:10: fatal error: bists/stdc++.h: No such file or directory
1 | #include <bists/stdc++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s378602418 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
main(){
// ここにプログラムを追記
int A,B,C;
cin>> A >>B>>C;
int X=100*A+10*B+C;
if (X % 4 =0) {cout <<"YES"<<endl;
}
else{ cout<<"NO"<<endl;
}
}
| a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
8 | if (X % 4 =0) {cout <<"YES"<<endl;
| ~~^~~
|
s005031842 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
main(){
// ここにプログラムを追記
int A,B,C;
cin>> A >>B>>C;
int X=100*A+10*B+C;
if (X %4 =0) {cout <<"YES"<<endl;
}
else{ cout<<"NO"<<endl;
}
}
| a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
8 | if (X %4 =0) {cout <<"YES"<<endl;
| ~~^~
|
s862662785 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
// ここにプログラムを追記
int A,B,C;
cin>> A >>B>>C;
int X=100*A+10*B+C;
if (X %4 =0) {cout <<"YES"<<endl;
}
else{ cout<<"NO"<<endl;
}
}
| a.cc:6:3: error: 'cin' does not name a type
6 | cin>> A >>B>>C;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | if (X %4 =0) {cout <<"YES"<<endl;
| ^~
a.cc:11:1: error: expected unqualified-id before 'else'
11 | else{ cout<<"NO"<<endl;
| ^~~~
a.cc:13:1: error: expecte... |
s537886081 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
// ここにプログラムを追記
int A,B,C;
cin>> A >>B>>C;
int X=100*A+10*B+C;
if (X %4 =0)cout <<"YES"<<endl;
else cout<<"NO"<<endl;
} | a.cc:6:3: error: 'cin' does not name a type
6 | cin>> A >>B>>C;
| ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
8 | if (X %4 =0)cout <<"YES"<<endl;
| ^~
a.cc:9:1: error: expected unqualified-id before 'else'
9 | else cout<<"NO"<<endl;
| ^~~~
a.cc:10:1: error: expected de... |
s202557869 | p03693 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int r,g,b;
Scanner sc=new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
if((100*r+10*g+b)%4==0){
System.out.println("YES");}
else{System.out.println("NO");}
... | Main.java:6: error: variable r is already defined in method main(String[])
int r = sc.nextInt();
^
Main.java:7: error: variable g is already defined in method main(String[])
int g = sc.nextInt();
^
Main.java:8: error: variable b is already defined in method main(String[])
int b = sc.nextInt(... |
s571239308 | p03693 | Java | 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 ((100 * r + 10 * g + b) % 4 == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} | Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:3: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s441947060 | p03693 | Java | import java.util.ArrayDeque;
import java.util.Deque;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Stream;
public class Main__ {
public static void main(String[] args) {
Deque<Integer> list = new ArrayDeque<>(List.of(2,1,0));
try (Scanner sc = new Scanner(System.in)) {
int... | Main.java:7: error: class Main__ is public, should be declared in a file named Main__.java
public class Main__ {
^
1 error
|
s428405849 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
int c = (100*a)+(10*b)+c;
if(c%4 == 0){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:9:9: error: redeclaration of 'int c'
9 | int c = (100*a)+(10*b)+c;
| ^
a.cc:7:13: note: 'int c' previously declared here
7 | int a,b,c;
| ^
|
s277880115 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
a *= 100;
b *= 10;
t = a+b+c;
if (t%4 == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:3: error: 't' was not declared in this scope
8 | t = a+b+c;
| ^
|
s781276926 | p03693 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int r,g,b;
Scanner sc=new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
if((100*r+10*g+b)%4==0){
System.out.println("Yes");}
else{System.out.println("No");}
... | Main.java:6: error: variable r is already defined in method main(String[])
int r = sc.nextInt();
^
Main.java:7: error: variable g is already defined in method main(String[])
int g = sc.nextInt();
^
Main.java:8: error: variable b is already defined in method main(String[])
int b = sc.nextInt(... |
s393325337 | p03693 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
int r,g,b;
Scanner sc=new Scanner(System.in);
int r = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if((100*r+10*g+b)%4==0){
System.out.println("Yes");}
else{System.out.println("No");}
... | Main.java:6: error: variable r is already defined in method main(String[])
int r = sc.nextInt();
^
Main.java:7: error: variable b is already defined in method main(String[])
int b = sc.nextInt();
^
2 errors
|
s181988476 | p03693 | Java | public class Main{
public static void main(String[] args){
int r;
int g;
int b;
if((100*r+10*g+b)%4==0){
System.out.println("Yes");}
else{System.out.println("No");}
}
}
| Main.java:6: error: variable r might not have been initialized
if((100*r+10*g+b)%4==0){
^
Main.java:6: error: variable g might not have been initialized
if((100*r+10*g+b)%4==0){
^
Main.java:6: error: variable b might not have been initialized
if((100*r+10*g+b)%4==0){
... |
s127547078 | p03693 | Java | public class Main{
public static void main(String[] args){
int r,g,b;
if((100*r+10*g+b)%4==0){
System.out.println("Yes");}
else{System.out.println("No");}
}
}
| Main.java:4: error: variable r might not have been initialized
if((100*r+10*g+b)%4==0){
^
Main.java:4: error: variable g might not have been initialized
if((100*r+10*g+b)%4==0){
^
Main.java:4: error: variable b might not have been initialized
if((100*r+10*g+b)%4==0){
... |
s681990199 | p03693 | Java | public class Main{
public static void main(String[] args){
int r,g,b;
if((100r+10g+b)%4==0){
System.out.println("Yes");
else{System.out.println("No");
}
}
| Main.java:4: error: ')' expected
if((100r+10g+b)%4==0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4==0){
^
Main.java:4: error: ';' expected
if((100r+10g+b)%4==0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4==0){
^
Main.java:4:... |
s598955515 | p03693 | Java | public class Main{
public static void main(String[] args){
int r,g,b;
if((100r+10g+b)%4==0){
System.out.println("Yes");}
else{System.out.println("No");}
}
}
| Main.java:4: error: ')' expected
if((100r+10g+b)%4==0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4==0){
^
Main.java:4: error: ';' expected
if((100r+10g+b)%4==0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4==0){
^
Main.java:4:... |
s079140380 | p03693 | Java | public class Main{
public static void main(String[] args){
int r,g,b;
if((100r+10g+b)%4 == 0){
System.out.println("Yes");}
else{System.out.println("No");}
}
}
| Main.java:4: error: ')' expected
if((100r+10g+b)%4 == 0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4 == 0){
^
Main.java:4: error: ';' expected
if((100r+10g+b)%4 == 0){
^
Main.java:4: error: not a statement
if((100r+10g+b)%4 == 0){
^
Main... |
s865772134 | p03693 | C++ | #include<iostream>
#include<string>
#include<math.h>
using namespace std;
int main(){
int r,g,b;
cin >> r > g >> b;
if((10*g + b) % 4 == 0)cout << "YES";
else cout << "NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:9:12: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
9 | cin >> r > g >> b;
| ~~~~~~~~ ^ ~~~~~~
| | |
| | int
| std::basic_istre... |
s650639840 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
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:8:3: error: 'x' was not declared in this scope
8 | x = a * 100 + b * 10 + c;
| ^
|
s629483811 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
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:8:3: error: 'x' was not declared in this scope
8 | x = a * 100 + b * 10 + c;
| ^
|
s576121854 | p03693 | C | #include<stdio.h>
int main(void){
int *n[3];
scanf("%d",&n[]);
if((*n[0]*100 + *n[1]*10 + *n[2])%4 == 0){
printf("YES");
}
else{printf("NO");}
return 0;
}
| main.c: In function 'main':
main.c:5:17: error: expected expression before ']' token
5 | scanf("%d",&n[]);
| ^
|
s402974336 | p03693 | C | #include<stdio.h>
int main(void){
int *n[3];
scanf("%d",&n);
if((n[0]*100 + n[1]*10 + n[2])%4 == 0){
printf("YES");
}
else{printf("NO");}
return 0;
}
| main.c: In function 'main':
main.c:7:11: error: invalid operands to binary * (have 'int *' and 'int')
7 | if((n[0]*100 + n[1]*10 + n[2])%4 == 0){
| ~~~~^
| |
| int *
main.c:7:22: error: invalid operands to binary * (have 'int *' and 'int')
7 | if((n[0]*100 + n[1]*10 + n... |
s198662838 | p03693 | C++ | #include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <utility>
using namespace std;
using ll = long long;
int main() {
int a,b,c;
cin >> a >>b >>c;
int a = a*100 + b*10+c;
if (a %4 == 0) cout <<"YES" << endl;
else cout << "NO" ... | a.cc: In function 'int main()':
a.cc:15:7: error: redeclaration of 'int a'
15 | int a = a*100 + b*10+c;
| ^
a.cc:13:5: note: 'int a' previously declared here
13 | int a,b,c;
| ^
a.cc: At global scope:
a.cc:30:5: error: redefinition of 'int main()'
30 | int main() {
| ^~~~
a.cc... |
s786677214 | p03693 | C++ | #include <iostream>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <utility>
using namespace std;
using ll = long long;
int main() {
int a,b,c;
cin >> a >>b >>c;
int a = a*100 + b*10+c;
if (a %4 == 0) cout <<"YES" << endl;
else cout << "NO" ... | a.cc: In function 'int main()':
a.cc:15:7: error: redeclaration of 'int a'
15 | int a = a*100 + b*10+c;
| ^
a.cc:13:5: note: 'int a' previously declared here
13 | int a,b,c;
| ^
|
s551908241 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >>c;
int d = 10 * b + c;
if d % 4 == 0) cout << "Yes" << endl;
else cout << "No" << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'd'
8 | if d % 4 == 0) cout << "Yes" << endl;
| ^
| (
a.cc:9:5: error: 'else' without a previous 'if'
9 | else cout << "No" << endl;
| ^~~~
|
s762738862 | p03693 | C++ | #include <iostream>
#include <bits/stdc++.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;
} | a.cc:4:1: error: extended character is not valid in an identifier
4 |
| ^
a.cc:6:1: error: extended character is not valid in an identifier
6 | int a, b, c;
| ^
a.cc:4:1: error: '\U000000a0' does not name a type
4 |
| ^
|
s428129473 | p03693 | Java | import java.util.Scanner;
class Main
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int r = scan.nextInt();
int g = scan.nextInt();
int b = scan.nextInt();
int num = 100*r + 10*g + b;
int cal = num % 4;
if(cal == 0){
... | Main.java:2: error: '{' expected
class 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:17: error: class, interface, enum, or record expecte... |
s854929335 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int r, g, b;
cin >> r >> g >> b;
int hantei = g * 10 + b
if ((hantei % 4) == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
9 | if ((hantei % 4) == 0) {
| ^~
a.cc:12:3: error: 'else' without a previous 'if'
12 | else {
| ^~~~
|
s221559910 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b >>;
int judge = r * 100 + g * 10 + b;
if(judge % 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:6:30: error: expected primary-expression before ';' token
6 | cin >> r >> g >> b >>;
| ^
|
s246803357 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
cin >> r >> g >> b;
int a = 100*r + 10*g + b;
if(a % 4 ==0){
cout <<'Yes'<<endl;
}else{
cout << 'No' << endl;
}
}
| a.cc:7:12: warning: multi-character character constant [-Wmultichar]
7 | cout <<'Yes'<<endl;
| ^~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
9 | cout << 'No' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'r' was not decl... |
s089512962 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
cin >> r >> g >> b;
int a = 100*r + 10*g + b;
if(a % 4 ==0){
cout <<'Yes'<<endl;
}else{
cout << 'No' << endl;
} | a.cc:7:12: warning: multi-character character constant [-Wmultichar]
7 | cout <<'Yes'<<endl;
| ^~~~~
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
9 | cout << 'No' << endl;
| ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'r' was not decl... |
s631793154 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
cin >> r >> g>> b;
int a=100*r+10*g+b;
if(a%4==0){
cout<<”Yes”<<endl;
}else{cout<<”No”<<endl;}
}
| 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.cc:8:13: error: extended character ” is not valid in an identifier
8 | }else{cout<<”No”<<endl;}
| ^
a.cc:8:13: error:... |
s198579526 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
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... |
s666926592 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
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:6:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
6 | int a=100r+10g+b;
| ^~~
a.cc:8:7: error: extended character ” is not valid in an identifier
8 | cout<<”Yes”<<endl;
| ^
a.cc:8:7: error: extended character ” is not valid in an identifier
a.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.