submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s962850168 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
long a[3];
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
if(a[1]-a[0]==[2]-a[1]) cout<<"YES\n";
else cout<<"NO\n";
// your code goes here
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'sort' was not declared in this scope; did you mean 'short'?
7 | sort(a,a+3);
| ^~~~
| short
a.cc:8:24: error: expected identifier before numeric constant
8 | if(a[1]-a[0]==[2]-a[1]) cout<<"YES\n";
| ... |
s583217582 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
int main()
{
cin >> odd >> even;
int e, o;
e = even.size();
o = odd.size();
for(int i = 0; i < e + o; i++)
{
if(i % 2 == 0){
cout << odd[i / 2];
}
else{
cout << even[(i - 1) / 2];
}
return 0; }
} | a.cc: In function 'int main()':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
9 | int main()
| ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
9 | int main()
| ^~
| --
a.cc:9:9: note: or replace... |
s491717684 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
int main()
cin >> odd >> even;
int e, o;
e = even.size();
o = odd.size();
for(int i = 0; i < e + o; i++)
{
if(i % 2 == 0){
cout << odd[i / 2];
}
else{
cout << even[(i - 1) / 2];
}
}
return 0;
| a.cc: In function 'int main()':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
9 | int main()
| ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
9 | int main()
| ^~
| --
a.cc:9:9: note: or replace... |
s529021527 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
string even, odd;
int main()
{
cin >> odd >> even;
int e, o;
e = even.size();
o = odd.size();
for(int i = 0; i < e + o; i++)
{
if(i % 2 == 0){
cout << odd[i / 2];
}
else{
cout << even[(i - 1) / 2];
}
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:1: error: 'string' was not declared in this scope
7 | string even, odd;
| ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
1 | #include <stdio.h>
+++ |+#include <string>
2 | using names... |
s820452860 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main(){
cin >> odd >> even;
int e, o;
a = even.size();
b = odd.size();
for(int a = 0; a < b + a; a++){
if(a % 2 == 0){
cout << odd[i / 2];
}
else{
cout << even[(a - 1) / 2];
}
}
return 0
} | a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
5 | cin >> odd >> even;
| ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using na... |
s135662337 | p03759 | C++ | #include <stdio.h>
using namespace std;
{
int main(){
cin >> odd >> even;
int e, o;
a = even.size();
b = odd.size();
for(int a = 0; a < b + a; a++){
if(a % 2 == 0){
cout << odd[i / 2];
}
else{
cout << even[(a - 1) / 2];
}
}
return 0
} | a.cc:3:1: error: expected unqualified-id before '{' token
3 | {
| ^
|
s446083270 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(b-a=c-b)
{
printf("YES\n");
}
else{
printf("NO\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(b-a=c-b)
| ~^~
|
s226989712 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(b-a=c-b)
{
printf("YES\n");
}
else{
printf("NO\n");
}
return0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(b-a=c-b)
| ~^~
a.cc:15:9: error: 'return0' was not declared in this scope
15 | return0;
| ^~~~~~~
|
s476809479 | p03759 | C++ | #include <stdio.h>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(b-a=c-b)
{
printf("YES\n");
}
{else
printf("NO\n");
}
return0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(b-a=c-b)
| ~^~
a.cc:12:10: error: 'else' without a previous 'if'
12 | {else
| ^~~~
a.cc:15:9: error: 'return0' was not declared in this scope
15 | retu... |
s765136398 | p03759 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a-b=b-c)
{
printf("YES\n");
}
{else
printf("NO\n");}
return0;
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(a-b=b-c)
| ~^~
a.cc:12:10: error: 'else' without a previous 'if'
12 | {else
| ^~~~
a.cc:14:9: error: 'return0' was not declared in this scope
14 | retu... |
s551648616 | p03759 | C++ | #include <iostream>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a-b=b-c)
{
printf("YES\n");
}
{else
printf("NO\n");}
} | a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
8 | if(a-b=b-c)
| ~^~
a.cc:12:10: error: 'else' without a previous 'if'
12 | {else
| ^~~~
|
s243276961 | p03759 | C++ | #include <iostream>
using namespace std;
int main()
{
if(a-b=b-c)
yes
else
no
} | a.cc: In function 'int main()':
a.cc:6:12: error: 'a' was not declared in this scope
6 | if(a-b=b-c)
| ^
a.cc:6:14: error: 'b' was not declared in this scope
6 | if(a-b=b-c)
| ^
a.cc:6:18: error: 'c' was not declared in this scope
6 | if(a-b=b-c)
... |
s361865530 | p03759 | C++ | a,b,c = gets.split.map{|n| n.to_i}
puts (b-a === c-b) ? 'YES' : 'NO'
| a.cc:3:22: warning: multi-character character constant [-Wmultichar]
3 | puts (b-a === c-b) ? 'YES' : 'NO'
| ^~~~~
a.cc:3:30: warning: multi-character character constant [-Wmultichar]
3 | puts (b-a === c-b) ? 'YES' : 'NO'
| ^~~~
a.cc:1:1: error: 'a' ... |
s706138093 | p03759 | C++ | #include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if (b - a == c - b){
cout << "YES" << endl;
}
else cout << "NO" << endl;
return (0);
} | a.cc:10:13: error: extended character is not valid in an identifier
10 | cout << "YES" << endl;
| ^
a.cc: In function 'int main()':
a.cc:10:13: error: unable to find string literal operator 'operator""\U00003000' with 'const char [4]', 'long unsigned int' arguments
10 | cout << "YES" <... |
s549447510 | p03759 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - b)
cout << "YES" << endl;
else
cout << "NO" << endl;
return = 0;
}; | a.cc: In function 'int main()':
a.cc:15:10: error: expected primary-expression before '=' token
15 | return = 0;
| ^
|
s960992785 | p03759 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - b)
cout >> "YES" >> endl;
else
cout >> "NO" >> endl;
return = 0;
}; | a.cc: In function 'int main()':
a.cc:10:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
10 | cout >> "YES" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::b... |
s015693204 | p03759 | C++ | #include <iostream>
#include <string>
using namespace std;
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - b)
cout >> "YES" >> endl;
else
cout >> "NO" >> endl;
| a.cc:7:1: error: 'cin' does not name a type
7 | cin >> a >> b >> c;
| ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
8 | if(b - a == c - b)
| ^~
a.cc:11:1: error: expected unqualified-id before 'else'
11 | else
| ^~~~
|
s301700265 | p03759 | C++ | #include <iostream>
#include <string>
using namespace std;
int main(){
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - b)
cout >> "YES" >> endl;
else
cout >> "NO" >> endl;
};
| a.cc: In function 'int main()':
a.cc:9:10: 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 {aka std::ba... |
s098089348 | p03759 | C++ | #include <iostream>
#include <string>
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - b)
cout >> "YES" >> endl;
else
cout >> "NO" >> endl;
| a.cc:5:1: error: 'cin' does not name a type
5 | cin >> a >> b >> c;
| ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
6 | if(b - a == c - b)
| ^~
a.cc:9:1: error: expected unqualified-id before 'else'
9 | else
| ^~~~
|
s909972083 | p03759 | C++ | #include <iostream>
#include <string>
int a, b, c;
cin << a << b << c;
if(b - a == c - b){
cout >> "YES" >> endl;
}
else{
cout >> "NO" >> endl;
}
| a.cc:5:1: error: 'cin' does not name a type
5 | cin << a << b << c;
| ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
6 | if(b - a == c - b){
| ^~
a.cc:9:1: error: expected unqualified-id before 'else'
9 | else{
| ^~~~
|
s479051484 | p03759 | Java | package gaja;
import java.util.Scanner;
public class Cihiro33
{
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(B-A == C-B){
System.out.print("Yes");
} else
{
System.out.print("No");
// TODO 自動生成されたメソッ... | Main.java:5: error: class Cihiro33 is public, should be declared in a file named Cihiro33.java
public class Cihiro33
^
1 error
|
s470356968 | p03759 | C++ |
1.#include<stdio.h>
2.int main(void){
3.
4.int a,b,c,d,e;
5.scanf("%d",&a);
6.scanf("%d",&b);
7.scanf("%d",&c);
8.
9.d=b-a; e=c-b;
10.
11.if(d==e){
12.printf("YES\n");
13.}else{
14.printf("NO\n");
15.}
16.
17.return 0;
18.}
19.
| a.cc:2:3: error: stray '#' in program
2 | 1.#include<stdio.h>
| ^
a.cc:2:1: error: expected unqualified-id before numeric constant
2 | 1.#include<stdio.h>
| ^~
a.cc:20:1: error: expected unqualified-id before numeric constant
20 | 19.
| ^~~
|
s505405498 | p03759 | C++ | #include<stdio.h>
int main(void){
double a,b,c,d,e;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
d=b-a; e=c-b;
if(d==e){
printf("YES\n");
}else{
printd("NO\n");
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:14:1: error: 'printd' was not declared in this scope; did you mean 'printf'?
14 | printd("NO\n");
| ^~~~~~
| printf
|
s047889391 | p03759 | C++ | #include <iostream>
using namespace std ;
int main () {
string E, O;
cin >> E >> O;
for (int i=0; i < E. size () - 1 ; i++) {
cout << E[i];
cout << O[i];
}
cout << E[E.size() - 1]
if(E.size() == O. size () ) cout << O[O.size() - 1];
return 0;
} | a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before 'if'
10 | cout << E[E.size() - 1]
| ^
| ;
11 | if(E.size() == O. size () ) cout << O[O.size() - 1];
| ~~
|
s557213673 | p03759 | C++ | int main(){
return;
} | a.cc: In function 'int main()':
a.cc:2:6: error: return-statement with no value, in function returning 'int' [-fpermissive]
2 | return;
| ^~~~~~
|
s032175334 | p03759 | C++ | #include < iostream >
using namespace std ;
int main () {
int a, b, c;
cin >> a >> b >> c;
cout << ( b-a == c-b ? "YES " : "NO" ) << endl ;
} | a.cc:1:10: fatal error: iostream : No such file or directory
1 | #include < iostream >
| ^~~~~~~~~~~~
compilation terminated.
|
s625941424 | p03759 | C++ | #include <boost/lexical_cast.hpp>
#include <iostream>
#include <string>
#include <typeinfo>
int main()
{
const std::string str;
std::cin >> str;
long a = boost::lexical_cast<int>(str[0]);
long b = boost::lexical_cast<int>(str[2]);
long c = boost::lexical_cast<int>(str[4]);
return b - a == c - a... | a.cc:1:10: fatal error: boost/lexical_cast.hpp: No such file or directory
1 | #include <boost/lexical_cast.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
|
s573578407 | p03759 | C++ | a, b, c = map(int, raw_input().split())
print 'YES' if b - a = c - b else 'NO' | a.cc:2:7: warning: multi-character character constant [-Wmultichar]
2 | print 'YES' if b - a = c - b else 'NO'
| ^~~~~
a.cc:2:35: warning: multi-character character constant [-Wmultichar]
2 | print 'YES' if b - a = c - b else 'NO'
| ^~~~
a.cc:1:1: error: 'a' d... |
s702791868 | p03759 | C | #include<stdio.h>
int main()
{
int a, b, c;
scanf_s("%d", &a);
scanf_s("%d", &b);
scanf_s("%d", &c);
if (b-a == c-b) { printf("YES"); }
else { printf("NO"); }
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%d", &a);
| ^~~~~~~
| scanf
|
s324575230 | p03759 | C | int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (b-a == c-b) { printf("YES"); }
else { printf("NO"); } | main.c:2:15: error: expected declaration specifiers or '...' before string constant
2 | scanf("%d", &a);
| ^~~~
main.c:2:21: error: expected declaration specifiers or '...' before '&' token
2 | scanf("%d", &a);
| ^
main.c:3:15: error: expected declar... |
s216828895 | p03759 | C | #include<stdio.h>
int main()
{
int a, b, c;
scanf_s("%d", &a);
scanf_s("%d", &b);
scanf_s("%d", &c);
if (b-a == c-b) { printf("YES"); }
else { printf("NO"); }
return 0;
} | main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
5 | scanf_s("%d", &a);
| ^~~~~~~
| scanf
|
s885473567 | p03759 | C | #include <stdio.h>
int main()
{
int a, b, c, d;
scanf_s("%d", &a);
scanf_s("%d", &b);
scanf_s("%d", &c);
d = 2 * b -(a + c);
if (d == 0) { printf("YES"); }
else { printf("NO"); }
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", &a);
| ^~~~~~~
| scanf
|
s275749394 | p03759 | C++ | #include "stdafx.h"
int main()
{
int a, b, c, d;
scanf_s("%d", &a);
scanf_s("%d", &b);
scanf_s("%d", &c);
d = 2 * b -(a + c);
if (d == 0) { printf("YES"); }
else { printf("NO"); }
return 0;
} | a.cc:1:10: fatal error: stdafx.h: No such file or directory
1 | #include "stdafx.h"
| ^~~~~~~~~~
compilation terminated.
|
s070980723 | p03759 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (b - a == c - b) {
System.out.println("YES");
} else {
... | Main.java:13: error: cannot find symbol
System.out.println((a+b+c) + " " + s);
^
symbol: variable s
location: class Main
1 error
|
s317944348 | p03759 | Java | import java.util;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (b - a == c - b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
| Main.java:1: error: cannot find symbol
import java.util;
^
symbol: class util
location: package java
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner... |
s263601881 | p03759 | C | #include<stdio.h>
void main(){
int a,b,c,jd1,jd2;
scanf("%d %d %d", &a, &b, &c);
if(a<1 || a>101 || b<1 || b>101 || c<1 || c>101) {
exit(0);
}
jd1 = b - a; jd2 = c - b;
if(jd1 == jd2){
puts("YES");
} else {
puts("NO");
}
return 0;
} | main.c: In function 'main':
main.c:9:17: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
9 | exit(0);
| ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
1 | #include<stdio.h>
+++ |+#include <stdlib.h>
2 | ... |
s115833799 | p03759 | C++ | #include<stdio.h>
int main(){
int a,b,c,jd1,jd2;
scanf("%d %d %d", &a, &b, &c);
if(a<1 || a>101 || b<1 || b>101 || c<1 || c>101) exit(0);
jd1 = b - a; jd2 = c - b;
if(jd1 == jd2){
puts("YES");
} else {
puts("NO");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:58: error: 'exit' was not declared in this scope
8 | if(a<1 || a>101 || b<1 || b>101 || c<1 || c>101) exit(0);
| ^~~~
a.cc:2:1: note: 'exit' is defined in header '<cstdlib>'; this is probably fixable by add... |
s838464466 | p03759 | C++ | import java.lang.*;
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws java.lang.Exception {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
InputReader in = new InputReader(inputStream);
PrintWriter out = new PrintWriter(out... | a.cc:1:1: error: 'import' does not name a type
1 | import java.lang.*;
| ^~~~~~
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.*;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: ... |
s137874904 | p03759 | C++ | if a-b=c-b:
print("YES")
else:
print("NO") | a.cc:1:1: error: expected unqualified-id before 'if'
1 | if a-b=c-b:
| ^~
|
s247046606 | p03759 | C++ | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b, c = map(int, input().split())
if a-b == b-c :
print("YES")
else:
print("NO") | a.cc:1:3: error: invalid preprocessing directive #-
1 | # -*- coding: utf-8 -*-
| ^
a.cc:2:3: error: invalid preprocessing directive #\U000030b9\U000030da\U000030fc\U000030b9\U0000533a\U00005207\U0000308a\U0000306e\U00006574\U00006570\U0000306e\U00005165\U0000529b
2 | # スペース区切りの整数の入力
| ^~~~~~~~~... |
s077616618 | p03759 | C++ | a, b, c = map(int, input().split().split())
if b−a=c−b:
print ("YES")
elif print("NO") | a.cc:2:5: error: extended character − is not valid in an identifier
2 | if b−a=c−b:
| ^
a.cc:2:9: error: extended character − is not valid in an identifier
2 | if b−a=c−b:
| ^
a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = map(int, input().split().split())
| ^
|
s163579415 | p03759 | C++ | #include<iostream>
using namespace std;
int main()
{
// 整数の入力
int a,b,c;
cin >> a >> b >> c;
if (c-b) == (b-a)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:14: error: expected primary-expression before '==' token
8 | if (c-b) == (b-a)
| ^~
|
s762345518 | p03759 | C | #include<stdio.h>
int main(void){
int a,b,c;
if (
scanf("%d %d %d",&a,&b,&c);
if (b-a == c-b) printf("YES");
else printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:7:29: error: expected ')' before ';' token
7 | scanf("%d %d %d",&a,&b,&c);
| ^
| )
main.c:6:6: note: to match this '('
6 | if (
| ^
main.c:13:1: error: expected expression before '}' token
13... |
s390214598 | p03759 | C | #include<stdio.h>
int main(void){
int a,b,c;
if (
scanf("%d %d %d",&a,&b,&c);
if (b-a == c-b) printf("YES");
else printf("NO");
return 0;
}
| main.c: In function 'main':
main.c:7:29: error: expected ')' before ';' token
7 | scanf("%d %d %d",&a,&b,&c);
| ^
| )
main.c:6:6: note: to match this '('
6 | if (
| ^
main.c:13:1: error: expected expression before '}' token
13... |
s053583238 | p03759 | C | #include <stdio.h>
int main (void)
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
int e=b-a;
int f=c-b;
if(e==f){
printf("YES");
else
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:10:14: error: expected '}' before 'else'
10 | else
| ^~~~
main.c: At top level:
main.c:14:4: error: expected identifier or '(' before 'return'
14 | return 0;
| ^~~~~~
main.c:16:9: error: expected identifier or '(' before '}' token
1... |
s872498074 | p03759 | C | #include <stdio.h>
int main (void)
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(b-a==c-b){
printf("YES");
else
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:8:14: error: expected '}' before 'else'
8 | else
| ^~~~
main.c: At top level:
main.c:12:4: error: expected identifier or '(' before 'return'
12 | return 0;
| ^~~~~~
main.c:14:9: error: expected identifier or '(' before '}' token
14... |
s056366003 | p03759 | C | #include <stdio.h>
int main (void)
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(b-a=c-b){
printf("YES");
else
printf("NO");
}
return 0;
} | main.c: In function 'main':
main.c:6:20: error: lvalue required as left operand of assignment
6 | if(b-a=c-b){
| ^
main.c:8:14: error: expected '}' before 'else'
8 | else
| ^~~~
main.c: At top level:
main.c:12:4: error: expected identifier or... |
s074322711 | p03759 | Java |
import java.util.*;
public class Poles{
// static void equal(){
// }
public static void main(String[] args) {
int input;
ArrayList<Integer> tempList;
tempList = new ArrayList<Integer>();
Scanner s = new Scanner(System.in);
for (int i=0; i<3; i++){
input = s.nextInt();
tempList.add(in... | Main.java:5: error: class Poles is public, should be declared in a file named Poles.java
public class Poles{
^
1 error
|
s716692322 | p03759 | Java |
import java.util.*;
public class Poles{
static void equal(){
int input;
ArrayList<Integer> tempList;
tempList = new ArrayList<Integer>();
Scanner s = new Scanner(System.in);
for (int i=0; i<3; i++){
input = s.nextInt();
tempList.add(input);
}
Collections.sort(tempList);
int a,b,c;
a =... | Main.java:5: error: class Poles is public, should be declared in a file named Poles.java
public class Poles{
^
1 error
|
s235655538 | p03759 | C++ | #include <iostream>
int main(){
int a, b, c;
std::cin >> a >> b >> c;
if (b-a == c-b){
std::cout << "YES" << std::endl
}
else {
std::cout << "NO" << std::endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:32: error: expected ';' before '}' token
9 | std::cout << "YES" << std::endl
| ^
| ;
10 | }
| ~
|
s883798308 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(b−a==c−b){
cout<<"Yes"<<endl;
}
else{
cout<<"No"<<endl;
}
return 0;
} | a.cc:7:12: error: extended character − is not valid in an identifier
7 | if(b−a==c−b){
| ^
a.cc:7:17: error: extended character − is not valid in an identifier
7 | if(b−a==c−b){
| ^
a.cc: In function 'int main()':
a.cc:7:12: error: 'b\U00002212a' was not de... |
s173947565 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((a - b) == (c - b)) {
cout >> "YES" >> endl;
}
else
{
cout >> "NO" >> endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:22: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
8 | cout >> "YES" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | cons... |
s627529445 | p03759 | C++ | #include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cs... | a.cc: In function 'int main()':
a.cc:72:10: error: 'a' was not declared in this scope
72 | cin >> a >> b >> c;
| ^
a.cc:72:15: error: 'b' was not declared in this scope
72 | cin >> a >> b >> c;
| ^
a.cc:72:20: error: 'c' was not declared in this scope
72 | cin >> a >> b... |
s809640227 | p03759 | C++ | #include <cstdlib>
#include <iostream>
int
main()
{
std::cin.tie(0);
std::ios::sync_with_stdio(false);
int a, b, c;
std::cin >> a >> b >> c
if(c-b==b-a)
std::cout << "YES" << std::endl;
else
std::cout << "NO" << std::endl;
return EXIT_SUCCESS;
} | a.cc: In function 'int main()':
a.cc:12:26: error: expected ';' before 'if'
12 | std::cin >> a >> b >> c
| ^
| ;
13 |
14 | if(c-b==b-a)
| ~~
a.cc:16:3: error: 'else' without a previous 'if'
16 | else
| ... |
s020528965 | p03759 | C++ | #include <iostream>
using namespace std;
int a,b,c;
void read_input(){
cin >> a >> b >> c;
}
int main(void){
read_input();
if (b-a == c-b{
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before '{' token
12 | if (b-a == c-b{
| ^
| ;
a.cc:14:6: error: expected primary-expression before 'else'
14 | }else{
| ^~~~
a.cc:14:6: error: expected ')' before 'else'
14 | }... |
s553137465 | p03759 | C | #include <stdio.h>
int main(void) {
int a,b,c;
scanf ("%d %d %d",&a,&b,&c);
if (b-a=c-b) {
printf ("YES¥n");
} else {
printf ("NO¥n");
}
return 0;
} | main.c: In function 'main':
main.c:6:10: error: lvalue required as left operand of assignment
6 | if (b-a=c-b) {
| ^
|
s279229157 | p03759 | Java | import java.util.*;
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 ((b - a) == (c - b)){
System.out.print("YES");
}
else System.out.print("NO");
... | 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)
1 error
|
s253944140 | p03759 | Java | import java.util.*;
public class MAIN {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if ((b - a) == (c - b)){
System.out.print("YES");
}
else System.... | Main.java:3: error: class MAIN is public, should be declared in a file named MAIN.java
public class MAIN {
^
1 error
|
s915217538 | p03759 | Java | import java.util.*;
public class BeginnerTest058_1 {
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 ((b - a) == (c - b)){
System.out.print("YES");
}
... | Main.java:3: error: class BeginnerTest058_1 is public, should be declared in a file named BeginnerTest058_1.java
public class BeginnerTest058_1 {
^
1 error
|
s313035131 | p03759 | Java | import java.util.*;
public class BeginnerTest058_1 {
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 ((b - a) == (c - b)){
System.out.print("YES");
}
... | Main.java:16: error: class, interface, enum, or record expected
}
^
Main.java:18: error: class, interface, enum, or record expected
}
^
2 errors
|
s509502425 | p03759 | Java | 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 ((b - a) == (c - b)){
System.out.print("YES");
}
else System.out.print("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
|
s739870145 | p03759 | C++ | #include <stdio.h>
void main(void)
{
char O[999],E[999];
int i;
scanf("%s%s", O,E);
for(i = 0 ; O[i] ; i++)
{
if(O[i]>10) putchar(O[i]);
if(E[i]>10) putchar(E[i]);
}
puts("");
return 0;} | a.cc:2:1: error: '::main' must return 'int'
2 | void main(void)
| ^~~~
|
s414444845 | p03759 | C++ | #include <stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
puts(a+c==b+b?"YES","NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:6:25: error: expected ':' before ')' token
6 | puts(a+c==b+b?"YES","NO");
| ^
| :
a.cc:6:25: error: expected primary-expression before ')' token
|
s791710237 | p03759 | C++ | using System;
using System.Collections.Generic;
using System.Collections;
class p
{
static void Main(string[] args)
{
string[] input = Console.ReadLine().Split();
long a = long.Parse(input[0]), b = long.Parse(input[1]), c = long.Parse(input[2]);
if (a + c == 2 * b) Console.WriteL... | 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.C... |
s347373501 | p03759 | Java | public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if ((b-a)==(c-b)){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
}
| 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
|
s978830320 | p03759 | C++ | #include <iostream>
using namespace std;
int main(void){
// Here your code !
int a,b,c;
cin >> a >> b >> c;
if( b−a==c−b){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
}
| a.cc:7:9: error: extended character − is not valid in an identifier
7 | if( b−a==c−b){
| ^
a.cc:7:14: error: extended character − is not valid in an identifier
7 | if( b−a==c−b){
| ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'b\U00002212a' was not declared in this... |
s725687499 | p03759 | Java | public class A {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int[] poles = new int[3];
for (int i = 0; i < 3; i++) {
poles[i] = in.nextInt();
}
List<Integer> arrangement = new ArrayList<>();
for (int i = 0; i < poles.length; i++) {
for (... | Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
^
Main.java:4: error: cannot find symbol
Scanner in = new Scanner(System.in);
^
symbol: class Scanner
location: class A
Main.java:4: error: cannot find symbol
... |
s817021324 | p03759 | Java | // Scanner in = new Scanner(System.in);
int[] poles = new int[3];
for (int i = 0; i < 3; i++) {
poles[i] = in.nextInt();
}
List<Integer> arrangement = new ArrayList<>();
for (int i = 0; i < poles.length; i++) {
for (int j = 0; j < poles.length; j++) {
if (i < j) {
arrangement.add(Math.... | Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
int[] poles = new int[3];
^
(use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
for (int i = 0; i < 3; i++) {
^
Main.java:3: error: class, interface, enum, or ... |
s065039467 | p03759 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
new Magatro().Solve();
}
}
public class Magatro
{
public void Solve()
{
int a, b, c;
string[] s = Console.ReadLine().Split(' ');
a = int.Parse(s[0]);... | 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... |
s353235862 | p03759 | C++ | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in... | a.cc:1:1: error: 'import' does not name a type
1 | import java.io.OutputStream;
| ^~~~~~
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.IOException;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmod... |
s860214466 | p03759 | C++ | #include <iostream >
using namespace std;
int main()
{
int a, b, c;
cin>>a>>b>>c;
cout<< (b-a==c-b?"YES":"NO") <<endl;
} | a.cc:1:10: fatal error: iostream : No such file or directory
1 | #include <iostream >
| ^~~~~~~~~~~
compilation terminated.
|
s330383645 | p03759 | C++ | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(b-a==c-b)System.out.println("YES");
else System.out.println("NO");
}
} | 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:3:1: error: expected unqualified-id before 'public'
3 | public class Main {
| ^~~~~~
|
s814926328 | p03759 | C++ | #include <algorithm>
#include <bitset>
#include <cassert>
#include <deque>
#include <fstream>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define RE... | a.cc: In function 'int main()':
a.cc:78:9: error: 'N' was not declared in this scope
78 | solve(N, M);
| ^
a.cc:78:12: error: 'M' was not declared in this scope
78 | solve(N, M);
| ^
|
s346588936 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(b-a==c-b){cout << "YES" << endl;}
else{cout << "NO" << endl;}
return 0; | a.cc: In function 'int main()':
a.cc:9:12: error: expected '}' at end of input
9 | return 0;
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s806427118 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int mian(){
int a,b,c;
cin >> a >> b >> c;
if(b-a==c-b){cout << "YES" << endl;}
else{cout << "NO" << endl;}
return 0;
} | /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
|
s151119514 | p03759 | C++ | a, b, c = map(int(input().split()))
if b-a == c-b:
print('YES')
else:
print('NO') | a.cc:3:15: warning: multi-character character constant [-Wmultichar]
3 | print('YES')
| ^~~~~
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
5 | print('NO')
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a, b, c = map(int(in... |
s043221839 | p03759 | C++ | <?php
list($a, $b, $c) = explode(' ', trim(fgets(STDIN)));
if ($b - $a == $c - $b) {
echo "YES\n";
} else {
echo "NO\n";
} | a.cc:1:1: error: expected unqualified-id before '<' token
1 | <?php
| ^
a.cc:3:1: error: expected unqualified-id before 'if'
3 | if ($b - $a == $c - $b) {
| ^~
a.cc:5:3: error: expected unqualified-id before 'else'
5 | } else {
| ^~~~
|
s584892840 | p03759 | C++ |
#include<stdio.h>
int main()
{
int m,n,k;
int x[100000],y[100000];
scanf("%d %d",&n,&m);
for(k=0;k<n;k++)
scanf("%d",&x[k]);
for(k=0;k<m;k++)
scanf("%d",&y[k]);
int sum=0;
int a,b,c,d;
for(a=0;a<n-1;a++)
for(b=a+1;b<n,b++)
for(c=0;c<m-1;c++)
for(d=c+1;d<m;d++)
sum=(b-a)*(c-d);
printf("%d",sum/1000000007);
return 0;
... | a.cc:20:1: error: extended character is not valid in an identifier
20 |
| ^
a.cc: In function 'int main()':
a.cc:15:18: error: expected ';' before ')' token
15 | for(b=a+1;b<n,b++)
| ^
| ;
a.cc:20:1: error: '\U000000a0' was not declared in this scope
20 |... |
s403856479 | p03759 | C++ | #include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int a,b,c,d,e;
string f,g;
cin>>a>>b>>c;
d=b-a;
e=c-b;
if(d=e){
printf(''YES'',f);
}
else{
printf(''NO'',g);
}
} | a.cc:13:13: error: empty character constant
13 | printf(''YES'',f);
| ^~~~~
a.cc:13:18: error: empty character constant
13 | printf(''YES'',f);
| ^~
a.cc:17:13: error: empty character constant
17 | printf(''NO'',g);
| ^~~~
a.cc:17:17: er... |
s978315328 | p03759 | C++ | #include<stdio.h>
int main(){
int a,b,c
while(scanf("%d%d%d",&a,&b,&c)!=EOF){
if(a<1||b<1||c<1||a>100||b>100||c>100) continue;
if(a-b==b-c)
printf("YES")
else printf("NO")
}
} | a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'while'
4 | while(scanf("%d%d%d",&a,&b,&c)!=EOF){
| ^~~~~
|
s021915624 | p03759 | C++ | #include<stdio.h>
int main(){
int a,b,c
while(scanf("%d%d%d",&a,&b,&c)!=EOF){
if(a<1||b<1||c<1||a>100||b>100||c>100) continue;
if(a-b==b-c)
printf("YES")
else printf("NO")
}
} | a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before 'while'
4 | while(scanf("%d%d%d",&a,&b,&c)!=EOF){
| ^~~~~
|
s486279769 | p03759 | C++ | #include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int a,b,c,d,e;
string YES;
string NO;
cin>>a>>b>>c;
d=b-a;
e=c-b;
if(d=e){
printf('YES');
}
else{
printf('NO');
}
} | a.cc:14:13: warning: multi-character character constant [-Wmultichar]
14 | printf('YES');
| ^~~~~
a.cc:18:13: warning: multi-character character constant [-Wmultichar]
18 | printf('NO');
| ^~~~
a.cc: In function 'int main()':
a.cc:14:13: error: invalid conversion from... |
s042986853 | p03759 | C++ | a,b,c = map(int, raw_input().split())
if b-a == c-b:
print 'YES'
else:
print 'NO' | a.cc:4:11: warning: multi-character character constant [-Wmultichar]
4 | print 'YES'
| ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
6 | print 'NO'
| ^~~~
a.cc:1:1: error: 'a' does not name a type
1 | a,b,c = map(int, raw_input().split())
... |
s415211274 | p03759 | C++ | #include <iostream>
#include <math.h>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int a,b,c,d,e;
string YES;
string NO;
cin>>a>>b>>c;
d=b-a;
e=c-b;
if(d=e){
printf(YES)
}
else{
printf(NO)
}
} | a.cc: In function 'int main()':
a.cc:14:13: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
14 | printf(YES)
| ^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/1... |
s241024016 | p03759 | Java | import java.util.Scanner;
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner stdIn=new Scanner(System.in);
int a=stdIn.nextInt();
int b=stdIn.nextInt();
int c=stdIn.nextInt();
if(a-b==b-c)
System.out.println("YES");
else
System.out.println("NO");
}
| Main.java:4: 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
|
s513384765 | p03759 | C | #include <stdio.h>
int main(void)
{
int a=0,b=0,c=0,d=0,e=0;
scanf_s("%d",&a);
scanf_s("%d",&b);
scanf_s("%d",&c);
d=b-a;
e=c-b;
if(d<0){
d=d*-1;
}
if(e<0){
e=e*-1;
}
if(d==e){
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",&a);
| ^~~~~~~
| scanf
|
s730371420 | p03759 | Java | import java.util.Scanner;
public class Question2 {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner stdIn=new Scanner(System.in);
int a=stdIn.nextInt();
int b=stdIn.nextInt();
int c=stdIn.nextInt();
if(a-b==b-c)
System.out.println("YES");
else
System.out.println("NO");
... | Main.java:2: error: class Question2 is public, should be declared in a file named Question2.java
public class Question2 {
^
1 error
|
s028514468 | p03759 | C++ | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)
{
string[] temp = Console.ReadLine().Split(' ');
int cou = 0;
int[] colle = new int[3];
... | 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... |
s365167122 | p03759 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if( b−a == c−b ){
cout << "YES" << endl;
}
else{
cout << "NO" << endl;
}
return 0;
}
| a.cc:7:9: error: extended character − is not valid in an identifier
7 | if( b−a == c−b ){
| ^
a.cc:7:16: error: extended character − is not valid in an identifier
7 | if( b−a == c−b ){
| ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'b\U00002212a' was not declared... |
s856910603 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
int A,B,C;
cin >> A >> B>> C;
cout << (B-A==C-B : "YES" ? "NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:21: error: expected ')' before ':' token
9 | cout << (B-A==C-B : "YES" ? "NO");
| ~ ^~
| )
|
s211949132 | p03759 | C++ | #include <iostream>
#include <string>
#define rep(i,n) for(int i = 0; i < n;++i)
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(b-a == c- b)
cout << "YES"<<endl;
else
cout <<< "NO" <<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:13:24: error: expected primary-expression before '<' token
13 | cout <<< "NO" <<endl;
| ^
a.cc:13:31: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
13 | ... |
s844180184 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
int A,B,C;
cin >> A >> B>> C;
cout << (b-a==c-b : "YES" ? "NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:9:13: error: 'b' was not declared in this scope
9 | cout << (b-a==c-b : "YES" ? "NO");
| ^
a.cc:9:15: error: 'a' was not declared in this scope
9 | cout << (b-a==c-b : "YES" ? "NO");
| ^
a.cc:9:18: error: 'c' was not declared in th... |
s659830735 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >> a >> b >> c;
if(b-a==c-b) cout << YES << endl;
else cout << NO << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:26: error: 'YES' was not declared in this scope
7 | if(b-a==c-b) cout << YES << endl;
| ^~~
a.cc:8:18: error: 'NO' was not declared in this scope
8 | else cout << NO << endl;
| ^~
|
s011716544 | p03759 | C++ | #include<stdio.h>
int main()
{
int a,b,c;
scanf(("%d %d %d",&a,&b,&c);
if(b-a==c-b)
printf("YES");
else
printf("NO");
return 0;
} | a.cc: In function 'int main()':
a.cc:5:28: error: expected ')' before ';' token
5 | scanf(("%d %d %d",&a,&b,&c);
| ~ ^
| )
|
s322882056 | p03759 | C | include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(b-a==c-b){
printf("YES\n");
}else{
printf("NO\n");
}
return 0;
} | main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include <stdio.h>
| ^
|
s135937720 | p03759 | C++ |
#include <bits/stdc++.h>
using namespace std;
//int main( int argc, char *argv[] )
{
int A;
int B;
int C;
// 入力
cin >> A;
cin >> B;
cin >> C;
// 出力
if( A-B==B-C )
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
}
| a.cc:5:1: error: expected unqualified-id before '{' token
5 | {
| ^
|
s573387358 | p03759 | C++ | #incldue<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(b-a==c-b)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue<iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
6 | cin>>a>>b>>c;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostrea... |
s907920136 | p03759 | C++ | int main(void){
int a,b,c;
cin >> a >> b >> c;
if (b-a == c-b)
cout << "YES";
else
cout << "NO";
cout << endl;
} | a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
3 | cin >> a >> b >> c;
| ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
5 | cout << "YES";
| ^~~~
a.cc:7:9: error: 'cout' was not declared in this scope
7 | cout << ... |
s512742393 | p03759 | C++ | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (b−a=c−b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
| a.cc:11:21: error: extended character − is not valid in an identifier
11 | if (b−a=c−b) {
| ^
a.cc:11:25: error: extended character − is not valid in an identifier
11 | if (b−a=c−b) {
| ^
a.cc:1:1: error: 'import' does not nam... |
s602444112 | p03759 | C++ | a,b,c=gets.split.map &:to_i
puts b-a==c-b ? :YES : :NO | a.cc:1:1: error: 'a' does not name a type
1 | a,b,c=gets.split.map &:to_i
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.