submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s808063381 | p03759 | C++ | #include<iostream>
using namespace std;
#include<bits/stdc++.h>
int main(){
int a, b, c;
cin >> a >> b >> c;
int k = abc(b-a);
int l = abs(c-b);
if (k==l){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:12: error: 'abc' was not declared in this scope; did you mean 'abs'?
8 | int k = abc(b-a);
| ^~~
| abs
|
s773250182 | p03759 | C++ | #include<iostream>
using namespace std;
#include<bits/stdc++.h>
int main(){
int a, b, c;
cin >> a >> b >> c;
int k = abc(b-a), l = abs(c-b);
if (k==l){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:12: error: 'abc' was not declared in this scope; did you mean 'abs'?
8 | int k = abc(b-a), l = abs(c-b);
| ^~~
| abs
a.cc:9:11: error: 'l' was not declared in this scope
9 | if (k==l){
| ^
|
s632689697 | p03759 | C++ | #include <iostream>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <cassert>
#include <functional>
#include <string>
#include <sstream>
#include <cctype>
using namespace std;
int main(){
int A, B, C; cin >> A >> B >> C;
cout << (2 * B = A + C ? "YES" : "NO") ... | a.cc: In function 'int main()':
a.cc:17:14: error: lvalue required as left operand of assignment
17 | cout << (2 * B = A + C ? "YES" : "NO") << endl;
| ~~^~~
|
s250018817 | p03759 | C++ | #include <stdio.h>
int main(){
scanf("%d %d %d", &a, &b, &c);
if(b-a == c-b){
printf("YES\n");
} else {
printf("NO\n");
}
} | a.cc: In function 'int main()':
a.cc:4:28: error: 'a' was not declared in this scope
4 | scanf("%d %d %d", &a, &b, &c);
| ^
a.cc:4:32: error: 'b' was not declared in this scope
4 | scanf("%d %d %d", &a, &b, &c);
| ^
a.cc:4:36:... |
s642865204 | 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 if (b - a != c - b){
printd ("NO");
}
return 0;
} | main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'printd'; did you mean 'printf'? [-Wimplicit-function-declaration]
10 | printd ("NO");
| ^~~~~~
| printf
|
s060423609 | p03759 | C++ | #include<stdio.h>
int main(){
char a,b;
scanf("%c %c",&a,&b);
if(a=='H'){
if(b=='H') printf("H\n");
else printf("D\n")
}else {
if(b=='H') printf("D\n");
else printf("H\n");
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before '}' token
8 | else printf("D\n")
| ^
| ;
9 | }else {
| ~
|
s048657270 | 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:10: error: lvalue required as left operand of assignment
7 | if ((b - a) = (c - b)) {
| ~~~^~~~
|
s318369748 | p03759 | C++ | #include<iostream>
using nmaespace std;
int main()
{
long long a, b, c, d, e;
cin >> a >> b >> c;
d = b - a;
e = c - b;
if(d == e) cout << "YES";
else cout << "NO";
return 0;
} | a.cc:2:7: error: expected nested-name-specifier before 'nmaespace'
2 | using nmaespace std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: 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:
/... |
s251950843 | p03759 | C++ | #include<bits/stdc++.h> using namespace std; int main() { int a[4]; cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+4); if(a[3]-a[2]==a[2]-a[1]) cout<<"YES"; else cout<<"NO"; } | a.cc:1:25: warning: extra tokens at end of #include directive
1 | #include<bits/stdc++.h> using namespace std; int main() { int a[4]; cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+4); if(a[3]-a[2]==a[2]-a[1]) cout<<"YES"; else cout<<"NO"; }
| ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../... |
s296109992 | p03759 | C++ | 2 4 6 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 2 4 6
| ^
|
s525078733 | 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"
}
}
| a.cc: In function 'int main()':
a.cc:8:16: error: expected ';' before '}' token
8 | cout << "YES"
| ^
| ;
9 | }else{
| ~
a.cc:10:15: error: expected ';' before '}' token
10 | cout << "NO"
| ^
| ;
1... |
s182471796 | p03759 | C++ | #include<iostream>
#include<algorithm>
#include<string>
#include<cstdlib>
#include<map>
#include<iomanip>
#include<sstream>
#include<vector>
#include<stack>
#include<math.h>
#include<queue>
#include<complex>
using namespace std;
long long int solve(long long int n){
if(n==2){return 3;}
else if(n==4||n==6||n==9||n==1... | a.cc: In function 'int main()':
a.cc:28:15: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'long long int')
28 | cin>>a<<b<<c;
| ~~~~~~^~~
| | |
| | long long int
|... |
s386116641 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
string o,e;
cin>>o>>e;
int oLen=o.size(),eLen=e.size(), i;
if(oLen==eLen) {
for (i=0; i < oLen; i++) {
cout<<o[i]<<e[i];
}
} else {
for (i,i < eLen; i++) {
cout<<o[i]<<e[i];
}
cout<<o[o.size()-1];
}
cout<<endl... | a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before ')' token
16 | for (i,i < eLen; i++) {
| ^
| ;
|
s895961952 | p03759 | C++ | #include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <cmath>
#include <complex>
#include <deque>
#include <iterator>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <limits>
#include <iomanip>
using namespace std;
using ll=lo... | a.cc: In function 'int main()':
a.cc:35:13: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
35 | else "NO" << endl;
| ~~~~~^~~~~~~
|
s749548161 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
if(2b==a+c){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:6: error: unable to find numeric literal operator 'operator""b'
7 | if(2b==a+c){
| ^~
|
s791785146 | 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\n";
else
cout<<"NO\n";
return 0;
} | a.cc:1:9: fatal error: Bits/stdc++.h: No such file or directory
1 | #include<Bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s087273009 | 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";
}
| a.cc: In function 'int main()':
a.cc:6:5: error: lvalue required as left operand of assignment
6 | if(b-a=c-b)
| ~^~
|
s372417112 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout <<(a+c=2*b?"YES":"NO")<<endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
6 | cout <<(a+c=2*b?"YES":"NO")<<endl;
| ~^~
|
s017143956 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout <<(a+c=2*b?"YES":"NO") <<endl;
} | a.cc: In function 'int main()':
a.cc:6:12: error: lvalue required as left operand of assignment
6 | cout <<(a+c=2*b?"YES":"NO") <<endl;
| ~^~
|
s621635305 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
//long long
using ll = long long;
//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
// begin() end()
#define all(x) (x... | a.cc: In function 'int main()':
a.cc:38:11: error: expected ';' before '}' token
38 | return 0
| ^
| ;
39 | }
| ~
|
s848567756 | p03759 | C++ | #include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a-b=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(a-b=c-b){
| ~^~
a.cc:9:24: error: expected ';' before '}' token
9 | printf("Yes\n")
| ^
| ;
10 | }
| ... |
s673809760 | p03759 | C++ | int main()
{
int Z=0;
//-----------
int a=0,b=0,c=0;
cin>>a>>b>>c;
if(b-a==c-b)
{
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
//------------
//cin>>Z;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
8 | cin>>a>>b>>c;
| ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
12 | cout<<"YES"<<endl;
| ^~~~
a.cc:12:22: error: 'endl' was not declared in this scope
12 | cout<<"... |
s179608516 | 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:5:12: error: found ':' in nested-name-specifier, expected '::'
5 | int A,B,C:
| ^
| ::
a.cc:5:11: error: 'C' has not been declared
5 | int A,B,C:
| ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
6 | ... |
s153287436 | p03759 | Java | a, b, c = (int(x) for x in input().split())
if b - a == c - b:
print('YES')
else:
print('NO') | Main.java:1: error: class, interface, enum, or record expected
a, b, c = (int(x) for x in input().split())
^
Main.java:3: error: unclosed character literal
print('YES')
^
Main.java:3: error: unclosed character literal
print('YES')
^
Main.java:5: error: unclosed character literal
print('NO')
... |
s673886587 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
ll 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:18: error: expected unqualified-id before ',' token
9 | ll a, b, ,c;
| ^
|
s317483505 | p03759 | C++ | #include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep1(i,n) for (int i = 1; i <= (n); i++)
#define repi(i,a,b) for (int i = (a); i < (b); i++)
#define all(x) (x).begin(),(x).end()
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using vi... | a.cc: In function 'int main()':
a.cc:21: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>'})
21 | cout << (b-a == c-b ? "YES" : "NO") << endl;
| ~^~
| | |
| ... |
s234675586 | 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";
}
} | a.cc: In function 'int main()':
a.cc:7:8: error: lvalue required as left operand of assignment
7 | if (b-a=c-b) {
| ~^~
|
s639718665 | 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"<<endl;
else<<cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:7: error: expected primary-expression before '<<' token
7 | else<<cout<<"NO"<<endl;
| ^~
|
s791945931 | 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"<<endl;
else<<cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:27: error: 'B' was not declared in this scope
5 | int a,b,c;cin>>a>>B>>C;
| ^
a.cc:5:30: error: 'C' was not declared in this scope
5 | int a,b,c;cin>>a>>B>>C;
| ^
a.cc:7:7: error: expected p... |
s906100718 | p03759 | C++ | x,y,z = map(int,input().split())
if z-y==y-x:
print("YES")
else:
print("NO") | a.cc:1:1: error: 'x' does not name a type
1 | x,y,z = map(int,input().split())
| ^
|
s264699674 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
string a , b , c;
cin >> a >> b >> c;
vector<int> vec = {a, b , c};
sort(vec.begin(), vec.end());
for (int i = 0; i < vec.size(); i++) ;
if ((vec.at(1)-vec.at(0)) == (vec.at(2)-vec.at(1)){
cout << "YES" << endl;
}
else ... | a.cc: In function 'int main()':
a.cc:9:32: error: could not convert '{a, b, c}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
9 | vector<int> vec = {a, b , c};
| ^
| |
| <brace-enclose... |
s263997219 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(b-c==c-a)cout<<"YES"<<endl;
else cout<<"NO<<endl;
} | a.cc:8:14: warning: missing terminating " character
8 | else cout<<"NO<<endl;
| ^
a.cc:8:14: error: missing terminating " character
8 | else cout<<"NO<<endl;
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
9... |
s640009694 | p03759 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define rep1(i,n) for(int i=1; i<=(n); ++i)
#define repi(i,a,b) for(int i=a; i<=(b); ++i)
#define rrep(i,n) for(int i=(n-1); i>=0; --i)
#define ALL(obj) (obj).begin(), (obj).end()
#define RALL(obj) (obj).rbegin(), (obj).rend()
#define pb push_back
#def... | a.cc:33:1: error: expected declaration before '}' token
33 | }
| ^
|
s210517307 | p03759 | C++ | #include <bits/stdc++.h>
#define ld long double
#define ll long long int
#define ull unsigned long long int
#define vi vector<int>
#define vl vector<ll>
#define vvi vector< vector<int> >
#define vvl vector< vector<ll> >
#define repd(i, a, b) for (int i=(a);i<(b);i++)
#define rep(i, n) repd(i,0,n)
#define ALL(v) v.begi... | a.cc: In function 'int main()':
a.cc:85:12: error: conflicting declaration 'std::string a'
85 | string a;
| ^
a.cc:81:9: note: previous declaration as 'int a'
81 | int a, b, c;
| ^
a.cc:86:15: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
86 | i... |
s466644827 | p03759 | C++ |
#include <iostream>
#include <string>
#include <cmath>
#include <sstream>
#include <iomanip>
using namespace std;
int main(int argc, char* argv[])
{
int a,b,c;
cin >> a >> b >> c;
cout << ((b-a==c-b) "YES": "NO") << endl;
return 0;
} | a.cc: In function 'int main(int, char**)':
a.cc:17:28: error: expected ')' before string constant
17 | cout << ((b-a==c-b) "YES": "NO") << endl;
| ~ ^~~~~~
| )
|
s810922656 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> vec = { a,b,c };
cin>>a,b,c>>endl;
if(b-a =c-b)
{cout<<"YES"<<endl;}
else
{cout<<"NO"<<endl;}
} | a.cc: In function 'int main()':
a.cc:5:23: error: 'a' was not declared in this scope
5 | vector<int> vec = { a,b,c };
| ^
a.cc:5:25: error: 'b' was not declared in this scope
5 | vector<int> vec = { a,b,c };
| ^
a.cc:5:27: error: 'c' was not declared... |
s059674215 | 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:14: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
7 | else cout<<"NO"endl;
| ^~~~~~~~
|
s917582210 | p03759 | C++ | a | a.cc:1:1: error: 'a' does not name a type
1 | a
| ^
|
s235053100 | p03759 | C++ | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if(b - a == c - d) cout << "YES";
else cout << "NO";
}
| a.cc: In function 'int main()':
a.cc:8:19: error: 'd' was not declared in this scope
8 | if(b - a == c - d) cout << "YES";
| ^
|
s933395720 | p03759 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#include <map>
#define Z class
#define ln cout<<'\n'
#define ll long long
#define rep(i, n) for(int i = 0; i < (n); ++i)
//ASCII a=97, A=65
// int H[N];... | a.cc: In function 'int main()':
a.cc:32:20: error: no match for 'operator>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
32 | int A,B,C; cin > A >> B >> C;
| ~~~ ^ ~~~~~~~~~~~
| | |
| | int
... |
s045922813 | p03759 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#include <map>
#define Z class
#define ln cout<<'\n'
#define ll long long#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#inc... | a.cc:25:9: warning: "ll" redefined
25 | #define ll long long
| ^~
a.cc:13:9: note: this is the location of the previous definition
13 | #define ll long long#include <iostream>
| ^~
a.cc: In function 'int main()':
a.cc:44:20: error: no match for 'operator>' (operand types are 'std::istr... |
s170390975 | p03759 | C++ | #include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#include <map>
#define Z class
#define ln cout<<'\n'
#define ll long long
#define rep(i, n) for(int i = 0; i < (n); ++i)
//ASCII a=97, A=65
// int H[N];... | a.cc: In function 'int main()':
a.cc:32:21: error: expected primary-expression before '.' token
32 | int A,B,C; cin >. A >> B >> C;
| ^
|
s536102884 | 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;
}
if((b-a)!=(c-b)){
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'if'
8 | if((b-a)==(c-b)){
| ^~
|
s121953592 | 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"<<entl;
}
if((b-a)!=(c-b)){
cout<<"NO"<<entl;
}
}
| a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'if'
8 | if((b-a)==(c-b)){
| ^~
a.cc:13:19: error: 'entl' was not declared in this scope
13 | cout<<"NO"<<entl;
| ^~~~
|
s490541723 | 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:5:17: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
5 | int a,b,c; cin<<a<<b<<c;
| ~~~^~~
| | |
| | int
| std::istream {aka std::b... |
s274623467 | p03759 | C++ | nclude<bits/stdc++.h>
using namespace std;
using ll = long long;
const ll amari = 1e9+7;
#define ben(a) a.begin(),a.end()
#define pb(a,b) a.push_back(b)
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: 'nclude' does not name a type
1 | nclude<bits/stdc++.h>
| ^~~~~~
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
11 | cin >> a >> b >> c;
| ^~~
a.cc:12:27: error: 'cout' was not declared in this scope
12 | if(b - a == ... |
s462498773 | p03759 | C++ | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int a,b,c;
cin >> a >> b >> c;
if (b - a == c - b) {
puts("YES");
}
else {
puts("NO")
}
return 0;
} | a.cc: In function 'int main()':
a.cc:18:27: error: expected ';' before '}' token
18 | puts("NO")
| ^
| ;
19 | }
| ~
|
s545764136 | p03759 | C++ | #include <cstdio>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b ,&c);
if(b−a==c−b){
printf("YES");
}
else {
printf("NO");
}
}
| 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 de... |
s786856398 | p03759 | C++ | #include <cstdio>
using namespace std;
int main()
{
int a,b,c;
scanf("%d %d %d", &a, &b ,%c);
if(b−a==c−b){
printf("YES");
}
else {
printf("NO");
}
}
| 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:8:35: error: expected primary-expressi... |
s741270520 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c
if(a-2*b+c==0){
cout<<"YES";
}
else{
cout<<"NO";
}
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'if'
6 | cin>>a>>b>>c
| ^
| ;
7 | if(a-2*b+c==0){
| ~~
a.cc:10:9: error: 'else' without a previous 'if'
10 | else{
| ^~~~
|
s538296230 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
cin<<a<<b<<c
if(a-2*b+c==0){
cout<<"YES";
}
else{
cout<<"NO";
}
}
| a.cc: In function 'int main()':
a.cc:6:6: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin<<a<<b<<c
| ~~~^~~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:6: note: candidate: 'operator<... |
s110834103 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
if(a-2*b+c==0){
cout<<"YES"
}
else{
cout<<"NO"
}
}
| a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before '}' token
7 | cout<<"YES"
| ^
| ;
8 | }
| ~
a.cc:10:17: error: expected ';' before '}' token
10 | cout<<"NO"
| ^
| ... |
s413657047 | p03759 | C++ | #include<bits/stdc++.h>
using namesspace std;
int main(void){
int a,b,c;
cin>>a>>b>>c;
if(b-a==c-a)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'namesspace'
2 | using namesspace 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 ... |
s475512927 | 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:7:1: error: extended character − is not valid in an identifier
7 | b−a==c−b)cout<<"YES"<<endl;else cout<<"NO"<<endl;}
| ^
a.cc:7:6: error: extended character − is not valid in an identifier
7 | b−a==c−b)cout<<"YES"<<endl;else cout<<"NO"<<endl;}
| ^
a.cc: In function 'int main()':
a.cc:7:1:... |
s444933544 | 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";
else cout << "NO";
cou << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
9 | cou << endl;
| ^~~
| cos
|
s526896606 | p03759 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
int main(void){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%s", b - a == c - b ? "YES" : "NO");
return 0; | main.c: In function 'main':
main.c:11:3: error: expected declaration or statement at end of input
11 | return 0;
| ^~~~~~
|
s636772595 | 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){
| ~^~
|
s651307498 | p03759 | C++ | #include<iostream>
#include<cmath>
#include<vector>
#include<set>
#include<algorithm>
#include<tuple>
#include<utility>
#include<cctype>
#include<climits>
#include<map>
#include<queue>
#include<functional>
using namespace std;
template<class T> void chmax(T& a, T b) {if(a < b){a=b;}}
template<class T> void chmin(T& a,... | a.cc: In function 'int atcoder()':
a.cc:48:9: 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>'})
48 | if(b-a==c-b) cout << "YES" << ENT;
| ~^~
| | |
| | basic_... |
s289831126 | 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:5:8: error: stray '\342' in program
5 | if((b<U+2212>a)==(c<U+2212>b)) printf("YES\n");
| ^~~~~~~~
main.c:5:8: error: expected ')' before 'a'
5 | if((b−a)==(c−b)) printf("YES\n");
| ~ ^~
| )
main.c:5:15: error: stray '\342' in program
... |
s026895785 | 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:5:7: error: stray '\342' in program
5 | if(b<U+2212>a==c<U+2212>b) printf("YES\n");
| ^~~~~~~~
main.c:5:7: error: expected ')' before 'a'
5 | if(b−a==c−b) printf("YES\n");
| ~ ^~
| )
main.c:5:12: error: stray '\342' in program
5 | if... |
s129460380 | p03759 | C++ | #include <iostream>
#include <climits>
#include <set>
#include <string>
#include <algorithm>
#include <vector>
#define MAX 1000000007
using namespace std;
#define ll long long
#define dbg if(0)
#define ISRANGE(val,lo,hi) ((lo<=val)&&(val<hi))
int main(){
ll ans,a,b,c;
cin >>a>>b>>c;
{
if(b−a=... | a.cc:23:12: error: extended character − is not valid in an identifier
23 | if(b−a==c−b)cout <<"YES"<<endl;
| ^
a.cc:23:17: error: extended character − is not valid in an identifier
23 | if(b−a==c−b)cout <<"YES"<<endl;
| ^
a.cc: In function 'int main()':
a.cc:... |
s300924657 | p03759 | C++ | #include <iostream>
#include <climits>
#include <set>
#include <string>
#include <algorithm>
#include <vector>
#define MAX 1000000007
using namespace std;
#define ll long long
#define dbg if(0)
#define ISRANGE(val,lo,hi) ((lo<=val)&&(val<hi))
int main(){
ll ans,a,b,c;
cin >>a>>b>>c;
{
if(b−a=... | a.cc:23:12: error: extended character − is not valid in an identifier
23 | if(b−a=c−b)cout <<"YES"<<endl;
| ^
a.cc:23:16: error: extended character − is not valid in an identifier
23 | if(b−a=c−b)cout <<"YES"<<endl;
| ^
a.cc: In function 'int main()':
a.cc:23:... |
s532786159 | p03759 | C++ | #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;
using namespace std;
int main(){
int a,b,c;... | a.cc: In function 'int main()':
a.cc:21:52: error: expected ';' before '}' token
21 | if(b-a==0&&c-b==0){puts("YES");}else{puts("NO")}
| ^
| ;
|
s936776284 | p03759 | C++ | // abc059.a
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>... | a.cc: In function 'int main()':
a.cc:31:15: error: lvalue required as left operand of assignment
31 | if (b - a = c - b) {
| ~~^~~
|
s855914566 | 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";clse cout<<"NO";} | a.cc: In function 'int main()':
a.cc:3:59: error: 'clse' was not declared in this scope; did you mean 'close'?
3 | int main(){int a,b,c;cin>>a>>b>>c;if(b-a==c-b)cout<<"YES";clse cout<<"NO";}
| ^~~~
| ... |
s851333477 | p03759 | C++ | #include <iostream>
#include <string>
int main{
int a,b,c;
std::cin>>a>>b>>c;
string ans="NO";
if (a-b==b-c) ans="YES";
std::cout<<ans<<std::endl;
} | a.cc:3:5: error: cannot declare '::main' to be a global variable
3 | int main{
| ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
4 | int a,b,c;
| ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
3 | int main{
| ^
a.cc:5:6: error: '... |
s107796104 | p03759 | C++ | #include <iostream>
int a,b,c;
std::cin>>a>>b>>c;
string ans="NO";
if (a-b==b-c) ans="YES";
std::cout<<ans<<std::endl; | a.cc:3:6: error: 'cin' in namespace 'std' does not name a type
3 | std::cin>>a>>b>>c;
| ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:4:1: error: ... |
s157056554 | p03759 | C++ | #include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
int a,b,c;
cin >> a >> b >> c;
if(b-a == c-a){
cout <<"YES";
}else{
cout << "NO"
}
return 0;
... | a.cc: In function 'int main()':
a.cc:17:19: error: expected ';' before '}' token
17 | cout << "NO"
| ^
| ;
18 | }
| ~
|
s664616601 | p03759 | C++ | #include <iostrem>
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:10: fatal error: iostrem: No such file or directory
1 | #include <iostrem>
| ^~~~~~~~~
compilation terminated.
|
s548817191 | 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:7:9: error: lvalue required as left operand of assignment
7 | if(b-a=c-b) cout<<"Yes";
| ~^~
|
s033989931 | 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:10:7: error: expected '}' before 'else'
10 | { else {
| ~ ^~~~
a.cc:10:7: error: expected '}' before 'else'
a.cc:8:18: note: to match this '{'
8 | if(b-a == c-b) {
| ^
|
s082287905 | 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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin >> a >> b >> c;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Lin... |
s764070071 | p03759 | C++ | include <bits/stdc++.h>
using namespace std;
int a, b, c;
int main() {
cin >> a >> b >> c;
if (a - b == b - c) {
cout << "YES";
}
else {
cout << "NO";
}
cout<<endl;
} | a.cc:1:1: error: 'include' does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin >> a >> b >> c;
| ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
7 | cout << "YES";
... |
s180620284 | p03759 | C++ | #include<iostream>
using namespace std;
int a,b,c;
int main()
{
cin>>a>>b>>c;
if(b-c==c-b)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
retrun 0;
} | a.cc: In function 'int main()':
a.cc:15:5: error: 'retrun' was not declared in this scope
15 | retrun 0;
| ^~~~~~
|
s169383135 | 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())
| ^
|
s040822476 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
int 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:7:19: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
7 | else cout<"NO"<<endl;
| ~~~~^~~~~~
|
s175356400 | p03759 | C | #include<stdio.h>
int A, B, C;
int main(){
scanf("%d%d%d", &A, &B, &C);
if(a+c==B<<1){
printf("YES\n");
}else{
printf("NO\n");
}
}
| main.c: In function 'main':
main.c:5:6: error: 'a' undeclared (first use in this function)
5 | if(a+c==B<<1){
| ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: 'c' undeclared (first use in this function)
5 | if(a+c==B<<1){
... |
s391975253 | p03759 | C++ | ome
Tasks
Submit
Clarifications
Results
Standings
Custom Test
Editorial
Submission #3809874
Source code
Copy
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int main()
{
int i,j,k,as=0,bs=0;
string a,b;
cin>>a>>b;
string c;
for(i=0;i<a.size();i++){
cout<<a[i];
... | a.cc:9:12: error: stray '#' in program
9 | Submission #3809874
| ^
a.cc:1:1: error: 'ome' does not name a type
1 | ome
| ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:62,
from /usr/include/c++/14/algorithm:60,
from /usr/include/x86_64-... |
s331682233 | p03759 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;
int main() {
//cout.precision(10);
int a, b, c;
cin >> a >> b >> c;
string ans == "NO";
if(b-a== c-b){
ans="YES";
}
cout << ans << endl;
ret... | a.cc: In function 'int main()':
a.cc:14:14: error: expected initializer before '==' token
14 | string ans == "NO";
| ^~
a.cc:16:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
16 | ans="YES";
| ^~~
| abs
a.cc:18:9: error: 'ans' was not declared in this scope; d... |
s167049017 | p03759 | C | #include <stdio.h>
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");
return 0;
} | main.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
|
s042361206 | p03759 | C++ | #include "bits/stdc++.h"
using namespace std;
#define print(s) cout << (s) << endl;
#define sp(x) cout<<setprecision(x);
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define all(a) (a).begin(), (a).end()
#define inf 10000000
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
... | a.cc: In function 'int main()':
a.cc:15:22: error: expected unqualified-id before '>>' token
15 | int a, b, c; int >> a>> b>> c;
| ^~
a.cc:19:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
19 | cou<<"NO"<<endl;
| ^~~
| cos
|
s344157846 | 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==b-c)
{
printf("YES\n");
}
else
{
printf("NO\n")
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before '}' token
13 | printf("NO\n")
| ^
| ;
14 | }
| ~
|
s414745768 | p03759 | C++ | #include<iostream>
using namespace std;
int main(){
int a,b,c;
in>>a>>b>>c;
cout<<(b-a==c-b?"YES":"NO");
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: 'in' was not declared in this scope; did you mean 'int'?
6 | in>>a>>b>>c;
| ^~
| int
|
s544149071 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int a,b;
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:6:20: error: 'c' was not declared in this scope
6 | cin>>a>>b>>c;
| ^
|
s725151317 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(void){
int a, b, c;
cin >> a >> b >> c;
if((b-a)==(c-b)) cout << "YES\n";
else cout << "NO\n
} | a.cc:8:16: warning: missing terminating " character
8 | else cout << "NO\n
| ^
a.cc:8:16: error: missing terminating " character
8 | else cout << "NO\n
| ^~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
9 | }
... |
s438416012 | p03759 | C++ | #include <iostream>
int main(){
int a,b,c;
std::cin>>a>>b>>c;
if(a-b==b-c)cout<<"YES"<<std::endl;
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
5 | if(a-b==b-c)cout<<"YES"<<std::endl;
| ^~~~
| std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
... |
s783455197 | 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" << endl;
} else {
cout << "NO" << endkl;}
}
| a.cc: In function 'int main()':
a.cc:10:19: error: 'endkl' was not declared in this scope
10 | cout << "NO" << endkl;}
| ^~~~~
|
s416304610 | p03759 | C++ | #include <bits/stdc++.h>
using namespendl;ace 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 'namespendl'
2 | using namespendl;ace std;
| ^~~~~~~~~~
a.cc:2:18: error: 'ace' does not name a type
2 | using namespendl;ace std;
| ^~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope... |
s431045160 | p03759 | C | #include <stdio.h>
int main()
{
long int a,b,c;
scanf("%ld%ld%ld",&a,&b,&c);
if((a<b && b<c && b-a==c-d) || (a>b && b>c && a-b==b-c))
{
printf("YES");
}else{
printf("NO");
}
return 0;
}
| main.c: In function 'main':
main.c:7:26: error: 'd' undeclared (first use in this function)
7 | if((a<b && b<c && b-a==c-d) || (a>b && b>c && a-b==b-c))
| ^
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
|
s777357343 | p03759 | C | #include <stdio.h>
int main()
{
long int a,b,c;
scanf("%ld%ld%ld",&a,&b,&c);
if(a<b && b<c && b-a==c-d)
{
printf("YES");
}else{
printf("NO");
}
return 0;
}
| main.c: In function 'main':
main.c:7:25: error: 'd' undeclared (first use in this function)
7 | if(a<b && b<c && b-a==c-d)
| ^
main.c:7:25: note: each undeclared identifier is reported only once for each function it appears in
|
s714335500 | p03759 | C++ | #include <bits/stdc++.h>
typedef long long ll;
ll a, b, c;
int main() {
cin >> a >> b >> c;
cout << (b-a == c-b ? "YES" : "NO") << endl;
return 0;
} | a.cc: In function 'int main()':
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
from a.cc:1:
/usr/include/c++/14/iostream:62:18: n... |
s901300536 | p03759 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int a,b,c;
int strcmp(char a,char b);
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(strcmp(b-a,c-b)==0){
printf("Yes\n");
}else{
printf("No\n");}
system("pause");
return 0;
} | /usr/bin/ld: /tmp/ccleLDON.o: in function `main':
a.cc:(.text+0x80): undefined reference to `strcmp(char, char)'
collect2: error: ld returned 1 exit status
|
s478548987 | p03759 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int a,b,c;
int strcmp(char*a,char*b);
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(strcmp(b-a,c-b)==0){
printf("Yes\n");
}else{
printf("No\n");}
system("pause");
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:20: error: invalid conversion from 'int' to 'char*' [-fpermissive]
10 | if(strcmp(b-a,c-b)==0){
| ~^~
| |
| int
a.cc:6:25: note: initializing argument 1 of 'int strcmp(char*, char*)'
6 | ... |
s663467033 | p03759 | C++ | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int a,b,c;
int strcmp(char a,char b);
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(strcmp(b-a,c-b)==0){
printf("Yes\n");
}else{
printf("No\n");}
system("pause");
return 0;
} | /usr/bin/ld: /tmp/ccY17kTm.o: in function `main':
a.cc:(.text+0x80): undefined reference to `strcmp(char, char)'
collect2: error: ld returned 1 exit status
|
s590422797 | p03759 | C++ | #include<stdio.h>
#include<stdlib.h>
int main(){
int a,b,c;
int strcmp(char a,char b);
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(strcmp(b-a,c-b)==0){
printf("Yes/n");
}else{
printf("No\n");}
system("pause");
return 0;
} | /usr/bin/ld: /tmp/ccSybnC6.o: in function `main':
a.cc:(.text+0x80): undefined reference to `strcmp(char, char)'
collect2: error: ld returned 1 exit status
|
s250888826 | p03759 | C | #include<stdio.h>
int a,b,c;
int main(){
scanf("%d %d %d",&a,&b,&c);
if(a+c==2*b)
printf("YES");
else
printf("NO");
}
}
| main.c:11:1: error: expected identifier or '(' before '}' token
11 | }
| ^
|
s001710275 | p03759 | C | #include<stdio.h>
int a,b,c;
int main(){
scanf("%d %d %d",&a,&b,&c);
if(a+c==2*b)
printf("YES");
else
printf("NO");
}
}
| main.c:11:1: error: expected identifier or '(' before '}' token
11 | }
| ^
|
s935436585 | 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";
cout<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:16: error: 'C' was not declared in this scope
6 | cin>>a>>b>>C;
| ^
|
s538139516 | p03759 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>C;
if(b==(a+c)/2)cout<<"YES";
else cout<<"NO";
return 0;
} | a.cc: In function 'int main()':
a.cc:6:16: error: 'C' was not declared in this scope
6 | cin>>a>>b>>C;
| ^
|
s920975103 | p03759 | C++ | #include<iostream>
using namespace std;
int main(){
if(a<b)swap(a,b);
if(b<c)swap(b,c);
if(a<b)swap(a,b);
if(c-b==b-a)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:4:6: error: 'a' was not declared in this scope
4 | if(a<b)swap(a,b);
| ^
a.cc:4:8: error: 'b' was not declared in this scope
4 | if(a<b)swap(a,b);
| ^
a.cc:5:6: error: 'b' was not declared in this scope
5 | if(b<c)swap(b,c);
| ^
a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.