submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s801128832 | p03693 | Java | public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int[] a = { 0, 0, 0, 0 };
int[] b = { 0, 0, 0, 0 };
int n = 0;
for (int i = 1; i < 4; i++) {
do {
do {
a[i] = stdIn.nextInt();
} while (a[i] < 0 && 10 < a[i]);
for (int j = 1; j <= i; j++) {
if (b[j] =... | Main.java:1: 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)
1 error
|
s161975654 | p03693 | Java | package main.java.tasks;
import java.util.Scanner;
import java.io.PrintWriter;
public class Gayle1_1 {
public void solve(int testNumber, Scanner in, PrintWriter out) {
String checkString = in.next();
for (int ii=0;ii<checkString.length();ii++) {
String chkchr = checkString.substring(ii... | Main.java:6: error: class Gayle1_1 is public, should be declared in a file named Gayle1_1.java
public class Gayle1_1 {
^
1 error
|
s609976752 | p03693 | C++ | #include<stdio.h>
int main(void)
{
int a;
scanf("%d",&a);
if(a%4=0){
printf("YES\n");
}
else{
printf("NO\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:13: error: lvalue required as left operand of assignment
6 | if(a%4=0){
| ~^~
|
s139799273 | p03693 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class A {
public static void main(String[] args) throws IOException {
FastScanner in = new FastScanner(System.in);
int n= in.nextInt();
int a= in.next... | Main.java:7: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s706770702 | p03693 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(void){
int r,g,b,num;
cin >> r;
cin >> g;
cin >> b;
num = g*10+b;
cout << (num%4==0) ? "YES" : "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:12:39: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
12 | cout << (num%4==0) ? "YES" : "NO" << endl;
| ~~~~~^~~~~~~
|
s026326755 | p03693 | C | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int ai[100],c[9];
int N,i,sum,max,min;
scanf("%d",&N);
for(i = 0;i < 9; i++) c[i] = 0;
for(i = 0;i < N; i++){
scanf("%d",&ai[i])
if((ai[i] / 400) < 8){
c[ai[i] / 400] = 1;
}else{
c[ai[9] / 400]++;
... | main.c: In function 'main':
main.c:12:43: error: expected ';' before 'if'
12 | scanf("%d",&ai[i])
| ^
| ;
13 | if((ai[i] / 400) < 8){
| ~~ ... |
s181432621 | p03693 | C | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(void){
int ai[100];
int N,i,max,min;
scanf("&d",&N);
for(i = 0;i < N; i++) scanf("&d",&ai[i]);
max = ai[0];
min = ai[0];
for(i = 0;i < N; i++){
if(max < ai[i]) max = ai[i];
if(mix > ai[i]) min = ai[i];
}
pri... | main.c: In function 'main':
main.c:15:28: error: 'mix' undeclared (first use in this function); did you mean 'min'?
15 | if(mix > ai[i]) min = ai[i];
| ^~~
| min
main.c:15:28: note: each undeclared identifier is reported only o... |
s723803695 | p03693 | C | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int ai[100];
int N,i,max,min;
scanf("&d",&N);
for(i = 0;i < N; i++) scanf("&d",&ai[i]);
max = ai[0];
min = ai[0];
for(i = 0;i < N; i++){
if(max < ai[i]) max = ai[i];
if(mix > ai[i]) min = ai[i];
}
printf(... | main.c: In function 'main':
main.c:15:28: error: 'mix' undeclared (first use in this function); did you mean 'min'?
15 | if(mix > ai[i]) min = ai[i];
| ^~~
| min
main.c:15:28: note: each undeclared identifier is reported only o... |
s001085925 | p03693 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
int r,g,b,total;
cin >> r >> g >> b;
r = r *100;
g = g*10;
sum = r+g+b;
if (4 % total == 0)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
system("pause");
return 0;
} | a.cc: In function 'int main()':
a.cc:16:9: error: 'sum' was not declared in this scope
16 | sum = r+g+b;
| ^~~
|
s347830340 | p03693 | C++ | num = raw_input().split()
a = num[0]
b = num[1] * 10 + num[2]
if (a % 2 == 0 and b % 4 == 0) or (a % 2 == 1 and b % 4 == 2):
print("YES")
else:
print("NO") | a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
1 | num = raw_input().split()
| ^~~
| enum
|
s909400498 | 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;
}
| a.cc: In function 'int main()':
a.cc:7:18: error: lvalue required as left operand of assignment
7 | if((r*100+g*10+b)%4=0)cout<<"YES"<<endl;
| ~~~~~~~~~~~~~~^~
|
s075217747 | p03693 | C | #include <stdio.h>
int main(){
int i,N,max,min,ans;
int a;
max = 0;
min = 1000;
ans = 0;
scanf( "%d", &N );
for( i = 0; i < N; i++){
scanf( "%d", &a );
if( a > max){
max =;
}
if( a < min ){
min = a;
}
}
... | main.c: In function 'main':
main.c:17:18: error: expected expression before ';' token
17 | max =;
| ^
|
s069947072 | p03693 | Java | import java.util.*;
public class RGBCards {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
// 整数の入力
int a = sc.nextInt();
// スペース区切りの整数の入力
int b = sc.nextInt();
int c = sc.nextInt();
if(((a*100+b*10+c) % 4) == 0){
Sys... | Main.java:2: error: class RGBCards is public, should be declared in a file named RGBCards.java
public class RGBCards {
^
1 error
|
s233759951 | p03693 | C++ | #include<iostream>
int main(){
int r,g,b;
cin >> r >> g >> b;
int sum;
sum = 100*r+10*g+b;
if(sum%4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> r >> g >> b;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s054351807 | p03693 | Java | public class Main {
public static void main(String[] args) {
System.out.println(new Main().run(args, System.in));
}
public String run(String[] args, InputStream in) {
String result = null;
try {
BufferedReader reader = new BufferedReader(new InputStreamReader... | Main.java:5: error: cannot find symbol
public String run(String[] args, InputStream in) {
^
symbol: class InputStream
location: class Main
Main.java:9: error: cannot find symbol
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
... |
s269514519 | p03693 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class main {
public static void main(String[] args) throws IOException{
// 読み込み
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
String[] temp;
line=br.readLine();
... | Main.java:6: error: class main is public, should be declared in a file named main.java
public class main {
^
1 error
|
s431716263 | p03693 | Java | class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int r = in.nextInt();
int g = in.nextInt();
int b = in.nextInt();
int rgb = 100*r+10*g+b;
if(rgb%4==0){
out.println("YES");
}else{
out.println("NO");
}
} | Main.java:14: error: reached end of file while parsing
}
^
1 error
|
s885207273 | p03693 | C | #include <stdio.h>
int main(void)
{
int r, g, b, A;
printf("Rの値\n");
scanf_s("%d", &r);
printf("Gの値\n");
scanf_s("%d", &g);
printf("Bの値\n");
scanf_s("%d", &b);
A = (r * 100 + g * 10 + b) % 4;
if (A == 0)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
return 0;
}
| main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | scanf_s("%d", &r);
| ^~~~~~~
| scanf
|
s539891092 | p03693 | C | #include <stdio.h>
int main(void)
{
int r, g, b;
scanf_s("%d", &r);
scanf_s("%d", &g);
scanf_s("%d", &b);
if ((r * 100 + g * 10 + b) % 4 == 0)
{
printf("YES\n");
}
else
{
printf("NO\n");
}
return 0;
}
| main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
6 | scanf_s("%d", &r);
| ^~~~~~~
| scanf
|
s724971482 | p03693 | C++ | #include<iostream>
using namespace std;
int main() {
int r, g, b,sum;
cin >> r >> g >> b;
sum = 100 * r + 10 * g + b;
if (sum % 4 == 0)
cout << "YES" << endl;
else
count << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:14:17: error: 'count' was not declared in this scope
14 | count << "NO" << endl;
| ^~~~~
|
s176008457 | p03693 | C++ | # -*- coding: utf-8 -*-
r, g, b = map(int,input().split())
a = g+b
answer = a % 4
if answer == 0:
print("YES")
else:
print("NO") | a.cc:1:3: error: invalid preprocessing directive #-
1 | # -*- coding: utf-8 -*-
| ^
a.cc:3:1: error: 'r' does not name a type
3 | r, g, b = map(int,input().split())
| ^
|
s669853817 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
typedef long long llong;
typedef pair<int, int> pii;
void solve() {
const int n = 3;
int res = 0;
for (int i = 0; i < n; i++) {
int val; cin >> val;
res = res * 10 + v... | a.cc: In function 'void solve()':
a.cc:25:18: error: expected primary-expression before '<<' token
25 | if (ans) << cout << "YES";
| ^~
|
s316526216 | p03693 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
static int r;
static int g;
static int b;
static int rgb;
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
Str... | Main.java:30: error: reached end of file while parsing
}
^
1 error
|
s845220710 | p03693 | C++ | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
int n;
vector<int> a;
void mainmain(){
for (int i = 0;i < 3; i++){
int n;
cin >> n;
a.push_back(n);
}
string str = to_string(a[1]) + to_string(a[2]);
int b = stoi... | /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
|
s620353581 | p03693 | C++ | #include <iostream>
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;
if(sum%4!=0)cout<<NO;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:19: error: 'YES' was not declared in this scope
7 | if(sum%4==0)cout<<YES;
| ^~~
a.cc:8:19: error: 'NO' was not declared in this scope
8 | if(sum%4!=0)cout<<NO;
| ^~
|
s852170942 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
cout << ((r * 100 + g * 10 + b) % 4 == 0) ? "YES" : "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:10:66: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
10 | cout << ((r * 100 + g * 10 + b) % 4 == 0) ? "YES" : "NO" << endl;
| ~~~~~^~~~... |
s883155127 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
cout << ((r * 100 + g * 10 + b) % 4 == 0) ? "YES" : "NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:10:66: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
10 | cout << ((r * 100 + g * 10 + b) % 4 == 0) ? "YES" : "NO" << endl;
| ~~~~~^~~~... |
s271090287 | p03693 | C | #include <stdio.h>
int main(void){
// Here your code !
int a,b,c,ans;
scanf("%d %d %d",&a,&b,&c);
ans=100*a+10*b+c;
if(ans%4==0){
printf("YES");
}else{
printf("NO")
}
}
| main.c: In function 'main':
main.c:10:21: error: expected ';' before '}' token
10 | printf("NO")
| ^
| ;
11 | }
| ~
|
s920367163 | p03693 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Test {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String s = new String(in.readLine());
s = s.replaceAll(" ", "");
... | Main.java:5: error: class Test is public, should be declared in a file named Test.java
public class Test {
^
1 error
|
s159242522 | p03693 | C++ |
int main(){
int N;
std::cin >> N;
int a[100];
for (int i = 0; i < N; ++i) {
std::cin >> a[i];
}
int col[13]{};
for (int i = 0; i < N; ++i) {
col[(a[i] / 400)] += 1;
}
int colcount = 0;
for (int i = 0; i < 8; ++i) {
colcount += (col[i] ? 1 : 0);
}
int colfree = 0;
for (int i = 8; i < 13; ++i... | a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
5 | std::cin >> N;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 |
a.cc:10:22: error: 'cin' is... |
s934771919 | p03693 | Java | import java.util.Scanner;
import java.util.Arrays;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a[] = new int[n];
Arrays.sort(a[]);
System.out.println(a[n-1] - a[0]);
}
} | Main.java:10: error: '.class' expected
Arrays.sort(a[]);
^
1 error
|
s374238747 | p03693 | C++ | #include<stdio.h>
#include<string.h>
int main(){
int no,i,left=0,right=0;
scanf("%d",&no);
getchar();
char s[200];
gets(s);
for(i=0;i<no;i++){
if(s[i]=='(') left++;
if(s[i]==')'){
if(left==0) right++;
else left--;
}
}
for(i=0;i<right;i++) p... | a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
8 | gets(s);
| ^~~~
| getw
|
s076336165 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
// Here your code !
int a,b,c;
cin >> a >> b >> c;
cout << (!((a*100+b*10+c)%4))?"YES":"NO" << endl;
}
| a.cc: In function 'int main()':
a.cc:7:46: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | cout << (!((a*100+b*10+c)%4))?"YES":"NO" << endl;
| ~~~~~^~~~~~~
|
s240149952 | p03693 | C++ | #include <iostream>
int main(int argc, char const *argv[]) {
int r,g,b
std::cin >> r >> g >> b;
r = 100 * r + 10 * g + b;
r %= 4;
if (r == 0) {
std::cout << "YES" << '\n';
}
else{
std::cout << "NO" << '\n';
}
return 0;
}
| a.cc: In function 'int main(int, const char**)':
a.cc:5:9: error: expected initializer before 'std'
5 | std::cin >> r >> g >> b;
| ^~~
a.cc:6:32: error: 'b' was not declared in this scope
6 | r = 100 * r + 10 * g + b;
| ^
|
s791866725 | 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;
printf("%s\n", num%4==0?"YES":"NO");
return 0;
}
| a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s940434366 | 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;
printf("%s\n", num%4==0?"YES":"NO");
return 0;
}
| a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
1 | #include <bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s639109912 | p03693 | Java | import java.util.Scanner;
public class MainA {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int r;
int g;
int b;
while(true) {
r = sc.nextInt();
g = sc.nextInt();
b = sc.nextInt();
if(r > 0 && r < 10 && g > 0 && g < 10 && b > 0 && b < 10) {
break;
}
}
... | Main.java:3: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
^
1 error
|
s322072099 | 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;
return 0; } | a.cc:7:36: warning: missing terminating " character
7 | cout << ((10*g+b)%4 == 0 ? "YES" : "NO) << endl;
| ^
a.cc:7:36: error: missing terminating " character
7 | cout << ((10*g+b)%4 == 0 ? "YES" : "NO) << endl;
| ^~~~~~~~~~~~~
a.... |
s477774967 | p03693 | Java | import java.util.Scanner;
public class Zadanie {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
char r = a.next().charAt(0);
char g = a.next().charAt(0);
char b = a.next().charAt(0);
String l =""+ r + g+ b ;
int w = Integer.valueOf(l);... | Main.java:3: error: class Zadanie is public, should be declared in a file named Zadanie.java
public class Zadanie {
^
1 error
|
s526801654 | p03693 | Java | import java.util.Scanner;
/**
* Created by Irka on 10.06.2017.
*/
public class a {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
char r = a.next().charAt(0);
char g = a.next().charAt(0);
char b = a.next().charAt(0);
String l =""+ r + g+ b ;... | Main.java:6: error: class a is public, should be declared in a file named a.java
public class a {
^
1 error
|
s955517085 | p03693 | Java | import java.util.Scanner;
/**
* Created by Irka on 10.06.2017.
*/
public class A {
public static void main(String[] args) {
Scanner a = new Scanner(System.in);
char r = a.next().charAt(0);
char g = a.next().charAt(0);
char b = a.next().charAt(0);
String l =""+ r + g+ b ;... | Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s440258066 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int r,g,b;
int main(){
cin>>r>>g>>b;
int a=r*100+g*10+b;
if(a%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:5:5: error: 'cin' was not declared in this scope
5 | cin>>r>>g>>b;
| ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
8 | cout<<"YES"<<endl;
|... |
s609479287 | p03693 | Java | import java.util.Scanner;
import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;
import static java.lang.Math.*;
class main implements Runnable{
static ArrayList <Integer> adj[];
static int co=0,f=0;
static void Check2(int n){
adj=new ArrayList[n+1];
for(int i=0;i<... | Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
|
s599649081 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if((a+b+c)%4==0) printf("YES\n);
else printf("NO\n");
} | a.cc:7:26: warning: missing terminating " character
7 | if((a+b+c)%4==0) printf("YES\n);
| ^
a.cc:7:26: error: missing terminating " character
7 | if((a+b+c)%4==0) printf("YES\n);
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:2: error: expected... |
s916215625 | p03693 | Java | import sun.security.mscapi.PRNG;
import java.io.*;
import java.util.*;
public class GG {
private static final int max = (int) 1e6 + 1;
private static int[] prime = new int[max];
public static void main(String args[]) throws IOException {
Reader in = new Reader();
PrintWriter out = new Prin... | Main.java:6: error: class GG is public, should be declared in a file named GG.java
public class GG {
^
Main.java:1: error: package sun.security.mscapi does not exist
import sun.security.mscapi.PRNG;
^
2 errors
|
s098076494 | p03693 | C++ | #include <stdio.h>
#include <stdlib.h>
int main(void){
char str[3];
int i;
scanf("%c %c %c",&str[0],&str[1],&str[2]);
srt[3] = "\0";
if(atoi(str)%4 == 0){
printf("YES");
}else{
printf("NO");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:3: error: 'srt' was not declared in this scope; did you mean 'str'?
10 | srt[3] = "\0";
| ^~~
| str
|
s064131611 | p03693 | C | #include <stdio.h>
#include <stdlib.h>
int main(void){
char str[3];
int i;
scanf("%c %c %c",&str[0],&str[1],&str[2]);
if(atoi(str)%4 == 0){
printf("YES");
}else{
printf("NO");
}
return 0;
| main.c: In function 'main':
main.c:17:3: error: expected declaration or statement at end of input
17 | return 0;
| ^~~~~~
|
s135450633 | p03693 | Java | public class Main {
public static void solveRGBCards() throws IOException {
int r;
int g;
int b;
String line;
String[] split;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
line = br.readLine();
split = line.split(" ");
r = Integer.parseInt(split[0]);
g = Integer.parseInt... | Main.java:2: error: cannot find symbol
public static void solveRGBCards() throws IOException {
^
symbol: class IOException
location: class Main
Main.java:8: error: cannot find symbol
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
^
symbo... |
s667851343 | p03693 | C++ | def main():
s = raw_input().split(" ")
s = int(s[0]*100) + int(s[1]*10) + int(s[2])
if s%4==0:
print("YES")
else:
print("NO")
if __name__ == "__main__":
main()
| a.cc:1:1: error: 'def' does not name a type
1 | def main():
| ^~~
|
s182755737 | p03693 | C++ | a = map(int, raw_input().split())
d = a[0] * 100 + a[1] * 10 * a[2]
if d % 4 == 0:
print "YES"
else:
print "NO" | a.cc:1:1: error: 'a' does not name a type
1 | a = map(int, raw_input().split())
| ^
|
s765086379 | p03693 | Java | public class A {
public static int main(String[] args) {
int number = Integer.parseInt(args[0])*100 + Integer.parseInt(args[1])*10 + Integer.parseInt(args[2]);
if((number % 4) == 0){
System.out.println("Yes");
}
else{
System.out.println("NO");
}
return 0;
}
} | Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s845764561 | p03693 | Java | public static void main(String[] args) {
int r = Integer.parseInt(args[0])*100;
int g = Integer.parseInt(args[1])*10;
int b = Integer.parseInt(args[2]);
int number = r + g + b;
if((number % 4) == 0){
System.out.println("Yes");
}
System.out.println("NO");
}
| Main.java:1: 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)
1 error
|
s082182201 | p03693 | Java | public class A {
public static void main(String[] args) {
int r = Integer.parseInt(args[0])*100;
int g = Integer.parseInt(args[1])*10;
int b = Integer.parseInt(args[2]);
int number = r + g + b;
if((number % 4) == 0){
System.out.println("Yes");
}
System.out.println("NO");
}
}
| Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
^
1 error
|
s912563105 | p03693 | C++ | #include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
scanf("%d %d %d",&r,&g,&b);
int a=(10*g)+b;
if(a%4==0)
printf("YES\n");
else printf("NO\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:8:24: error: 'r' was not declared in this scope
8 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:8:27: error: 'g' was not declared in this scope
8 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:8:30: error: 'b' was not d... |
s214860915 | p03693 | C++ | #include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{
scanf("%d %d %d",&r,&g,&b);
int a=(10*g)+b;
if(a%4==0)
printf("YES\n");
else printf("NO\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:7:20: error: 'r' was not declared in this scope
7 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:7:23: error: 'g' was not declared in this scope
7 | scanf("%d %d %d",&r,&g,&b);
| ^
a.cc:7:26: error: 'b' was not declared in this ... |
s479499740 | p03693 | C++ | #include<iostream>
#include<string>
using namespace std;
int main()
{
int r;
int g;
int b;
cin >> r;
cin >> g;
cin >> b;
while ((g*10+b*1)%== 0) {
cout << "YES" << endl;
}
while ((g * 10 + b * 1) %!=0) {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:15:28: error: expected primary-expression before '=' token
15 | while ((g*10+b*1)%== 0) {
| ^
a.cc:18:34: error: expected primary-expression before '!=' token
18 | while ((g * 10 + b * 1) %!=0) {
| ... |
s777328266 | p03693 | C++ | #include<bits/stdc++.h>
#include<unordered_map>
/*
*▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* ▀▀ ▀▀▀▀▀▀ ▀ ▀▀▀▀▀▀ ▀ ▀
* ▀ ▀ ▀ ▀ ▀ ▀ ▀
* ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀ ▀
* ▀ ▀▀▀▀ ▀ ▀ ▀ ▀ ▀
*▀ ▀ ▀ ▀ ... | a.cc: In function 'int main()':
a.cc:20:12: error: expected primary-expression before 'long'
20 | #define ll long long
| ^~~~
a.cc:91:23: note: in expansion of macro 'll'
91 | cout << max(z,ll(1)) << " " << z + dif;
| ^~
|
s481209423 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
#define INF 0x3f3f3f3f
typedef long long ll;
const int N = 310;
#define FI first
#define SE second
typedef pair<int, int>pii;
char num[N];
bool vis[N];
int main()
int n;
while (~scanf("%d%s", &n, num))
{
memset(vis, 0, sizeof(vis));
s... | a.cc:14:4: error: expected initializer before 'int'
14 | int n;
| ^~~
a.cc:15:4: error: expected unqualified-id before 'while'
15 | while (~scanf("%d%s", &n, num))
| ^~~~~
a.cc:52:4: error: expected unqualified-id before 'return'
52 | return 0;
| ^~~~~~
a.cc:54:1: error: exp... |
s462784615 | p03693 | C++ | #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int N;
cin >> N;
int t = N -1;
int a[t];
for(int c = 0; c < N;c++){
cin >> a[c];
}
sort(0,t);
cout << a[t] - a[0] << "\n";
return 0;
} | In file included from /usr/include/c++/14/algorithm:61,
from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]':
/usr/inclu... |
s531952332 | p03693 | C++ | #include<iostream>
#include<math.h>
using namespace std;
int main(void){
int num[3];
cin >> num[2] >> num[1] >> num[0];
int sum = 0;
for(int i = 2; i >= 0;i--;){
sum += num[i] * pow(10,i);
}
if(sum % 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << e... | a.cc: In function 'int main()':
a.cc:13:30: error: expected ')' before ';' token
13 | for(int i = 2; i >= 0;i--;){
| ~ ^
| )
a.cc:13:31: error: expected primary-expression before ')' token
13 | for(int i = 2; i >= 0;i--;){
| ... |
s187978204 | p03693 | C++ | int main() {
int a, b, c;
cin >> a >> b >> c;
cout << (((a * 100 + b * 10 + c) % 4 == 0) ? "YES" : "NO" )<< endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
4 | cout << (((a * 100 + b * 10 + c) % 4 == 0) ? "YES" : "NO" )<< endl;
| ^~~~
a.cc:4:71: error: ... |
s527714262 | p03693 | C++ | #include<iostream>
#include<fstream>
#include<stdio.h>
#include<string>
#include<vector>
#include<map>
#include<math.h>
#include<algorithm>
#include<iomanip>
#include<set>
using namespace std;
int main() {
int a, b,c;
cin >> a >> b >> c;
cout << (a*100+b*10+c)%4 == 0 ? "YES" : "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:18:34: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int')
18 | cout << (a*100+b*10+c)%4 == 0 ? "YES" : "NO" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~
| | |
| | ... |
s668733926 | p03693 | C++ | #include <iostream>
using namespace std;
int r,g,b,ans;
int main() {
cin>>r>>g>>b;
ans=(100*r+10*g+b)%4;
if(ans==0)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
#include <iostream>
using namespace std;
int r,g,b,ans;
int main() {
cin>>r>>g>>b;
ans=(100*r+10*g+b)%4;
if(ans==0)cout<<"YES"<<endl;
else cou... | a.cc:13:5: error: redefinition of 'int r'
13 | int r,g,b,ans;
| ^
a.cc:3:5: note: 'int r' previously declared here
3 | int r,g,b,ans;
| ^
a.cc:13:7: error: redefinition of 'int g'
13 | int r,g,b,ans;
| ^
a.cc:3:7: note: 'int g' previously declared here
3 | int r,g,b,ans;
... |
s972870572 | p03693 | C++ | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] ss0 = br.re... | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.BufferedReader;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.io.InputStreamReader;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available wit... |
s005527212 | p03693 | C++ | {-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
import Control.Applicative
import Control.Monad
import Control.Arrow
import Data.List
import Data.Maybe
import Data.Char
import qualified Data.ByteString.Char8 as B
import Text.Printf
readInt = ( readLn :: IO Int )
readInts = map ( read :: String -> I... | a.cc:1:3: error: stray '#' in program
1 | {-# LANGUAGE ScopedTypeVariables #-}
| ^
a.cc:1:34: error: stray '#' in program
1 | {-# LANGUAGE ScopedTypeVariables #-}
| ^
a.cc:2:3: error: stray '#' in program
2 | {-# LANGUAGE BangPatterns #-}
| ^
a.cc:2:27:... |
s074755044 | p03693 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class pRGBCards {
public static void solveRGBCards() throws IOException {
int r;
int g;
int b;
String line;
String[] split;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
line =... | Main.java:5: error: class pRGBCards is public, should be declared in a file named pRGBCards.java
public class pRGBCards {
^
1 error
|
s345303594 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>b>>c;
int z=a*100+b*10+c;
if(z%4==0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:15: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
6 | cin>>a>b>>c;
| ~~~~~~^~~~~
| | |
| | int
| std::basi... |
s167018231 | p03693 | C | #include<stdio.h>
int main(void){
int r=0,g=0,b=0;
int num;
scanf("%d %d %d",&r,&g,&b);
num = 100*r + 10*g + b
if(num % 4 == 0) printf("YES");
else printf("NO");
return 0;
} | main.c: In function 'main':
main.c:7:31: error: expected ';' before 'if'
7 | num = 100*r + 10*g + b
| ^
| ;
8 | if(num % 4 == 0) printf("YES");
| ~~
main.c:9:9: error: 'else' without... |
s226901580 | p03693 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
int total = 100 * r + 10 * g + b;
if (total % 4 == 0) {
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:17:2: error: expected '}' at end of input
17 | }
| ^
a.cc:8:12: note: to match this '{'
8 | int main() {
| ^
|
s178217024 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int a[10];
int main()
{
int a,b,c;
int sum=0;
for(int i=0;i<3;i++)
{
scanf("%d",&a[i]);
sum=sum*10+a[i];
}
if(sum%4==0)
printf("YES\n");
else
printf("NO\n");
return 0;
} | a.cc: In function 'int main()':
a.cc:11:30: error: invalid types 'int[int]' for array subscript
11 | scanf("%d",&a[i]);
| ^
a.cc:12:29: error: invalid types 'int[int]' for array subscript
12 | sum=sum*10+a[i];
| ^... |
s133827022 | p03693 | C++ | #include <bits/stdc++.h>
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define SORT(v, n) sort(v, v+n);
#define SORTR(v,n) sort(v, v+n, greater<int>());
// #define int long long // %d=>%lld
#define pb push_back
#define INF 100000000
using namespace std;
typedef long lo... | a.cc: In function 'int main()':
a.cc:32:23: error: expected ';' before '}' token
32 | printf("NO\n")
| ^
| ;
33 | }
| ~
|
s317967518 | p03693 | C | #include<stdio.h>
int main(void){
int r=0,g=0,b=0;
int num;
scanf("%d %d %d",r,g,b);
num = 100*r + 10*g + b
if(num % 4 == 0) printf("YES");
else printf("NO");
return 0;
} | main.c: In function 'main':
main.c:7:31: error: expected ';' before 'if'
7 | num = 100*r + 10*g + b
| ^
| ;
8 | if(num % 4 == 0) printf("YES");
| ~~
main.c:9:9: error: 'else' without... |
s808793774 | p03693 | C++ | #include<bits\stdc++.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int sum=a*100+10*b+c;
if(sum%4==0)
printf("YES\n");
else
printf("NO\n");
} | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s932084386 | p03693 | C | #include<stdio.h>
#include<string.h>
int main(void){
char a,b,c;
int d,e,f;
scanf("%c %c %c",&a,&b,&c);
d = a - '0';
e = b - '0';
f = c - '0';
if((a*100+b*#include<stdio.h>
#include<string.h>
int main(void){
char a,b,c;
int d,e,f;
scanf("%c %c %c",&a,&b,&c);
d = a - '0';
e = b - '0';
f = c - '0';
... | main.c: In function 'main':
main.c:15:21: error: stray '#' in program
15 | if((a*100+b*#include<stdio.h>
| ^
main.c:15:22: error: 'include' undeclared (first use in this function)
15 | if((a*100+b*#include<stdio.h>
| ^~~~~~~
main.c:15:22: note: ... |
s670044112 | p03693 | C++ | #include <cstdio>
using namespace std;
int main(){
int r, g, b;
scanf_s("%d", &r);
scanf_s("%d", &g);
scanf_s("%d", &b);
if ((10 * g + b) % 4 == 0) {
printf("YES\n");
}
else
{
printf("NO\n");
}
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
7 | scanf_s("%d", &r);
| ^~~~~~~
| scanf
|
s723010604 | p03693 | C++ | #include <iostream>
int r,g,b;
int main() {
std::cin>>r>>g>>b;
if((r*100+g*10+b)%4==0)#include <iostream>
int r,g,b;
int main() {
std::cin>>r>>g>>b;
if((r*100+g*10+b)%4==0)
std::cout<<"YES"<<std::endl;
else
std::cout<<"NO"<<std::endl;
return 0;
}
std::cout<<"YES"... | a.cc:9:28: error: stray '#' in program
9 | if((r*100+g*10+b)%4==0)#include <iostream>
| ^
a.cc: In function 'int main()':
a.cc:9:29: error: 'include' was not declared in this scope
9 | if((r*100+g*10+b)%4==0)#include <iostream>
| ^~~~~~~... |
s059036127 | p03693 | C++ | #include <climits>
#include <cstring>
#include <cmath>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <functional>
#define fi first
#define se second
#define FO(x, n) for (int x = 0; x < n; ++x)
#define FOR(x, a, b) for (int x = a; x ... | a.cc: In function 'int main()':
a.cc:34:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
34 | return;
| ^~~~~~
|
s638950157 | p03693 | C++ | #include<iostream>
#include<stdio.h>
int main()
{
int a,b,c;
cin>>a>>b>>c;
int num=a*100+b*10+c;
if(num%4==0)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s621033839 | p03693 | C++ | #include<iostream>
#include<string>
#include<cstdlib>
#include<algorithm>
#include<vector>
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;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:31: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
14 | cout << "YES" < endl;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
... |
s158505164 | 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:4:5: error: cannot declare '::main' to be a global variable
4 | int main
| ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
6 | int r,g,b;
| ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
5 | {
| ^
a.cc:7:3: error: 'cin' does not... |
s164294913 | p03693 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(void){
char a, b, c;
int n;
cin >> a >> b >> c;
string s="";
s += a;
s += b;
s += c;
n = atoi(s);
if(n%4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
13 | n = atoi(s);
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/... |
s608355001 | p03693 | C++ | /**
* @author Finn Lidbetter
*/
import java.util.*;
import java.io.*;
import java.awt.geom.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String[] s= br... | a.cc:4:1: error: 'import' does not name a type
4 | import java.util.*;
| ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
5 | import java.io.*;
| ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: ... |
s566701630 | p03693 | C++ | #include <algorithm>
#include <stdint.h>
using ll = long long;
int main() {
int R, G, B, x;
scanf("%d %d %d", &R, &G, &B);
x = R * 100 + G * 10 + B;
printf("%s\n", (x % 4 ? "NO" : "YES"));
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf' was not declared in this scope
7 | scanf("%d %d %d", &R, &G, &B);
| ^~~~~
a.cc:9:9: error: 'printf' was not declared in this scope
9 | printf("%s\n", (x % 4 ? "NO" : "YES"));
| ^~~~~~
a.cc:3:1: note: 'printf' is... |
s190882154 | p03693 | C++ | #include<iostream>
#include<string>
#include<cstdlib>
#include<algorithm>
#include<vector>
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;
return 0;
} | a.cc: In function 'int main()':
a.cc:14:31: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
14 | cout << "YES" < endl;
| ~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
... |
s570994994 | p03693 | C++ | #include <stdio.h>
int main(void) {
int a, b, c;
scanf("%i %i %i", &a, &b, &c);
puts((a*100+b*10+c) % 4 == 0 ? "YES" : "NO");
return 0
} | a.cc: In function 'int main()':
a.cc:7:11: error: expected ';' before '}' token
7 | return 0
| ^
| ;
8 | }
| ~
|
s621510897 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
inline long long getnum()
{
long long now=0;long long fh=1;char ch=getchar();
while(ch<'0' || ch>'9'){if(ch=='-')fh=-1;ch=getchar();}
while(ch>='0' && ch<='9'){now=(now<<3)+(now<<1)+ch-'0';ch=getchar();}
return now*fh;
}
int main()
{
int x=getnum()*100;
x... | a.cc: In function 'int main()':
a.cc:15:50: error: expected ';' before 'return'
15 | if (x%4==0) printf("YES\n");else printf("NO\n")
| ^
| ;
16 | return 0;
| ~~~~~~ ... |
s457973749 | p03693 | C++ | #include <iostream>
int main(){
int a,b,c;
cin>>a>>b>>c;
if((b*10+c)%4==0){
cout<<"YES";
}else cout<<"NO";
} | a.cc: In function 'int main()':
a.cc:4:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | cin>>a>>b>>c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to st... |
s558775168 | p03693 | C++ | #include <iostream>
using namespace std;
int main(void){
// Here your code !
int r,g,b;
cin >> r >> g >> b;
int total = t * 100 + g * 10 + b;
if(total % 4 == 0){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 't' was not declared in this scope
7 | int total = t * 100 + g * 10 + b;
| ^
|
s839029867 | p03693 | C++ | import java.util.*;
/**
* Created by santa on 2016/10/16.
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int ans = a * 100 + b * ... | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
8 | public class Main {
| ^~~~~~
|
s179546297 | p03693 | C++ | #include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include ... | a.cc: In function 'int main()':
a.cc:43:11: error: expected primary-expression before ')' token
43 | if(d%4==){
| ^
|
s904772154 | p03693 | C | #include<cstdio>
#include<deque>
using namespace std;
#define EPS 1e-8
typedef long long ll;
deque<int>q;
int n;
ll m,sum[500010],f[500010];
//借鉴了:http://www.cnblogs.com/ka200812/archive/2012/08/03/2621345.html
ll getDP(int i,int j){
return f[j]+m+(sum[i]-sum[j])*(sum[i]-sum[j]);
}
ll getUP(int j,int k){//yj-yk,即斜率... | main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s335301394 | p03693 | C++ | #include <cstdio>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <vector>
#include <iostream.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int ... | a.cc:7:10: fatal error: iostream.h: No such file or directory
7 | #include <iostream.h>
| ^~~~~~~~~~~~
compilation terminated.
|
s465988491 | p03693 | C++ | #include <bits/stdc++/h>
using namespace std;
typedef long long ll;
int main() {
int r, g, b;
cin >> r>>g >>b;
int x=10*g+b;
if(x%4==0) {
cout << "YES\n";
}
else cout << "NO\n";
return 0;
} | a.cc:1:10: fatal error: bits/stdc++/h: No such file or directory
1 | #include <bits/stdc++/h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s086995399 | p03693 | C++ | #include<string>
#include<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<map>
using namespace std;
typedef long long int llint;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_b... | a.cc: In function 'int main()':
a.cc:29:36: error: cannot resolve overloaded function 'max' based on conversion to type 'int'
29 | int a,b,i,j,ans=0,gen,bmax=max,bmin,q,w,n,m;
| ^~~
|
s885299752 | 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:10:13: error: expected primary-expression before '<' token
10 | cout << < "YES" << endl;
| ^
a.cc:10:21: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
10 | cout << < "YES" << endl;... |
s580802609 | p03694 | C++ | #include<iostream>
using namespace std;
int main(){
int n; cin >> n;
int mn = INT_MAx , mx = INT_MIN;
while(n--){
int x; cin >> x;
mn = min(x,mn) , mx = max(mx , x);
}
cout << mx - mn;
} | a.cc: In function 'int main()':
a.cc:6:12: error: 'INT_MAx' was not declared in this scope
6 | int mn = INT_MAx , mx = INT_MIN;
| ^~~~~~~
a.cc:9:21: error: 'mx' was not declared in this scope; did you mean 'x'?
9 | mn = min(x,mn) , mx = max(mx , x);
| ^~
| ... |
s877969413 | p03694 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
int main(){
int n;
cin >> n;
vector<int> a(n);
rep(i,n) cin >> a[i];
a.sort(a.begin(), a.end());
cout << a[n-1]-a[0] << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:5: error: 'class std::vector<int>' has no member named 'sort'
10 | a.sort(a.begin(), a.end());
| ^~~~
|
s547284220 | p03694 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
vector<int> a(n);
rep(i,n) cin >> a[i];
a.sort(a.begin(), a.end());
cout << a[n-1]-a[0] << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
8 | rep(i,n) cin >> a[i];
| ^
a.cc:8:3: error: 'rep' was not declared in this scope
8 | rep(i,n) cin >> a[i];
| ^~~
a.cc:9:5: error: 'class std::vector<int>' has no member named 'sort'
9 | a.sort(a.... |
s744683886 | p03694 | Java | import java.util.*; import java.io.*; import java.math.*;
public class Main{
//Don't have to see. start------------------------------------------
static class InputIterator{
ArrayList<String> inputLine = new ArrayList<String>(1024);
int index = 0; int max; String read;
InputIterator(){
BufferedReader br = ne... | Main.java:75: error: ';' expected
myout(list.get(N - 1) - list.get(0))
^
1 error
|
s952642382 | p03694 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0)
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define repd(i, a, b) for (int i = a; i >= (b); --i)
#define all(x) (x).begin(), (x).end()
#... | a.cc: In function 'int main()':
a.cc:23:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'})
23 | cout >> a[n - 1] - a[0] << endl;
| ~~~~ ^~
| |
| st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.