submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s566396648
p03759
C++
#include<iostream> int main() { int a,b,c; cout<<"a="; cin>>a; cout<<"b="; cin>>b; cout<<"c="; cin>>c; if(1<=a and 1<=b and 1<=c and a<=100 and b<=100 and c<=100) { if(b-a==c-b){ cout<<"Yes"; } else if(c-b==b-a){ cout<<"Yes"; } else{ ...
a.cc: In function 'int main()': a.cc:4:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 4 | cout<<"a="; | ^~~~ | std::cout In file included from a.cc:1: /usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< ...
s556629304
p03759
C++
#include<bits/stdc++.h> int main() { int a,b,c; cout<<"a="; cin>>a; cout<<"b="; cin>>b; cout<<"c="; cin>>c; if(1<=a and 1<=b and 1<=c and a<=100 and b<=100 and c<=100) { if(b-a==c-b){ cout<<"Yes"; } else if(c-b==b-a){ cout<<"Yes"; } else{ ...
a.cc: In function 'int main()': a.cc:4:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 4 | cout<<"a="; | ^~~~ | std::cout In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146, from a.cc:1: /usr/include/c++/14/iostream:63:18:...
s585373648
p03759
C++
#include<iostream.h> int main() { int a,b,c; cout<<"a="; cin>>a; cout<<"b="; cin>>b; cout<<"c="; cin>>c; if(1<=a and 1<=b and 1<=c and a<=100 and b<=100 and c<=100) { if(b-a==c-b){ cout<<"Yes"; } else if(c-b==b-a){ cout<<"Yes"; } else{ ...
a.cc:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s145639107
p03759
C++
1 #include<bits/stdc++.h> 2 using namespace std; 3 6 int main() 7 { 8 int a,b,c; 9 cin>>a>>b>>c; 10 if(b-a==c-b) 11 { 12 cout<<"YES"<<endl; 13 } 14 else 15 { 16 cout<<"NO"<<endl; 17 } 18 return 0; 19 }
a.cc:1:4: error: stray '#' in program 1 | 1 #include<bits/stdc++.h> | ^ a.cc:1:2: error: expected unqualified-id before numeric constant 1 | 1 #include<bits/stdc++.h> | ^ a.cc:3:2: error: expected unqualified-id before numeric constant 3 | 3 | ^
s327296919
p03759
C
#include<stdio.h> #include<math.h> void main() { int a,b,c; printf("Enter 3 numbers"); scanf(%d%d%d",&a&b&c); if((a-b == b-c) || (b-a == c-b)) {printf("Yes");} else {printf("No"); } }
main.c: In function 'main': main.c:7:7: error: expected expression before '%' token 7 | scanf(%d%d%d",&a&b&c); | ^ main.c:7:13: warning: missing terminating " character 7 | scanf(%d%d%d",&a&b&c); | ^ main.c:7:13: error: missing terminating " character 7 | scanf(%d%d%d",&a&b&c);...
s656727992
p03759
C++
#include <iostream> #include<string> #include<cmath> #include<vector> using std::cin; using std::cout; using std::vector; int main(){ int a,b,c; if(a-b==c-b){ cout<<"YES"; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:12:9: error: expected '}' before 'else' 12 | else | ^~~~ a.cc:10:21: note: to match this '{' 10 | if(a-b==c-b){ | ^
s839718023
p03759
C++
#include <iostream.h> 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:10: fatal error: iostream.h: No such file or directory 1 | #include <iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s562275095
p03759
C++
#include <assert.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(abs(a-b)==abs(b-c)) printf("Yes"); else printf("No"); }
a.cc:10:1: error: '::main' must return 'int' 10 | void main() | ^~~~
s013531054
p03759
C++
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void main() { int a,b,c; scanf("%d",&a); scanf("%d",&a); scanf("%d",&a); if(abs(a-b)==abs(b-c)) printf("Yes"); else printf("No"); }
a.cc:10:1: error: '::main' must return 'int' 10 | void main() | ^~~~
s049375561
p03759
C
void main() { int a,b,c,d,e; scanf("%d%d%d",&a&b&c); d=a-b; e=b-c; if(d==e){ printf("yes"); } else printf("no"); }
main.c: In function 'main': main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 4 | scanf("%d%d%d",&a&b&c); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | void main() main.c:4:1: warning: incompatib...
s466242068
p03759
C
#include<iostream.h> void main() { int a,b,c,d,e; scanf("%d%d%d",&a,&b,&c); d=a-b; e=b-c; if(d==e) printf("yes"); else printf("no"); }
main.c:1:9: fatal error: iostream.h: No such file or directory 1 | #include<iostream.h> | ^~~~~~~~~~~~ compilation terminated.
s855207939
p03759
C
#include<conio.h> void main() { int a,b,c,d,e; scanf("%d%d%d",&a,&b,&c); d=a-b; e=b-c; if(d==e) printf("yes"); else printf("no"); }
main.c:1:9: fatal error: conio.h: No such file or directory 1 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s608997378
p03759
C++
#include<bits/stdc++.h> using namespace std; int main() { long float a, b, c; if((b-a)==(c-b)) { cout<<"YES"; } else cout<<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:5:1: error: 'long' specified with 'float' 5 | long float a, b, c; | ^~~~ a.cc:5:1: error: 'long' specified with 'float' a.cc:5:1: error: 'long' specified with 'float'
s718488544
p03759
C++
#include<bits/stdc++.h> using namespace std: int main() { long long int a, b, c; if((b-a)==(c-b)) { cout<<"YES"; } else cout<<"NO"; return 0; }
a.cc:2:21: error: expected ';' before ':' token 2 | using namespace std: | ^ | ; a.cc:2:21: error: expected unqualified-id before ':' token
s854690713
p03759
C
#include<conio.h> void main() { int a,b,c,d,e; printf("enter the numbers\n"); d=a-b; e=b-c; if(d==e) { priintf("yes"); } else{ printf("no"); } }
main.c:1:9: fatal error: conio.h: No such file or directory 1 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s739062989
p03759
C
#include<stdio.h> #include<conio.h> void main() {int a,b,c; printf("Enter the value of a ,b and c"); scanf("%d %d %d ",&a,&b,&c); if(a<0 || a>100 || b<0 || b>100||c>100 ||c<0) { printf("enter the number between 1-100"); } else { if(b-a==c-b) { printf("arrangement of pole is beautiful"); } else printf("arrangement of ...
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s956735849
p03759
C
#include<stdio.h> #include<conio.h> void main() {int a,b,c; printf("Enter the value of a ,b and c"); scanf("%d %d %d ",&a,&b,&c); if(a<0 || a>100 || b<0 || b>100||c>100 ||c<0) { printf("enter the number between 1-100"); } else { if(b-a==c-b) { printf("arrangement of pole is beautiful"); } else printf("arrangement of ...
main.c:2:9: fatal error: conio.h: No such file or directory 2 | #include<conio.h> | ^~~~~~~~~ compilation terminated.
s249889084
p03759
C++
#include<iostream> using namespace std; int maint(){ long long int a,b,c; cin>>a>>b>>c; if(b-a==c-b) cout<<"YES"; else cout<<"NO"; 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
s413489450
p03759
C++
#include<bits/stdc++.h> using namespace std; void main() { int a,b,c; cin>>a>>b>>c; if((a-b))==(b-c)) cout<<"YES"; else cout<<"NO"; }
a.cc:4:1: error: '::main' must return 'int' 4 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:9:13: error: expected primary-expression before '==' token 9 | if((a-b))==(b-c)) | ^~
s249224803
p03759
C++
#include<iostream> using namesapce std; int maint(){ long long int a,b,c; cin>>a>>b>>c; if(b-a==c-b) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:3:7: error: expected nested-name-specifier before 'namesapce' 3 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int maint()': a.cc:7:3: 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: ...
s885220451
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; }
main.c:4:1: error: expected declaration specifiers or '...' before '{' token 4 | { | ^
s211666129
p03759
C++
#include <iostream> using name space std ; int main() { int A,B,C; cin >>A>>B>>C ; if (B-A==C-B) cout << "Yes" ; else cout << "No" ; return 0; }
a.cc:2:7: error: expected nested-name-specifier before 'name' 2 | using name space std ; | ^~~~ a.cc: In function 'int main()': a.cc:7:1: 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/...
s436391185
p03759
Java
import java.util.Scanner; public class TriSeqLinear{ 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 n = b-a; int m = c-b; if(n==m){ System.out.print("YES"); }else{ System.out....
Main.java:3: error: class TriSeqLinear is public, should be declared in a file named TriSeqLinear.java public class TriSeqLinear{ ^ 1 error
s106598112
p03759
C++
//#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; const int INF= 1e9+5; typedef long long ll; int main(){ int a,b,c; cin>>a>>b>>C; if(2*a==b+c)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:10:14: error: 'C' was not declared in this scope 10 | cin>>a>>b>>C; | ^
s694107799
p03759
C++
//#define _GLIBCXX_DEBUG #include<bits/stdc++.h> using namespace std; const int INF= 1e9+5; typedef long long ll; int main(){ int a,b,c; cin>>a>>b>>C; if(2*a=b+c)cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:10:14: error: 'C' was not declared in this scope 10 | cin>>a>>b>>C; | ^ a.cc:11:7: error: lvalue required as left operand of assignment 11 | if(2*a=b+c)cout<<"YES"<<endl; | ~^~
s949549845
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int A=0, B=0, C=0; cin >> A >> B >> c; int sub1= abs(A-B); int sub2= abs(B-C); if(sub1==sub2) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:8:20: error: 'c' was not declared in this scope 8 | cin >> A >> B >> c; | ^
s302753818
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c; cin >> a >>b >>c; if(abs(a-b)==abs(c-b)){ cout << "YES"; } else{ cout << "NO"; } }
a.cc: In function 'int main()': a.cc:7:13: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 7 | if(abs(a-b)==abs(c-b)){ | ~^~ | | | | | basic_st...
s840026406
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; }
a.cc:6:7: error: extended character − is not valid in an identifier 6 | if((b−a) == (c−b)) | ^ a.cc:6:16: error: extended character − is not valid in an identifier 6 | if((b−a) == (c−b)) | ^ a.cc: In function 'int main()': a.cc:6:7: error: 'b\U00002212a' was not declared in ...
s358313370
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; }
a.cc:6:7: error: extended character − is not valid in an identifier 6 | if((b−a) == (c−b)) | ^ a.cc:6:16: error: extended character − is not valid in an identifier 6 | if((b−a) == (c−b)) | ^ a.cc: In function 'int main()': a.cc:6:7: error: 'b\U00002212a' was not declared in ...
s114229347
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; }
a.cc:6:6: error: extended character − is not valid in an identifier 6 | if(b−a == c−b) | ^ a.cc:6:13: error: extended character − is not valid in an identifier 6 | if(b−a == c−b) | ^ a.cc: In function 'int main()': a.cc:6:6: error: 'b\U00002212a' was not declared in this scope ...
s744011196
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; }
a.cc:6:6: error: extended character − is not valid in an identifier 6 | if(b−a==c−b) | ^ a.cc:6:11: error: extended character − is not valid in an identifier 6 | if(b−a==c−b) | ^ a.cc: In function 'int main()': a.cc:6:6: error: 'b\U00002212a' was not declared in this scope 6 |...
s075052328
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c;cin>>a>b>>c; cout<(a+c==b*2 ? "YES":"NO")<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:21: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 5 | int a, b, c;cin>>a>b>>c; | ~~~~~~^~~~~ | | | | | int ...
s264080015
p03759
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-b) { printf("YES"); } else { printf("NO"); } return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: lvalue required as left operand of assignment 7 | if(a-b=c-b) | ~^~
s534971577
p03759
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-b) { printf("YES"); } else { printf("NO"); } return 0; }
a.cc: In function 'int main()': a.cc:7:13: error: lvalue required as left operand of assignment 7 | if(a-b=c-b) | ~^~
s974481126
p03759
C++
#include<iostream> using namesace 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:2:7: error: expected nested-name-specifier before 'namesace' 2 | using namesace std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: expected initializer before 'cin' 6 | cin>>A>>B>>C | ^~~ a.cc:9:5: error: 'else' without a previous 'if' 9 | else | ^~...
s209465708
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { string 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:8:13: error: no match for 'operator-' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 8 | if(b-a==c-b) cout << "YES" << endl; | ~^~ | | | | ...
s699482487
p03759
C++
#include <bits/stddc++.h> using namespace std; int main() { double a,b,c; cin>>a>>b>>c; if(b-a == c-b){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
a.cc:1:10: fatal error: bits/stddc++.h: No such file or directory 1 | #include <bits/stddc++.h> | ^~~~~~~~~~~~~~~~ compilation terminated.
s079459779
p03759
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(b-a==c-b) cout<<"YES"; else cout<<"NO"; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s464426835
p03759
C++
#include<iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(B-A==C-B) cout<<"YES"; else cout<<"NO"; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s214764165
p03759
C++
#include<iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(B-A==C-B) cout<<"YES"; else cout<<"NO"; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s949936916
p03759
C++
#include<iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(B-A==C-B) cout<<"YES"; else cout<<"NO"; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s321300923
p03759
C++
#include<iostream> using namespace std; int main() { int A,B,C; cin>>A>>B>>C; if(B-A==C-B) cout<<"YES"; else cout<<"NO"; return 0;
a.cc: In function 'int main()': a.cc:11:18: error: expected '}' at end of input 11 | return 0; | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s045794614
p03759
C++
#include <iostream> #include <vector> #include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> P; #define pb push_back #define eb emplace_back #define fi first #define se second #define bg begin() #define ed end() #define all(x) x.bg, x....
a.cc: In function 'int main()': a.cc:148:3: error: 'out' was not declared in this scope 148 | out<<"NO"<<endl; | ^~~
s153268130
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; if(a+c=2*b){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:7: error: lvalue required as left operand of assignment 7 | if(a+c=2*b){ | ~^~
s770275950
p03759
C++
#include<bits/stdc++.h> using namespace std; int n; int main() { int a,b,c; cin>>a>>b>>c; if(b-a=c-b) { cout<<"YES"; } else { cout<<"NO"; } 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) | ~^~
s077251635
p03759
C++
package main import ( "bufio" "fmt" "os" "strconv" ) // I/O type Scanner struct { sc *bufio.Scanner } func NewScanner() *Scanner { sc := bufio.NewScanner(os.Stdin) sc.Split(bufio.ScanWords) sc.Buffer(make([]byte, 1024), int(1e+9)) return &Scanner{sc} } func (s *Scanner) nextStr() string { s.sc.Scan() ret...
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~ a.cc:15:1: error: 'func' does not name a type 15 | func NewScanner() *Scanner { | ^~~~ a.cc:22:6: error: expected constructor, destructor, or type conversion before '(' token 22 | func (s *Scanner) nextStr() string { ...
s862986432
p03759
C
#include <stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(c-b==b-a) sanf("Yes\n"); else { scanf("No\n"); } return 0; }
main.c: In function 'main': main.c:7:5: error: implicit declaration of function 'sanf'; did you mean 'scanf'? [-Wimplicit-function-declaration] 7 | sanf("Yes\n"); | ^~~~ | scanf
s618010732
p03759
C++
#include <iostream> using namespace std; int a, b, c; int main() { cin >> a >> b >> c; if (b - a == c - b) puts("YES"); else puts("NO); return 0; }
a.cc:9:14: warning: missing terminating " character 9 | puts("NO); | ^ a.cc:9:14: error: missing terminating " character 9 | puts("NO); | ^~~~~ a.cc: In function 'int main()': a.cc:10:5: error: expected primary-expression before 'return' 10 | return 0...
s560961202
p03759
C++
#include <iostream> using namespace std; int a, b, c; int main() { cin >> a >> b >> c; if (b - a == c - b) puts("YES"); else puts("NO); return 0; }
a.cc:9:14: warning: missing terminating " character 9 | puts("NO); | ^ a.cc:9:14: error: missing terminating " character 9 | puts("NO); | ^~~~~ a.cc: In function 'int main()': a.cc:10:5: error: expected primary-expression before 'return' 10 | return 0...
s945746522
p03759
C++
#include <iostream> using namespace std; int a, b, c; int main() { cin >> a >> b >> c; if (b - a == c - b) puts("YES"); else puts("NO); return 0; }
a.cc:9:14: warning: missing terminating " character 9 | puts("NO); | ^ a.cc:9:14: error: missing terminating " character 9 | puts("NO); | ^~~~~ a.cc: In function 'int main()': a.cc:10:5: error: expected primary-expression before 'return' 10 | return 0...
s916611994
p03759
C++
include <bits / stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (a - b == b - c) { cout << "YES"; return 0; } cout << "NO" << endl; return 0; }
a.cc:1:1: error: 'include' does not name a type 1 | include <bits / stdc++.h> | ^~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope 6 | cin >> a >> b >> c; | ^~~ a.cc:9:9: error: 'cout' was not declared in this scope 9 | cout << "YES"; ...
s050339132
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"; } else { cout<<"No"; } return 0; }
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory 1 | #include <bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s511353529
p03759
C++
#include<iostream> #incldue<cstdio> #incldue<cmath> #include<string> #include<algithm> using namespace std; long long a,b,c; int main() { cin>>a>>b>>c; if(b-a==c-b) cout<<"YES"; else cout<<"NO"; return 0; }
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include? 2 | #incldue<cstdio> | ^~~~~~~ | include a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include? 3 | #incldue<cmath> | ^~~~~~~ | include a.cc:5:9: fatal error: algithm: No such...
s351186258
p03759
C++
A,B,C=map(int,raw_input().split) if B-A==C-B: print "YES" else: print "NO"
a.cc:1:1: error: 'A' does not name a type 1 | A,B,C=map(int,raw_input().split) | ^
s294747365
p03759
C++
#include <iostream> #include <vector> #include <algorithm> #include <string.h> #include <iomanip> #include <map> #include <cstdlib> #include <cctype> #include <ctype.h> #include <math.h> #define ll long long char toupper(char c); char toupper(char c) { return (c - 0x20); } using namespace std; int main() { int a...
a.cc: In function 'int main()': a.cc:23:12: error: unable to find numeric literal operator 'operator""b' 23 | if(a==-c+2b) | ^~
s191048402
p03759
Java
#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; }
Main.java:1: error: illegal character: '#' #include<iostream> ^ Main.java:1: error: class, interface, enum, or record expected #include<iostream> ^ Main.java:5: error: not a statement cin>>a>>b>>c; ^ Main.java:6: error: not a statement if(b-a==c-b)cout<<"YES"<<endl; ^ Mai...
s410966245
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B >> C; cout << (b - a == c - b ? "YES" : "NO") << endl; }
a.cc: In function 'int main()': a.cc:8:12: error: 'b' was not declared in this scope 8 | cout << (b - a == c - b ? "YES" : "NO") << endl; | ^ a.cc:8:16: error: 'a' was not declared in this scope 8 | cout << (b - a == c - b ? "YES" : "NO") << endl; | ^ a.cc:8:21: error: ...
s293386832
p03759
C++
a,b,c = map(int,input().split()) if b-a==c-b: print('YES') else: print('NO')
a.cc:3:11: warning: multi-character character constant [-Wmultichar] 3 | print('YES') | ^~~~~ a.cc:5:11: 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,input().split()) ...
s913056060
p03759
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,d; cin>>a>>b>>c; if((b-a)==(c-b))) { cout<<"YES"; } else { cout<<"NO"; } return 0; }
a.cc: In function 'int main()': a.cc:7:21: error: expected primary-expression before ')' token 7 | if((b-a)==(c-b))) | ^
s092593600
p03759
C
#include<stdio.h> #include<algorithm> int compare() int main() bool compare(int a,int b) { return a>b; } { int a,b,c,d,e; scanf("%d %d %d",&a,&b,&c); compare(int a,int b); d=b-a; compare(int b,int c); e=c-b; if(d=e) printf("YES"); else printf("NO"); }
main.c:2:9: fatal error: algorithm: No such file or directory 2 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s410953242
p03759
C
#include<stdio.h> #include<algorithm> int main() bool compare(int a,int b) { return a>b; } { int a,b,c,d,e; scanf("%d %d %d",&a,&b,&c); compare(int a,int b); d=b-a; compare(int b,int c); e=c-b; if(d=e) printf("YES"); else printf("NO"); }
main.c:2:9: fatal error: algorithm: No such file or directory 2 | #include<algorithm> | ^~~~~~~~~~~ compilation terminated.
s846498114
p03759
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a-b=b-c){ cout<<"YES"<<endl; return 0; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: lvalue required as left operand of assignment 6 | if(a-b=b-c){ | ~^~
s254718254
p03759
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a-b=b-c){ cout<<"YES"<<endl; return 0; } else{ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: lvalue required as left operand of assignment 6 | if(a-b=b-c){ | ~^~
s170162937
p03759
C++
#include<stdio.h> main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if((b-a)==(c-b)) printf("YES); else printf("NO"); }
a.cc:7:24: warning: missing terminating " character 7 | printf("YES); | ^ a.cc:7:24: error: missing terminating " character 7 | printf("YES); | ^~~~~~ a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [...
s816952480
p03759
C++
nclude <iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if(b-a == c-b) cout << "YES"; else cout << "NO"; }
a.cc:1:1: error: 'nclude' does not name a type 1 | nclude <iostream> | ^~~~~~ a.cc: In function 'int main()': a.cc:7:2: error: 'cin' was not declared in this scope 7 | cin >> a >> b >> c; | ^~~ a.cc:8:17: error: 'cout' was not declared in this scope 8 | if(b-a == c-b) cout << "YES"; | ...
s876942313
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; } }
a.cc: In function 'int main()': a.cc:7:6: error: 'b' was not declared in this scope 7 | if(b -a == c - b){ | ^ a.cc:7:9: error: 'a' was not declared in this scope 7 | if(b -a == c - b){ | ^ a.cc:7:14: error: 'c' was not declared in this scope 7 | if(b -a == c - b){ | ...
s084374587
p03759
C++
#include<bits/stdc++.h> using namespace std; int a,b,c; int main() { scanf("%d%d%d",&a,&b,&c); if(b-a==c-b)printf("YES"); else printf("NO"); return 0p; }
a.cc: In function 'int main()': a.cc:9:12: error: unable to find numeric literal operator 'operator""p' 9 | return 0p; | ^~
s883669632
p03759
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) 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:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:5:11: note: to match this '{' 5 | int main(){ | ^
s275392057
p03759
C++
#include <bits/stdc++.h> typedef long long ll; #define REP(i,n) for(int i=0;i<n;i++) #define ALL(x) (x).begin(),(x).end() using namespace std; //素因数分解 vector<pair<ll,int>> factorize(ll n){ vector<pair<ll,int>>res; for(ll i=2;i*i<=n;i++){ if(n%i)continue; res.emplace_back(i,0); while (n%...
a.cc: In function 'int main()': a.cc:37:20: error: expected ';' before '}' token 37 | else puts("NO") | ^ | ; 38 | } | ~
s216711765
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"; else cout<<"NO"; return 0; }
a.cc:1:9: fatal error: bits.stdc++.h: No such file or directory 1 | #include<bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s910029882
p03759
C++
f=lambda x:x[0]-2*x[1]+x[2]==0 print('YES' if f(list(map(int,input().split()))) else 'NO')
a.cc:2:7: warning: multi-character character constant [-Wmultichar] 2 | print('YES' if f(list(map(int,input().split()))) else 'NO') | ^~~~~ a.cc:2:55: warning: multi-character character constant [-Wmultichar] 2 | print('YES' if f(list(map(int,input().split()))) else 'NO') | ...
s034136659
p03759
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #define en end() #define pb(a) pu...
a.cc: In function 'int main()': a.cc:205:9: error: ambiguous overload for 'operator=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int') 205 | for(i=0; i<b.size(); i++){ | ^ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14...
s950839789
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\n"); } else{ printf("NO\n"); return 0; }
main.c: In function 'main': main.c:15:1: error: expected declaration or statement at end of input 15 | } | ^
s741681995
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\n"); } else{ printf("NO\n"); return 0;
main.c: In function 'main': main.c:14:1: error: expected declaration or statement at end of input 14 | return 0; | ^~~~~~ main.c:14:1: error: expected declaration or statement at end of input
s691296652
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\n"); } else{ printf("NO\n"); return 0;
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'? 2 | Int main() | ^~~ | int main.c: In function 'main': main.c:14:1: error: expected declaration or statement at end of input 14 | return 0; | ^~~~~~ main.c:14:1: error: expected declaration or statement at end of input
s809554222
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\n"); } else{ printf("NO\n"); return 0;
main.c: In function 'main': main.c:4:1: error: unknown type name 'Int'; did you mean 'int'? 4 | Int a,b,c; | ^~~ | int main.c:14:1: error: expected declaration or statement at end of input 14 | return 0; | ^~~~~~ main.c:14:1: error: expected declaration or statement at end of input
s817509690
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\n"); } else{ printf("NO\n"); return 0;
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'? 2 | Int main() | ^~~ | int main.c: In function 'main': main.c:4:1: error: unknown type name 'Int'; did you mean 'int'? 4 | Int a,b,c; | ^~~ | int main.c:14:1: error: expected declaration or statement at end of input 14 | ...
s052003187
p03759
Java
import java.util.*; 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(2B == A + C){ System.out.println("YES"); }else{ System.out.println("NO"); } } }
Main.java:10: error: ')' expected if(2B == A + C){ ^ Main.java:10: error: not a statement if(2B == A + C){ ^ Main.java:10: error: ';' expected if(2B == A + C){ ^ Main.java:12: error: 'else' without 'if' }else{ ^ 4 errors
s897677244
p03759
C++
#include <bits/stdc++.h> using namespace std; #define LOOP(i,o) for(i=0;i<o;i++) #define ALL(a) (a).begin(),(a).end() int main() { int n; cin>>n; vector<string> s(n); int i=0; LOOP(i,n){ cin>>s[i]; sort(ALL(s[i])); } vector<int> a(26,51); LOOP(i,n){ for(int j=0;j<s.at(i).size();...
a.cc: In function 'int main()': a.cc:32:7: error: 'ans' was not declared in this scope; did you mean 'abs'? 32 | ans+=(char)(i+'a'); | ^~~ | abs a.cc:35:9: error: 'ans' was not declared in this scope; did you mean 'abs'? 35 | cout<<ans<<endl; | ^~~ | abs...
s668298495
p03759
C++
(print (if (= (+ (- (read) (* 2 (read))) (read)) 0) "YES" "NO"))
a.cc:1:7: error: expected ')' before '(' token 1 | (print (if (= (+ (- (read) (* 2 (read))) (read)) 0) "YES" "NO")) | ~ ^~ | )
s756538054
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; }
a.cc: In function 'int main()': a.cc:6:13: error: lvalue required as left operand of assignment 6 | if(b-a=c-b){ | ~^~
s961935517
p03759
C++
#include<bits/stdc++.h> using namespace std; int main() { int a[3]; for(int i=0;i<3;i++) { cin>>a[i]; } sort(a,a+3) if((a[1]-a[0])==(a[2]-a[1])) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:10:14: error: expected ';' before 'if' 10 | sort(a,a+3) | ^ | ; 11 | if((a[1]-a[0])==(a[2]-a[1])) | ~~ a.cc:15:3: error: 'else' without a previous 'if' 15 | else | ^~~~
s885549951
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int n,m,h; cin>>n>>m>h; if(b-a==c-b) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:14: error: no match for 'operator>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 7 | cin>>n>>m>h; | ~~~~~~~~~^~ | | | | | int | std::basic_istream<cha...
s649962066
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"; else cout<<"NO"; return 0; }
a.cc:1:23: error: missing terminating > character 1 | #include<bits/stdc++.h | ^
s343483256
p03759
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define all(x) (x).begin(),(x).end() #define pb push_back typedef long long ll; const int INF = 1000000000; const long INF64 = 1000000000000000ll; const ll MOD = 1000000007ll; int main(){ int a>>b>>c; std::cin >> a>>b>...
a.cc: In function 'int main()': a.cc:13:14: error: expected initializer before '>>' token 13 | int a>>b>>c; | ^~ a.cc:14:21: error: 'a' was not declared in this scope 14 | std::cin >> a>>b>>c; | ^ a.cc:14:24: error: 'b' was not declared in this scope; d...
s342107521
p03759
C++
<>!~/ .* /;print$`-$&*2+$'?NO:YES
a.cc:1:18: error: stray '`' in program 1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES | ^ a.cc:1:26: warning: missing terminating ' character 1 | <>!~/ .* /;print$`-$&*2+$'?NO:YES | ^ a.cc:1:26: error: missing terminating ' character 1 | <>!~/ .* /;print$`-$&*2+$...
s534156040
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:8:26: error: expected ';' before ':' token 8 | cout << "YES" << endl: | ^ | ;
s801722869
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:7: error: lvalue required as left operand of assignment 7 | if(b-a=c-b) { | ~^~ a.cc:8:26: error: expected ';' before ':' token 8 | cout << "YES" << endl: | ^ | ;
s447929270
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; } }
a.cc: In function 'int main()': a.cc:6:16: error: 'C' was not declared in this scope 6 | cin>>a>>b>>C; | ^
s877064294
p03759
C++
#include<iostream> using namespace std; int main(){ int a, b. c; cin >> a >> b >> c; if(b-a == c-b) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:6:11: error: expected initializer before '.' token 6 | int a, b. c; | ^ a.cc:7:15: error: 'b' was not declared in this scope 7 | cin >> a >> b >> c; | ^ a.cc:7:20: error: 'c' was not declared in this scope 7 | cin >> a >> b >> c;...
s776060241
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"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:8:23: error: expected ';' before 'cout' 8 | if ((b - a == c - b) cout << "YES"; | ^~~~~ | ; a.cc:9:3: error: expected primary-expression before 'else' 9 | else cout << "NO"; | ^~~~ a.cc:8:38: error: expected...
s845669817
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b ,c; cin >> a >> b >> c; if ((abs(a-b) == abs(b-c)) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:8:29: error: expected ';' before 'cout' 8 | if ((abs(a-b) == abs(b-c)) cout << "YES"; | ^~~~~ | ; a.cc:9:3: error: expected primary-expression before 'else' 9 | else cout << "NO"; | ^~~~ a.cc:8:4...
s390396826
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" else cout << "NO" return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: expected ';' before 'else' 8 | cout << "YES" | ^ | ; 9 | else | ~~~~
s646059615
p03759
C++
#include<bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if( abs(a-b) == abs(b-c) ) cout << "YES" else cout << "NO" return 0; }
a.cc: In function 'int main()': a.cc:8:18: error: expected ';' before 'else' 8 | cout << "YES" | ^ | ; 9 | else | ~~~~
s055387134
p03759
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(ll i=0; i<n; i++) typedef long long ll; typedef long long unsigned int llu; ll mod = 1000000007; void solve(){ int a,b,c; cin >> a >> b >> c; if(b-a==c-b) cout << "YES" << endl; else cout << "NO" << endll } int main(){ cin.tie(0); ...
a.cc: In function 'void solve()': a.cc:14:26: error: 'endll' was not declared in this scope 14 | else cout << "NO" << endll | ^~~~~
s925383022
p03759
C++
function Main(input){ input=input.split("\n"); tmp=input[0].split(" "); var a = parseInt(tmp[0], 10); var b = parseInt(tmp[1], 10); var c = parseInt(tmp[2], 10); if(b-a == c-b){ console.log("YES"); }else{ console.log("NO"); } } Main(require("fs").readFileSync("/dev/stdin", "utj8"));
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'? 1 | function Main(input){ | ^~~~~~~~ | union a.cc:14:5: error: expected constructor, destructor, or type conversion before '(' token 14 | Main(require("fs").readFileSync("/dev/stdin", "utj8")); | ^
s559308222
p03759
C++
#include <iostream> using namespace std; int main(void){ 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:11:30: error: expected '}' at end of input 11 | cout << "NO" << endl; | ^ a.cc:3:15: note: to match this '{' 3 | int main(void){ | ^
s948696338
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int A; int B; int C; cin>>A>>B>>C; if(A+C=2*B) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc: In function 'int main()': a.cc:7:7: error: lvalue required as left operand of assignment 7 | if(A+C=2*B) | ~^~
s123378562
p03759
C++
#include<bits/stdc++.h> using namespace std; int main(){int a,b,c;cin>>a>>b>>c;cout<<b-a==c-b?"YES":"NO"<<endl;}
a.cc: In function 'int main()': a.cc:3:44: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 3 | int main(){int a,b,c;cin>>a>>b>>c;cout<<b-a==c-b?"YES":"NO"<<endl;} | ~~~~~~~~~^~~~~ | | ...
s397432809
p03759
C++
#include<iostream> using namespace std; #include<bits/stdc++.h> int main(){ int a, b, c; cin >> a >> b >> c; int k = abs(b-a); int l = abs(c-b); if (k==l&&K!=0){ cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:14: error: 'K' was not declared in this scope 10 | if (k==l&&K!=0){ | ^