submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s885259776
p03759
C++
#include<iostream> #include<string> #include<vector> using namespace std; int main() { int c, a, b; cin >> a >> b >> c; if ((b - a) == (c - b)) { cout << "YES" << "\n"; } else { cout << "NO" << "\n"; }
a.cc: In function 'int main()': a.cc:17:10: error: expected '}' at end of input 17 | } | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s504364587
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;} else if {cout << "NO" << endl;} }
a.cc: In function 'int main()': a.cc:8:11: error: expected '(' before '{' token 8 | else if {cout << "NO" << endl;} | ^ | (
s066880360
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) puts("YES); else puts("NO"); return 0; }
a.cc:8:22: warning: missing terminating " character 8 | puts("YES); | ^ a.cc:8:22: error: missing terminating " character 8 | puts("YES); | ^~~~~~ a.cc: In function 'int main()': a.cc:9:9: error: expected primary-expression be...
s932332896
p03759
C++
#include<bits/stdc++.h> using namespace std; int main() { cin>>a>>b>>c; if (b-a==c-b) cout<<"Yes"; else cout<<"No"; return 0; }
a.cc: In function 'int main()': a.cc:5:10: error: 'a' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:13: error: 'b' was not declared in this scope 5 | cin>>a>>b>>c; | ^ a.cc:5:16: error: 'c' was not declared in this scope 5 | cin>>a>>b>>c; | ...
s616037900
p03759
C++
#include <cstdio> 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:7:10: error: extended character − is not valid in an identifier 7 | if(b − a == c − b){ | ^ a.cc:7:19: 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: expected ')' before '\...
s076234705
p03759
C++
#include <stdio.h> int main(void) { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); if(a<b){ if(b+b-a=c){ printf("YES\n"); return 0; } }if(a>b){ if(b+b-c=a){ printf("YES\n"); return 0; } } printf("NO\n"); return 0; }
a.cc: In function 'int main()': a.cc:7:23: error: lvalue required as left operand of assignment 7 | if(b+b-a=c){ | ~~~^~ a.cc:12:23: error: lvalue required as left operand of assignment 12 | if(b+b-c=a){ | ~~~^~
s327927126
p03759
C++
#include<bits/stdc++.h> using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; sort(a+1,a+4); if(a+c==b*2) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
In file included from /usr/include/c++/14/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51, from a.cc:1: /usr/include/c++/14/bits/stl_algo.h: In instantiation of 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAcc...
s440771411
p03759
C++
#include<bits/stdc++.h> using namespace std; int a[10000],b; int main() { cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+4); if(a[2]-a[1]==a[3]-a[2]) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } } return 0; }
a.cc:17:5: error: expected unqualified-id before 'return' 17 | return 0; | ^~~~~~ a.cc:18:1: error: expected declaration before '}' token 18 | } | ^
s343827110
p03759
C++
#include<iostream> #include<cstdio> 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:10:13: error: expected ';' before '}' token 10 | return 0 | ^ | ; 11 | } | ~
s610565365
p03759
C++
0
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 0 | ^
s016878061
p03759
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(b-a = c-d) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: 'd' was not declared in this scope 8 | if(b-a = c-d) cout << "YES" << endl; | ^
s869156270
p03759
C++
#include <bits/stdc++.h> #define REP(i,n) for(int i=0;i<(n);i++) const int MOD=(int)1e9+7; using namespace std; int main(){ int a,b,c; cin >> a >> b >> c; if(b-a == c-d) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:8:17: error: 'd' was not declared in this scope 8 | if(b-a == c-d) cout << "YES" << endl; | ^
s681192599
p03759
C++
#include<bits/stdc++.h> using namespace std; int c,a,b; int main() { cin>>a>>b>>c; if (b-a=c-b) cout<<"YES"<<endl; else cout<<"NO"; }
a.cc: In function 'int main()': a.cc:8:8: error: lvalue required as left operand of assignment 8 | if (b-a=c-b) | ~^~
s030243465
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:39: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << (b-a == c-b) ? "YES" : "NO" << endl; | ~~~~~^~~~~~~
s646397567
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:33: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 8 | cout << b-a = c-b ?"YES":"NO" << endl; | ~~~~~^~~~~~~
s278244443
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:15: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 8 | cout << b-a == c-b ?"YES":"NO" << endl; | ~~~~~~~~~~~ ^~ ~~~ | | | | | int | std::basic_ostream<char> a.cc:8:15:...
s099787153
p03759
C++
#include<iostream> #include<algorithm> #include<string> #include<map> #include<set> #include<vector> #include<string.h> #include<math.h> #include<stdio.h> #include<queue> #include<utility> #include<cstdio> #include<cstring> #include<new> #include<new.h> #include<float.h> #include<ctype.h> #include<cfloat> #include<cmat...
a.cc:15:9: fatal error: new.h: No such file or directory 15 | #include<new.h> | ^~~~~~~ compilation terminated.
s457142322
p03759
C++
#include<algorithm> #include<iostream> using namespace std; int a[5]={0,0,0,0,0}; int main() { cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); if(a[1]-a[0]==a[2]-a[1]) cout<<"YES"; else <<"NO"; return 0; }
a.cc: In function 'int main()': a.cc:10:14: error: expected primary-expression before '<<' token 10 | else <<"NO"; | ^~
s623820339
p03759
C++
#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int main() { int i[4]; scanf("%d%d%d",&a[1],a[2],a[3]); sort(i+1,i+4); if(i[2]-i[1]==i[3]-i[2]) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:8:21: error: 'a' was not declared in this scope 8 | scanf("%d%d%d",&a[1],a[2],a[3]); | ^
s931716382
p03759
C++
#include<iostream> #include<algorithm> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; sort(a,b); if(b-a==c-b) { cout<<"YES"<<endl; } else { cout<<"NO"<<endl; } }
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...
s736628908
p03759
C++
#include <iostream> using namespace std; int main() { int a; int b; int c; int d; cin>>a>>endl; cin>>b>>endl; cin>>c>>endl; d=b-a; e=c-b; if (d>0,e>0,d==e) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:11: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 11 | cin>>a>>endl; | ~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostream:4...
s009815670
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:8:12: error: extended character − is not valid in an identifier 8 | if(b−a==c−b){ | ^ a.cc:8:17: error: extended character − is not valid in an identifier 8 | if(b−a==c−b){ | ^ a.cc: In function 'int main()': a.cc:8:12: error: 'b\U00002212a' was not de...
s266095340
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"}
a.cc: In function 'int main()': a.cc:9:11: error: expected ';' before '}' token 9 | cout<<"NO"} | ^ | ;
s004846683
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:8:12: error: extended character − is not valid in an identifier 8 | if(b−a==c−b) | ^ a.cc:8:17: error: extended character − is not valid in an identifier 8 | if(b−a==c−b) | ^ a.cc: In function 'int main()': a.cc:8:12: error: 'b\U00002212a' was not decl...
s925232801
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:8:12: error: extended character − is not valid in an identifier 8 | if(b−a==c−b) | ^ a.cc:8:17: error: extended character − is not valid in an identifier 8 | if(b−a==c−b) | ^ a.cc: In function 'int main()': a.cc:8:12: error: 'b\U00002212a' was not decl...
s530783935
p03759
C++
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a>=1&&a>=100&&b>=1&&b<=100&&c>=1&&c<=100) { if(b−a==c−b) { cout<<"YES"; } else{ cout<<"NO"; } } return 0; }
a.cc:9:12: error: extended character − is not valid in an identifier 9 | if(b−a==c−b) | ^ a.cc:9:17: error: extended character − is not valid in an identifier 9 | if(b−a==c−b) | ^ a.cc: In function 'int main()': a.cc:9:12: error: 'b\U00002212a' was not decl...
s588145402
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: In function 'int main()': a.cc:8:17: error: expected ';' before 'if' 8 | cin>>a>>b>>c | ^ | ; 9 | 10 | if((b-a)==(c-b)) | ~~
s174602273
p03759
C++
#include <iostream> using namespace std; int main() { int a; int b; int c; int d; cin>>a>>endl; cin>>b>>endl; cin>>c>>endl; d=b-a; e=c-b; if (d>0,e>0,d==e) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:11:11: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and '<unresolved overloaded function type>') 11 | cin>>a>>endl; | ~~~~~~^~~~~~ In file included from /usr/include/c++/14/iostream:4...
s995774281
p03759
C++
#include<queue> #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; int main() { scanf("%d%d%d",&a,&b,&c); if (c-b==b-a) printf("YES"); else printf("NO"); return 0; }
a.cc: In function 'int main()': a.cc:9:25: error: 'a' was not declared in this scope 9 | scanf("%d%d%d",&a,&b,&c); | ^ a.cc:9:28: error: 'b' was not declared in this scope 9 | scanf("%d%d%d",&a,&b,&c); | ^ a.cc:9:31: error: 'c' was n...
s670724946
p03759
C++
#include<bits/stdc++.h> int a[10001]; using namespace std; int main() { int a,b,c,d; cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+3+1); if(a[2]-a[1]==a[3]-a[2]) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: invalid types 'int[int]' for array subscript 7 | cin>>a[1]>>a[2]>>a[3]; | ^ a.cc:7:21: error: invalid types 'int[int]' for array subscript 7 | cin>>a[1]>>a[2]>>a[3]; | ^ a.cc:7:27: error: invalid type...
s933360482
p03759
C++
#include<bits/stdc++.h> int a[10001]; using namespace std; int main() { int a,b,c,d; cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+3+1); if(a[2]-a[1]==a[3]-a[2]) cout<<"YES"<<endl; else cout<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: invalid types 'int[int]' for array subscript 7 | cin>>a[1]>>a[2]>>a[3]; | ^ a.cc:7:21: error: invalid types 'int[int]' for array subscript 7 | cin>>a[1]>>a[2]>>a[3]; | ^ a.cc:7:27: error: invalid type...
s595258815
p03759
C++
#include<iostream> #include<algorithm> using namespace std; long long a,b,c; int main() { 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:15: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 9 | else cout<"NO"<<endl; | ~~~~^~~~~~
s952492868
p03759
C++
#include <iostream> #include<math.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int r = sqrt((b-a)*(b-a)); int p= sqrt((c-b)*(c-b)); if(r==p){ cout<<"YES"<<endl; } else if(r!=p){ cout<<"NO"<<endl; } return 0;
a.cc: In function 'int main()': a.cc:18:14: error: expected '}' at end of input 18 | return 0; | ^ a.cc:6:11: note: to match this '{' 6 | int main(){ | ^
s270079234
p03759
C++
^ Select Code #include<iostream> #include<tgmath.h> #include<math.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int r = sqrt((b-a)*(b-a)); int p= sqrt((c-b)*(c-b)); if(r==p){ cout<<"Yes"<<endl; } else if(r!=p){ cout<<"NO"<<endl; } return 0; }
a.cc:1:1: error: expected unqualified-id before '^' token 1 | ^ | ^ In file included from /usr/include/c++/14/iosfwd:42, from /usr/include/c++/14/ios:40, from /usr/include/c++/14/ostream:40, from /usr/include/c++/14/iostream:41, from a.cc:4: ...
s844523475
p03759
C++
#include<iostream> #include<tgmath.h> #include<math.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; int r = sqrt((b-a)*(b-a)); int p= sqrt((c-b)*(c-b)); if((r==p){ cout<<"Yes"<<endl; } else if(r!=p){ cout<<"NO"<<endl; } return 0; }
a.cc: In function 'int main()': a.cc:14:10: error: expected ';' before '{' token 14 | if((r==p){ | ^ | ; a.cc:17:1: error: expected primary-expression before 'else' 17 | else if(r!=p){ | ^~~~ a.cc:16:2: error: expected ')' before 'else' 16 | } | ^ | ) 17 | e...
s748836455
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{ coout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:9: error: 'coout' was not declared in this scope 10 | coout << "NO" << endl; | ^~~~~
s024186192
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.
s441165116
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:11: fatal error: iostream : No such file or directory 1 | # include < iostream > | ^~~~~~~~~~~~ compilation terminated.
s428578120
p03759
C++
#include <iostream> using namespace std; int main(){ char a, b, c; cin >> a >> b >> c; cout << b-a == c-b ? "YES" : "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:15: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 8 | cout << b-a == c-b ? "YES" : "NO" << endl; | ~~~~~~~~~~~ ^~ ~~~ | | | | | int | std::basic_ostream<char> a.cc:8:...
s383277987
p03759
C++
#include <iostream> using namespace std; int main(){ char a, b, c; cin >> a >> b >> c; cout << b-a == c-b ? "YES" : "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: no match for 'operator==' (operand types are 'std::basic_ostream<char>' and 'int') 7 | cout << b-a == c-b ? "YES" : "NO" << endl; | ~~~~~~~~~~~ ^~ ~~~ | | | | | int | std::basic_ostream<char> a.cc:7:...
s760141889
p03759
C++
#include<iostream> using namespace std; int main(void) { int a, b, c; cin >> a >> b >> c; if (b-a == c-b ) cout << endl; } #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:13:5: error: redefinition of 'int main()' 13 | int main(void) { | ^~~~ a.cc:4:5: note: 'int main()' previously defined here 4 | int main(void) { | ^~~~
s224500681
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:5: error: lvalue required as left operand of assignment 7 | if(b-a = c-b){ | ~^~
s487518287
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if(b-a = c-a){ cout << "YES" << endl; } else{ cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:7:5: error: lvalue required as left operand of assignment 7 | if(b-a = c-a){ | ~^~
s069670330
p03759
C++
#include<bits/stdc++.h> using namesapce 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 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s604488755
p03759
C++
#include<bits/stdc++.h> using namesapce 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:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~ a.cc: In function 'int main()': a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | cin>>a>>b>>c; | ^~~ | std::cin In file included from /us...
s738315984
p03759
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; if(a==b && b==c){ cout << "YES" << endl; } else cout << "NO" << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:19: error: 'c' was not declared in this scope 9 | if(a==b && b==c){ | ^
s254561748
p03759
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a>>b>>c; int f = 2 * b - a - c; if (f == 0) { cout << "YES"; } else { cout << "NO; } }
a.cc:10:24: warning: missing terminating " character 10 | else { cout << "NO; } | ^ a.cc:10:24: error: missing terminating " character 10 | else { cout << "NO; } | ^~~~~~ a.cc: In function 'int main()': a.cc:11:1: error: expected primary-ex...
s748284403
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; } }
a.cc: In function 'int main()': a.cc:7:17: error: 'YES' was not declared in this scope 7 | cout << YES << endl; | ^~~ a.cc:10:12: error: 'NO' was not declared in this scope 10 | cout << NO << endl; | ^~
s850993884
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"<<end; } else(b-a!=c-b){ cout<<"NO"<<endl; } }
a.cc: In function 'int main()': a.cc:8:28: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 8 | cout<<"YES"<<end; | ~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/14/iostream:41, ...
s145521689
p03759
Java
import java.util.Scanner; 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.out.print("NO") } } }
Main.java:8: error: illegal character: '\u2212' if(b?a == c?b){ ^ Main.java:8: error: illegal character: '\u2212' if(b?a == c?b){ ^ Main.java:8: error: not a statement if(b?a == c?b){ ^ Main.java:8: error: not a statement if(b?a == c?b){ ^ Main.java:8: e...
s630252998
p03759
C++
#include <iostream> int main() { int a,b,c; std::cin >> a >> b >> c; if(b-a == c-b) { std::cout << "YES" << endl; } else { std::cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:10:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'? 10 | std::cout << "YES" << endl; | ^~~~ | std::endl In file included from /usr/include/c++/14/ios...
s985480945
p03759
C++
#include <iostream> int main() { int a,b,c; cin >> a >> b >> c; if(b-a == c-b) { std::cout << "YES" << endl; } else { std::cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | 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; ...
s239651131
p03759
C++
#include <iostream> 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:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 6 | 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; ...
s187246187
p03759
C++
#include <stdio.h> int main(){ int a, b, c, s, e, n, i, c=0; scanf("%d %d %d", &a, &b, &c); if(b-a == c-b) printf("YES"); else printf("NO"); }
a.cc: In function 'int main()': a.cc:4:30: error: redeclaration of 'int c' 4 | int a, b, c, s, e, n, i, c=0; | ^ a.cc:4:15: note: 'int c' previously declared here 4 | int a, b, c, s, e, n, i, c=0; | ^
s244056685
p03759
C++
#include <stdio.h> int main(){ int a, b, c, s, e, n, i, c=0; scanf("%d %d %d", &a, &b, &c); if(b-a == c-b) printf("YES"); else printf("NO") }
a.cc: In function 'int main()': a.cc:4:30: error: redeclaration of 'int c' 4 | int a, b, c, s, e, n, i, c=0; | ^ a.cc:4:15: note: 'int c' previously declared here 4 | int a, b, c, s, e, n, i, c=0; | ^ a.cc:9:32: error: expected ';' before '}' token ...
s807147838
p03759
C++
a, b, c = map(int,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,input().split()) | ^
s871244139
p03759
C++
#include <iostream> int main(void) { int a,b,c; std::cin>>a>>b>>c; std::cout<<((a-b==b-c)?”YES”:”NO”)<<std::endl; return 0; }
a.cc:6:24: error: extended character ” is not valid in an identifier 6 | std::cout<<((a-b==b-c)?”YES”:”NO”)<<std::endl; | ^ a.cc:6:24: error: extended character ” is not valid in an identifier a.cc:6:30: error: extended character ” is not valid in an identifier 6 | std::cout<<((a-b=...
s418888010
p03759
C++
#include <iostream> int main(void) { int a,b,c; std::cin>>a>>b>>c; std::cout<<(a-b==b-c?”YES”:”NO”)<<std::endl; return 0; }
a.cc:6:22: error: extended character ” is not valid in an identifier 6 | std::cout<<(a-b==b-c?”YES”:”NO”)<<std::endl; | ^ a.cc:6:22: error: extended character ” is not valid in an identifier a.cc:6:28: error: extended character ” is not valid in an identifier 6 | std::cout<<(a-b==b-c?...
s394861999
p03759
C++
#include <iostream> using namesapce std; int main(){ int a; int b; }
a.cc:2:7: error: expected nested-name-specifier before 'namesapce' 2 | using namesapce std; | ^~~~~~~~~
s488575528
p03759
C
#include <stdio.h> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%s\n", c-b==b-a?"YES","NO"); return 0; }
main.c: In function 'main': main.c:6:37: error: expected ':' before ')' token 6 | printf("%s\n", c-b==b-a?"YES","NO"); | ^ | :
s519927471
p03759
C++
int main( int a,b,c; cin>>a>>b>>c; if(b-a==c-b){ cout<<"Yes"<<endl; } else{ cout<<"No" } return0 ; )
a.cc:2:7: error: 'b' has not been declared 2 | int a,b,c; | ^ a.cc:2:9: error: 'c' has not been declared 2 | int a,b,c; | ^ a.cc:2:10: error: expected ')' before ';' token 2 | int a,b,c; | ^ | ) a.cc:1:9: note: to match this '(' 1 | int main( ...
s946495504
p03759
C++
3 2 1
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 3 2 1 | ^
s022941775
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: In function 'int main()': a.cc:10:7: error: expected ')' before '$$' 10 | if(b-a $$ c-b){ | ~ ^~~ | )
s503411091
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: In function 'int main()': a.cc:10:7: error: expected ')' before '$$' 10 | if(b-a $$ c-b){ | ~ ^~~ | ) a.cc:16:9: error: expected ';' before '}' token 16 | return 0 | ^ | ; 17 | } | ~
s316548824
p03759
C++
#include <iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << (b - a == c - d ? "YES" : "NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:27: error: 'd' was not declared in this scope 9 | cout << (b - a == c - d ? "YES" : "NO") << endl; | ^
s383598773
p03759
C++
#include<iostream> #include<string> #include<algorithm> #include<stdio.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(b-a==c-b)cout<<"YES"<<endl; else count<<"NO"<<endl; return 0; }
a.cc: In function 'int main()': a.cc:13:15: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [3]' to binary 'operator<<' 13 | else count<<"NO"<<endl; | ~~~~~^~~~~~
s511611071
p03759
C++
$0=($2-$1==$3-$2?"YES":"NO")
a.cc:1:1: error: '$0' does not name a type 1 | $0=($2-$1==$3-$2?"YES":"NO") | ^~
s833170671
p03759
C++
#include <iostream> using namespace std; int main() { int x, y, z; cin >> x >> y; if(b - a == c - b) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
a.cc: In function 'int main()': a.cc:6:6: error: 'b' was not declared in this scope 6 | if(b - a == c - b) { | ^ a.cc:6:10: error: 'a' was not declared in this scope 6 | if(b - a == c - b) { | ^ a.cc:6:15: error: 'c' was not declared in this scope 6 | if(b - a == c - b) { ...
s344514318
p03759
C
#include<stdio.h> int main(){ int a; int b; int 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:11:6: error: stray '\342' in program 11 | if((b<U+2212>a)==(c<U+2212>b)){ | ^~~~~~~~ main.c:11:6: error: expected ')' before 'a' 11 | if((b−a)==(c−b)){ | ~ ^~ | ) main.c:11:13: error: stray '\342' in program 11 | if((b<U+2212>a)==(c<U+2212>b)){ ...
s833114416
p03759
C
#include<stdio.h> int main(){ int a; int b; int c; scanf("%d %d %d",&a,&b,&c); if((b−a)!(c−b)){ printf("NO\n"); }else{ printf("YES\n"); } return 0; }
main.c: In function 'main': main.c:11:6: error: stray '\342' in program 11 | if((b<U+2212>a)!(c<U+2212>b)){ | ^~~~~~~~ main.c:11:6: error: expected ')' before 'a' 11 | if((b−a)!(c−b)){ | ~ ^~ | ) main.c:11:9: error: expected ')' before '!' token 11 | if((b−a)!(c−b)){ | ~ ...
s464751853
p03759
C
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if((b−a)!(c−b)){ printf("NO\n"); }else{ printf("YES\n"); } return 0; }
main.c: In function 'main': main.c:9:6: error: stray '\342' in program 9 | if((b<U+2212>a)!(c<U+2212>b)){ | ^~~~~~~~ main.c:9:6: error: expected ')' before 'a' 9 | if((b−a)!(c−b)){ | ~ ^~ | ) main.c:9:9: error: expected ')' before '!' token 9 | if((b−a)!(c−b)){ | ~ ...
s360238271
p03759
C
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if((b−a)!(c−b)){ printf("NO\n"); }else{ printf("YES\n"); } }
main.c: In function 'main': main.c:9:6: error: stray '\342' in program 9 | if((b<U+2212>a)!(c<U+2212>b)){ | ^~~~~~~~ main.c:9:6: error: expected ')' before 'a' 9 | if((b−a)!(c−b)){ | ~ ^~ | ) main.c:9:9: error: expected ')' before '!' token 9 | if((b−a)!(c−b)){ | ~ ...
s698249531
p03759
C
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(b−a!c−b){ printf("NO\n"); }else{ printf("YES\n"); } }
main.c: In function 'main': main.c:9:5: error: stray '\342' in program 9 | if(b<U+2212>a!c<U+2212>b){ | ^~~~~~~~ main.c:9:5: error: expected ')' before 'a' 9 | if(b−a!c−b){ | ~ ^~ | ) main.c:9:9: error: stray '\342' in program 9 | if(b<U+2212>a!c<U+2212>b){ | ...
s893018220
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"); } }
main.c: In function 'main': main.c:9:5: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ^~~~~~~~ main.c:9:5: error: expected ')' before 'a' 9 | if(b−a=c−b){ | ~ ^~ | ) main.c:9:9: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ...
s232671431
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") } }
main.c: In function 'main': main.c:9:5: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ^~~~~~~~ main.c:9:5: error: expected ')' before 'a' 9 | if(b−a=c−b){ | ~ ^~ | ) main.c:9:9: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ...
s757309886
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") } }
main.c: In function 'main': main.c:9:5: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ^~~~~~~~ main.c:9:5: error: expected ')' before 'a' 9 | if(b−a=c−b){ | ~ ^~ | ) main.c:9:9: error: stray '\342' in program 9 | if(b<U+2212>a=c<U+2212>b){ | ...
s404525721
p03759
Java
import java.util.Scanner; public class main{ public static void main (String[] args){ Scanner scan = new Scanner(System.in); String kisupas = scan.nextLine(); String gusupas = scan.nextLine(); String[] kisu = kisupas.split("", 0); String[] gusu = gusupas.split("", 0); for(int i=0; i<kisu.length; i++){ Syst...
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s596850907
p03759
Java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); if (b-a == c-b) { System.out.println("YES"); } else { System.o...
Main.java:13: error: bad operand types for binary operator '-' if (b-a == c-b) { ^ first type: String second type: String Main.java:13: error: bad operand types for binary operator '-' if (b-a == c-b) { ^ first type: String second type: String 2 errors
s801936465
p03759
Java
import java.util.Scanner; import java.util.Random; import java.util.Arrays; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String b = sc.next(); String c = sc.next(); if (b-a == c-b) { System.out.println("YES"); } else { System.o...
Main.java:18: error: reached end of file while parsing } ^ 1 error
s524657228
p03759
C
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> void main(){ int a,b,c; scanf_s("%d %d %d",&a,&b,&c); if(b-a == c-b){ printf("Yes\n"); }else{ printf("No\n"); } }
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 %d %d",&a,&b,&c); | ^~~~~~~ | scanf
s784178755
p03759
C++
a, b, c = map(int(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(input().split(" "))); | ^ a.cc:3:1: error: expected unqualified-id before 'if' 3 | if b-a == c-b: | ^~ a.cc:5:1: error: expected unqualified-id before 'else' 5 | else: | ^~~~
s154006085
p03759
C++
#include <iostream > using namespace std; int main(){ string E, O; cin >> E >> O; for(int i=0; i < E.size(); i++){ if (i < O.size()) cout << O[i]; } return 0; }
a.cc:1:10: fatal error: iostream : No such file or directory 1 | #include <iostream > | ^~~~~~~~~~~ compilation terminated.
s710463335
p03759
Java
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); String[] jal = new String[3]; int[] ana = new int[3]; jal = l...
Main.java:14: error: unexpected type if(ana[1]-ana[0]=ana[2]-ana[1]) ^ required: variable found: value 1 error
s819918218
p03759
Java
public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(c - a == b ){ System.out.println("YES"); }else{ System.out.println("NO"); } }}
Main.java:3: error: cannot find symbol public static void main(String[] args) throws IOException { ^ symbol: class IOException location: class Main Main.java:5: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location...
s417792722
p03759
C++
/* @CopyRight: Script by vimer(micro.script@hotmail.com). All rights reserved. * @Version: 1.0 * @Date: Saturday, May 20, 2017 * @Description: A - ι⊥l * @Environment: Code::Blocks 16.01, GCC 4.9. */ #include<iostream> using namespace std; int main(){ int a = 0, b = 0, c = 0; cin >> a >> b >> c...
a.cc: In function 'int main()': a.cc:12:10: error: lvalue required as left operand of assignment 12 | if(b - a = c - b) cout << "YES" ; | ~~^~~
s803872867
p03759
C++
#include<cstdio> #include<algorithm> #include<vector> #include<deque> #include<string> #include<iostream> #include<tuple> #include<utility> #include<set> #include<queue> using namespace std; typedef long long int llint; const llint big=((llint)1<<(llint)30); #define mt make_tuple #define mp make_pair #define fi first #...
a.cc: In function 'int main()': a.cc:27:26: error: expected primary-expression before '<' token 27 | else{cout<<"NO"<<<endl;} | ^
s858703379
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; } }
a.cc: In function 'int main()': a.cc:6:9: error: lvalue required as left operand of assignment 6 | if(b-a=c-b) { | ~^~
s080622472
p03759
Java
import java.util.Scanner; public class A.java { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { 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:2: error: '{' expected public class A.java { ^ 1 error
s143125013
p03759
Java
import java.util.Scanner; public class A { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { 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:2: error: class A is public, should be declared in a file named A.java public class A { ^ 1 error
s640795728
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; } else{ cout<<"NO"<<endl; } return 0 }
a.cc: In function 'int main()': a.cc:6:6: error: lvalue required as left operand of assignment 6 | if (a-b=b-c){ | ~^~ a.cc:12:9: error: expected ';' before '}' token 12 | return 0 | ^ | ; 13 | } | ~
s988435311
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; return 0; }
a.cc: In function 'int main()': a.cc:7:32: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<' 7 | cout<<(b-a==c-b)?"YES":"NO"<<endl; | ~~~~^~~~~~
s055049232
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if (b - a == c - d) cout << "YES" << endl; else cout << "NO" << endl; }
a.cc: In function 'int main()': a.cc:9:26: error: 'd' was not declared in this scope 9 | if (b - a == c - d) | ^
s955894310
p03759
Java
import java.util.Scanner; public class MainA { 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(c-b==b-a) System.out.println("YES"); else System.out.println("NO"); } }
Main.java:4: error: class MainA is public, should be declared in a file named MainA.java public class MainA { ^ 1 error
s699029603
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:1:1: error: 'include' does not name a type 1 | include<iostream> | ^~~~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type...
s062660741
p03759
C++
package main import ( "fmt" ) func main(){ var a,b,c int fmt.Scan(&a, &b, &c) if b - a == c - b { fmt.Println("YES") } else { fmt.Println("NO") } }
a.cc:1:1: error: 'package' does not name a type 1 | package main | ^~~~~~~
s130548969
p03759
C++
int a,b,c; cin >> a >> b >>c; if (b-a == c-b){ cout << "YES"; }else{ cout << "NO"; }
a.cc:2:1: error: 'cin' does not name a type 2 | cin >> a >> b >>c; | ^~~ a.cc:3:1: error: expected unqualified-id before 'if' 3 | if (b-a == c-b){ | ^~ a.cc:5:2: error: expected unqualified-id before 'else' 5 | }else{ | ^~~~
s906812522
p03759
C++
int a,b,c; if (b-a == c-b){ cout << "YES"; }else{ cout << "NO" }
a.cc:2:1: error: expected unqualified-id before 'if' 2 | if (b-a == c-b){ | ^~ a.cc:4:2: error: expected unqualified-id before 'else' 4 | }else{ | ^~~~
s417283932
p03759
C++
#include<iostream> using namespace std; int main() { // 変数 int a,b,c; // 入力 cin >> a >> b >> c; ba = b - a; cb = c - b; if (ba == cb) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
a.cc: In function 'int main()': a.cc:13:9: error: 'ba' was not declared in this scope; did you mean 'b'? 13 | ba = b - a; | ^~ | b a.cc:14:9: error: 'cb' was not declared in this scope; did you mean 'c'? 14 | cb = c - b; | ^~ | c
s686171526
p03759
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println(abc058_a(sc.next(),sc.next(),sc.next())); } static String abc058_a(int a, int b, int c) { if (b - a == c - b) { return "YES"; ...
Main.java:6: error: incompatible types: String cannot be converted to int System.out.println(abc058_a(sc.next(),sc.next(),sc.next())); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
s487730184
p03759
C++
#include <bits/stdc++.h> 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:8:24: error: expected identifier before numeric constant 8 | if(a[1]-a[0]==[2]-a[1]) cout<<"YES\n"; | ^ a.cc: In lambda function: a.cc:8:26: error: expected '{' before '-' token 8 | if(a[1]-a[0]==[2]-a[1]) cout<<"YES\n"; | ...