submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s941765650
p03752
C++
#include <iostream> #include <algorithm> #include <vector> using namespace std; int N, K; vector<long> buildings; int build(int now, long back_building_height, int increase_buildings){ if(increase_buildings == K){ return 0; }else if(N - now == K - increase_buildings){ return max(0l, back_build...
a.cc: In function 'int build(int, long int, int)': a.cc:15:19: error: no matching function for call to 'min(long int, int)' 15 | return min(max(0l, back_building_height + 1 - buildings[now]) + build(now + 1, max(back_building_height + 1, buildings[now]), increase_buildings + 1), build(now + 1, back_building_...
s858742913
p03752
C
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef unsigned long long ull; typedef signed long long sll; #define N_MAX...
main.c: In function 'solve': main.c:342:14: error: 's' undeclared (first use in this function) 342 | puts(s); | ^ main.c:342:14: note: each undeclared identifier is reported only once for each function it appears in
s803542869
p03752
C++
#include <bits/stdc++.h> using namespace std; #define int long long #define Rep(i, N) for(int i = 0; i < N; i++) #define Reps(i, x, N) for(int i = x; i < N; i++) #define pb push_back const int LLINF = 1LL << 60; signed main() { int N, K; int A[25]; int dp[25][25]; cin >> N >> K; Rep(i, N) cin >> A[i]; ...
a.cc: In function 'int main()': a.cc:29:56: error: no matching function for call to 'max(int, long long int)' 29 | dp[i + 1][k] = min(dp[i + 1][k], dp[i][j] + max(0, (i + 1 + sample) - A[k])); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /u...
s608051285
p03752
C++
#include <vector> #include <string.h> #include<iostream> #include<set> #include<map> #include<unordered_map> #include<string.h> #include<algorithm> #include <stdlib.h> #include<queue> using namespace std; typedef long long ll; int main(){ // vector<int>b(5); // int n=248832; // for(int j=0;j<5;j++){ // ...
a.cc: In function 'int main()': a.cc:53:27: error: 'pow' was not declared in this scope 53 | b[j]=((int)(i/pow(12,j)))%12; | ^~~
s564446567
p03752
C++
#include <iostream> using namespace std; #define int long long int bitcount(int a){ int r = 0; while(a){ a -= a & -a; r++; } return r; } signed main(){ int n, k; cin >> n >> k; int a[n]; for(int i = 0; i < n; i++) cin >> a[i]; int ans = 1e9 + 7; for(int i = 0; i < 1 << n; i++){ if(bitcount(i) < k) co...
a.cc: In function 'int main()': a.cc:28:51: error: no matching function for call to 'max(int, long long int)' 28 | tmp += max(0, p - a[j]); | ~~~^~~~~~~~~~~~~ In file included from /usr/include/c++/14/string:51, ...
s888706069
p03752
C++
#include "bits/stdc++.h" #ifdef WINT_MIN #define __MAI #endif using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) printf("L%d %s => ",__LINE__,#v);for(auto e:v){cout<<e<<" ";}cout<<endl; #define debugm(m) printf("L%d %s is..\n",__LINE__,#m);...
a.cc: In function 'int main()': a.cc:91:29: error: no matching function for call to 'max(ll, int)' 91 | a += max(y - aa[i], 0); | ~~~^~~~~~~~~~~~~~ In file included from /usr/include/c++/14/algorithm:60, from /usr/include/x86_64-linux-gnu/c++/14/bit...
s240956745
p03752
C++
#include<iostream> #include <algorithm> #include <string.h> #include <vector> using namespace std; int N,K; const long long INF=100000000000LL; long long a[20]; long long reg(int n,int k,long long t){ if(k==K)return 0; if(n==N)return INF; if(a[n]>t)return reg(n+1,k+1,a[n]); long long was=INF; was=min(was,t+1-a[n]+...
a.cc: In function 'int main()': a.cc:20:16: error: 'dp' was not declared in this scope 20 | memset(dp,-1,sizeof(dp)); | ^~
s067930503
p03752
C++
#include<stdio.h> #include<string.h> #include<iostream> using namespace std; #define ll __int64 ll a[20]; ll vis[20]; ll n,k; ll output; void Dfs(ll u) { if(u==n+1) { ll b[20]; ll cnt=0; ll pre=a[1]; for(ll i=1;i<=n;i++)if(vis[i]==1)cnt++; for(ll i=1;i<=n;i++)b[i]=a[i]; ...
a.cc:5:12: error: '__int64' does not name a type; did you mean '__int64_t'? 5 | #define ll __int64 | ^~~~~~~ a.cc:6:1: note: in expansion of macro 'll' 6 | ll a[20]; | ^~ a.cc:5:12: error: '__int64' does not name a type; did you mean '__int64_t'? 5 | #define ll __int64 | ...
s772206164
p03752
C++
#include <cstdio> #include <cstring> #include <vector> #include <queue> #include <string> #include <algorithm> #include <iostream> #include <string> #include <map> #include <set> #include <functional> #include <iostream> #define INF 1000000007LL using namespace std; typedef long long ll; typedef pair<int,int> P; int n...
a.cc:21:12: error: 'std::vector<long long int> index' redeclared as different kind of entity 21 | vector<ll> index; | ^~~~~ In file included from /usr/include/string.h:462, from /usr/include/c++/14/cstring:43, from a.cc:2: /usr/include/strings.h:50:20: note: previou...
s274703586
p03753
C++
#include <stdio.h> #include <bits/stdc++.h> #include <atcoder/dsu> using namespace atcoder; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000000000000000 long long get(int h,int m,vector<int> x){ vector<string> S(h,string(7,'0')); rep(i,7*h){ if(binary_search(x.begin(),x.end()...
a.cc:3:10: fatal error: atcoder/dsu: No such file or directory 3 | #include <atcoder/dsu> | ^~~~~~~~~~~~~ compilation terminated.
s201016453
p03753
C++
z#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <climits> #include <cmath> #include <complex> #include <map> #include <set> #include <vector> #include <stack> #include <queue> #include <bitset> #include <algorithm> #include <numeric> #include <functional> #include <cassert> #includ...
a.cc:1:2: error: stray '#' in program 1 | z#include <iostream> | ^ a.cc:1:1: error: 'z' does not name a type 1 | z#include <iostream> | ^ In file included from /usr/include/c++/14/cmath:45, from a.cc:6: /usr/include/c++/14/ext/type_traits.h:164:35: error: 'constexpr const bool __gn...
s591788197
p03753
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<ll> vl; #define REP(i,a,b) for(ll i=a;i<b;i++) #define rep(i,n) REP(i,0,n) ll gcd(ll a, ll b) { if (b > a) swap(a, b); while (b) { ll t = a % b; a = b; ...
a.cc: In function 'void solve()': a.cc:93:5: error: expected ',' or ';' before 'cout' 93 | cout << ans << endl; | ^~~~
s737895777
p03753
C++
int main(void){ llint N,M,q,i,j,a,ansa,ansb,ok=0,ans; queue<llint> que; vector<llint> nuru; set<llint> siro; scanf("%lld %lld %lld",&N,&M,&q); for(i=0;i<q;i++){ scanf("%lld",&a); nuru.pub(a); } sort(nuru.begin(),nuru.end()); if(M%7!=0){ M*=7;ok=1; } for(i=0;i<M;i++){ for(j=0;j<1+ok*6;j++){ if(!binary...
a.cc: In function 'int main()': a.cc:2:9: error: 'llint' was not declared in this scope; did you mean 'int'? 2 | llint N,M,q,i,j,a,ansa,ansb,ok=0,ans; | ^~~~~ | int a.cc:3:9: error: 'queue' was not declared in this scope 3 | queue<llint> que; | ^~~~~ a.c...
s519630210
p03753
C++
#include<map> #include<string> #include<iostream> #include<set> #include<cmath> #include<cstdio> #include<vector> #include<algorithm> #include<functional> //#define scanf scanf_s #define fir first #define sec second #define mp make_pair #define mt make_tuple #define pub push_back using namespace std; typedef long long ...
a.cc: In function 'int main()': a.cc:25:9: error: 'queue' was not declared in this scope 25 | queue<llint> que; | ^~~~~ a.cc:10:1: note: 'std::queue' is defined in header '<queue>'; this is probably fixable by adding '#include <queue>' 9 | #include<functional> +++ |+#include <queue> 10...
s545259810
p03753
C++
#include<iostream> #include<algorithm> #include<queue> using namespace std; long n;int m,q,a[1<<17]; bool f[7][1<<17]; int dx[]={0,1,0,-1},dy[]={1,0,-1,0}; void bfs(int x,int y,long _n) { queue<pair<int,int> >P; f[x][y]=true; P.push(make_pair(x,y)); while(!P.empty()) { pair<int,int>p=P.front();P.pop(); for(int...
a.cc:25:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 25 | main() | ^~~~ a.cc: In function 'int main()': a.cc:146:46: error: 's' was not declared in this scope 146 | long kousa=(count2-count1)/7;s | ^ a.cc:148...
s320044136
p03754
C++
#include<bits/stdc++.h> using namespace std; #ifdef LOCAL_DEBUG #include "LOCAL_DEBUG.hpp" #endif #define int long long struct edge{ int to, cost; }; signed main(){ int n; cin >> n; vector<vector<int>> G(n); for(int i = 0; i < n-1; i++){ int a, b; cin >> a >> b; a--, b--; G[a].push_back(b); G[...
a.cc: In function 'int main()': a.cc:30:8: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::vector<double>') 30 | cout << dp << endl; | ~~~~ ^~ ~~ | | | | | std::vector<double> | std::ostream {aka std::basic_os...
s882117243
p03754
C++
3.666666666666667 2.250000000000000 3.666666666666667 2.833333333333333 2.555555555555555 2.666666666666667 4.333333333333333 2.666666666666667 5.333333333333333 2.500000000000000 2.500000000000000 5.000000000000000
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 3.666666666666667 | ^~~~~~~~~~~~~~~~~
s229106066
p03754
C++
#include <bits/stdc++.h> using namespace std; vector <int> g[150100]; map <pair <int, int> , double> mp; double dfs(int v, int p = -1, double t = 1) { if(mp[make_pair(v, p)] != 0) return mp[make_pair(v, p)] * t; double ans = 0; int k = g[v].size(); if(p != -1) k--; for(int i = 0; i <...
a.cc: In function 'int main()': a.cc:25:20: error: expected ';' before 'for' 25 | scanf("%d", &n) | ^ | ; 26 | 27 | for(i = 1; i < n; ++i) | ~~~ a.cc:27:26: error: expected ';' before ')' token 27 | for(i = 1; i < n; ++i) ...
s984567658
p03754
C++
#include <bits/stdc++.h> using namespace std; vector <int> g[150100]; map <pair <int, int> , double> mp; double dfs(int v, int p = -1, double t = 1) { if(mp[make_pair(v, p)] != 0) return mp[make_pair(v, p)] * t; double ans = 0; int k = g[v].size(); if(p != -1) k--; for(int i = 0; i <...
a.cc: In function 'int main()': a.cc:25:20: error: expected ';' before 'for' 25 | scanf("%d", &n) | ^ | ; 26 | 27 | for(i = 1; i < n; ++i) | ~~~ a.cc:27:26: error: expected ';' before ')' token 27 | for(i = 1; i < n; ++i) ...
s774751039
p03754
C++
12 1 2 2 3 2 4 4 5 5 6 5 7 6 8 8 9 2 10 10 11 11 12
a.cc:1:1: error: expected unqualified-id before numeric constant 1 | 12 | ^~
s203104780
p03754
C++
d
a.cc:1:1: error: 'd' does not name a type 1 | d | ^
s313953012
p03754
C++
#if 1 #include <iostream> #include <fstream> #include <string> #include <vector> #include <map> #include <set> #include <unordered_map> #include <unordered_set> #include <queue> #include <stack> #include <array> #include <deque> #include <algorithm> #include <utility> #include <cstdint> #include <functional> #include ...
a.cc: In function 'double get(int32_t)': a.cc:35:27: error: too many arguments to function 'double get(int32_t)' 35 | sum += get(c.first, v) + 1; | ~~~^~~~~~~~~~~~ a.cc:30:8: note: declared here 30 | double get(int32_t v) { | ^~~
s310379316
p03757
C++
#include<unordered_set> #include<unordered_map> using namespace std; int n; int q; struct query{ int ty; int v; int d; int x; query(int ty_,int v_,int d_,int x_=0){ ty = ty_; v = v_; d = d_; x = x_; } }; #define MAX 500002 vector<int> v[MAX]; long long int cost[MAX]; vector<query> Q; bool ex[MAX]; ...
a.cc:23:1: error: 'vector' does not name a type 23 | vector<int> v[MAX]; | ^~~~~~ a.cc:27:1: error: 'vector' does not name a type 27 | vector<query> Q; | ^~~~~~ a.cc:31:1: error: 'vector' does not name a type 31 | vector<pair<int, long long int> > ev[MAX]; | ^~~~~~ a.cc:44:1: error: 'vector' ...
s598613582
p03758
C++
#include <algorithm> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <map> #include <memory> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include ...
a.cc:84:9: error: 'cout' does not name a type 84 | cout << "! "; | ^~~~ a.cc:31:20: error: expected unqualified-id before 'for' 31 | #define rep(i,a,b) for(ll i=(a);i<(b);++i) | ^~~ a.cc:86:9: note: in expansion of macro 'rep' 86 | rep(i,0,200){ | ...
s226209241
p03758
Java
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.SplittableRandom; public class Main { static final int BUCKET = 10; static final boolean LOCAL = false static final boolean DEBUG = LOCAL && true; static Scanner sc = new Scanner(System.i...
Main.java:9: error: ';' expected static final boolean LOCAL = false ^ 1 error
s832073082
p03758
Java
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.SplittableRandom; public class Main { static final int BUCKET = 12; static final boolean LOCAL = false static final boolean DEBUG = LOCAL && true; static Scanner sc = new Scanner(System.i...
Main.java:9: error: ';' expected static final boolean LOCAL = false ^ 1 error
s898024437
p03758
C++
int main(void){ int i,j,k,N=200,a; vector<pair<int,int>> kotae; scanf("%d",&N); for(i=0;i<N;i++){ for(j=i+1;j<N;j++){ printf("? "); for(k=0;k<N;k++){ if(k==i||k==j){a=1;} else{a=0;} printf("%d",a); } fflush(stdout); scanf("%d",&a); if(a!=0){kotae.pub(mp(i,j));} } } printf("!"); ...
a.cc: In function 'int main()': a.cc:3:9: error: 'vector' was not declared in this scope 3 | vector<pair<int,int>> kotae; | ^~~~~~ a.cc:3:16: error: 'pair' was not declared in this scope 3 | vector<pair<int,int>> kotae; | ^~~~ a.cc:3:21: error: expected primary...
s190036367
p03758
Java
import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import java.util.SplittableRandom; public class Main { static final boolean LOCAL = fase; static final boolean DEBUG = LOCAL && true; static Scanner sc = new Scanner(System.in); static PrintWriter writer ...
Main.java:8: error: cannot find symbol static final boolean LOCAL = fase; ^ symbol: variable fase location: class Main 1 error
s325548282
p03759
C++
#include <iostream> int main () { int a,b,c; std::string res; if (c-b == b-a) { res = "YES" } else { res = "NO" } std::cout << res << std::endl; }
a.cc: In function 'int main()': a.cc:8:20: error: expected ';' before '}' token 8 | res = "YES" | ^ | ; 9 | } else { | ~ a.cc:10:19: error: expected ';' before '}' token 10 | res = "NO" | ^ ...
s151699457
p03759
C++
#include<stdio.h> #include<iostream> #include<string> #include<vector> #include<map> #include<algorithm> #include<cmath> #include<bitset> #define Vsort(a) sort(a.begin(), a.end()) #define Vreverse(a) reverse(a.begin(), a.end()) #define Srep(n) for(int i = 0; i < (n); i++) #define Lrep(i,a,n) for(int i = (a); i < (n);...
a.cc: In function 'int main()': a.cc:26:8: error: lvalue required as left operand of assignment 26 | if(b - a = c - b) cout << "YES" << endl; | ~~^~~
s186126738
p03759
C++
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; cout<<((b-a==c-b)?"YES":"NO"); return 0: }
a.cc: In function 'int main()': a.cc:10:11: error: expected ';' before ':' token 10 | return 0: | ^ | ; a.cc:10:11: error: expected primary-expression before ':' token
s800137135
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:7:9: error: extended character − is not valid in an identifier 7 | if((b−a) == (c−b)){ | ^ a.cc:7:18: error: extended character − is not valid in an identifier 7 | if((b−a) == (c−b)){ | ^ a.cc: In function 'int main()': a.cc:7:9: error: 'b\U00002212a' was not de...
s174308342
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:7:8: error: extended character − is not valid in an identifier 7 | if(b−a==c−b){ | ^ a.cc:7:13: error: extended character − is not valid in an identifier 7 | if(b−a==c−b){ | ^ a.cc: In function 'int main()': a.cc:7:8: error: 'b\U00002212a' was not declared in this sco...
s834170219
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { // 入力部(a,b,c) 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:9:7: 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>'}) 9 | if(b-a == c-b) { | ~^~ | | | | | basic_string<[...]> | bas...
s067565035
p03759
C++
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define vi vector<int> #define bn(n) (n).begin(), (n).end() #define FOR(n) for(int i = 0; i < (int)n; i++) void solve() { int a, b, c; cin >> a >> b >> c; if (b-a == c-b) { cout << "YES\n"; } else { ...
a.cc: In function 'void solve()': a.cc:18:23: error: expected ';' before '}' token 18 | cout << "NO\n" | ^ | ; 19 | } | ~
s281787952
p03759
Java
import java.util.*; public class main{ public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); if(b - a == c - b) { System.out.println("YES"); }else { System.out.println("NO"); } } }
Main.java:3: error: class main is public, should be declared in a file named main.java public class main{ ^ 1 error
s498939996
p03759
C++
#include <bits/stdc++.h> using namespace std; #define ll long long signed 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:11:22: error: expected '}' at end of input 11 | else{cout << "NO";} | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s712615755
p03759
C++
#include <bits/stdc++.h> using namespace std; #define ll long long signed main() { int a,b,c; cin >> a >> b >> c; cout << ((b-a) == (c-b) ? "YES" : "NO");
a.cc: In function 'int main()': a.cc:10:43: error: expected '}' at end of input 10 | cout << ((b-a) == (c-b) ? "YES" : "NO"); | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s194875851
p03759
C++
#include <bits/stdc++.h> using namespace std; #define ll long long signed main() { int a,b,c; cin >> a >> b >> c; cout << (b-a==c-b ? "YES" : "NO");
a.cc: In function 'int main()': a.cc:10:37: error: expected '}' at end of input 10 | cout << (b-a==c-b ? "YES" : "NO"); | ^ a.cc:7:1: note: to match this '{' 7 | { | ^
s979702882
p03759
Java
import java.util.Scanner; public class Main099 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int aa = (b - a); int bb = (c - b); if(aa == bb) System.out.printl...
Main.java:3: error: class Main099 is public, should be declared in a file named Main099.java public class Main099 { ^ 1 error
s855347887
p03759
C
#include <stdio.h> int main() { int a,b,c,z,y; scanf("%d %d %d", &a, &b, &c); z=b-a; y=c-b; if(x==y) { printf("YES"); } else{ printf("NO"); } return 0; }
main.c: In function 'main': main.c:12:8: error: 'x' undeclared (first use in this function) 12 | if(x==y) | ^ main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
s772287581
p03759
C++
#include <bits/stdc++.h> using namespace std; //type #define ll long long typedef pair<int, int> P; //定数 #define INF 1000000000000 //10^12:∞ #define MOD 1000000007 //10^9+7:合同式の法 #define MAXR 100000 //10^5:配列の最大のrange //略記 #define PB push_back //挿入 #define MP make_pair //pairのコンストラクタ #define F first //pa...
a.cc: In function 'int main()': a.cc:59:20: error: 'c' was not declared in this scope 59 | cin >> a >> b >> c; | ^
s433846697
p03759
C++
#include <bits/stdc++.h> using namespace std; //type #define ll long long typedef pair<int, int> P; //定数 #define INF 1000000000000 //10^12:∞ #define MOD 1000000007 //10^9+7:合同式の法 #define MAXR 100000 //10^5:配列の最大のrange //略記 #define PB push_back //挿入 #define MP make_pair //pairのコンストラクタ #define F first //pa...
a.cc: In function 'int main()': a.cc:59:20: error: 'c' was not declared in this scope 59 | cin >> a >> b >> c; | ^
s608493189
p03759
C++
#include <bits/stdc++.h> using namespace std; //type #define ll long long typedef pair<int, int> P; //定数 #define INF 1000000000000 //10^12:∞ #define MOD 1000000007 //10^9+7:合同式の法 #define MAXR 100000 //10^5:配列の最大のrange //略記 #define PB push_back //挿入 #define MP make_pair //pairのコンストラクタ #define F first //pa...
a.cc: In function 'int main()': a.cc:59:20: error: 'c' was not declared in this scope 59 | cin >> a >> b >> c; | ^ a.cc:60:20: error: expected ';' before ':' token 60 | if(b-a==c-b)Yes(): | ^
s101008910
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:11:17: error: expected ';' before '}' token 11 | cout << "NO" | ^ | ; 12 | } | ~
s647046725
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:7:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (const char*)' 7 | cout (b-a == c-b ? "YES" : "NO") << endl; | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
s845605280
p03759
C++
#include <cstdio> 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: In function 'int main()': a.cc:15:2: error: expected '}' at end of input 15 | } | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s124104180
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:9:14: error: expected primary-expression before '==' token 9 | if (b - a) == (c - a){ | ^~
s328800961
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:9:14: error: expected primary-expression before '==' token 9 | if (b - a) == (c - a){ | ^~
s462155860
p03759
C++
#include<iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if (b − a == c − b) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc:7:9: error: extended character − is not valid in an identifier 7 | if (b − a == c − b) | ^ a.cc:7:18: error: extended character − is not valid in an identifier 7 | if (b − a == c − b) | ^ a.cc: In function 'int main()': a.cc:7:8: error: expected ')' before '\U000022...
s128122787
p03759
C++
#include<iostream> using namespace std; int main(){ int a, b, c; cin >> a >> b >> c; if (b−a==c−b) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
a.cc:7:7: error: extended character − is not valid in an identifier 7 | if (b−a==c−b) | ^ a.cc:7:12: error: extended character − is not valid in an identifier 7 | if (b−a==c−b) | ^ a.cc: In function 'int main()': a.cc:7:7: error: 'b\U00002212a' was not declared in this scope ...
s527434901
p03759
C
#include <stdio.h> int main(void) { int a,b.c; scanf("%d%d%d",&a,&b,&c); if(b-c==c-b)printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:5:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 5 | int a,b.c; | ^ main.c:6:28: error: 'b' undeclared (first use in this function) 6 | scanf("%d%d%d",&a,&b,&c); | ^ main.c:6:28...
s721064965
p03759
C
#include <stdio.h> int main(void) { int a.b.c; scanf("%d%d%d",&a,&b,&c); if(b-c==c-b)printf("YES\n"); else printf("NO\n"); return 0; }
main.c: In function 'main': main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token 5 | int a.b.c; | ^ main.c:5:14: error: expected expression before '.' token main.c:6:25: error: 'a' undeclared (first use in this function) 6 | scanf("%d%d%d",&a,&...
s004572051
p03759
C
#include <stdio.h> int main(void){ int A, B, C; scanf("%d %d", &A, &B, &C); if (B-A = C-B){ printf("YES"); } else { printf("NO"); } return 0; }
main.c: In function 'main': main.c:6:11: error: lvalue required as left operand of assignment 6 | if (B-A = C-B){ | ^
s369846315
p03759
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b; cin>>a>>b; int k=a.size(),l=b.size(); string s; if(k>=l){ for(int i=0;i<k-1;i++){ s+=k[i]+l[i]; } s +=a[k-1]; cout << s <<endl; } else{ for(int i=0;i<k-1;i++){ s+=l[i]+k[i]; } s +=b[k-1]; cout << s <<endl; ...
a.cc: In function 'int main()': a.cc:11:7: error: invalid types 'int[int]' for array subscript 11 | s+=k[i]+l[i]; | ^ a.cc:11:12: error: invalid types 'int[int]' for array subscript 11 | s+=k[i]+l[i]; | ^ a.cc:18:7: error: invalid types 'int[int]' for array subscript 18 | s+=...
s728588946
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:7:12: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 7 | cin>>a>>b<<c; | ~~~~~~~~~^~~ | | | | | int | std::basic_istream<char>::_...
s614394823
p03759
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = nextInt(); int b = nextInt(); int c = nextInt(); System.out.println(b-a==c-b ? "YES" : "NO"); } }
Main.java:6: error: cannot find symbol int a = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:7: error: cannot find symbol int b = nextInt(); ^ symbol: method nextInt() location: class Main Main.java:8: error: cannot find symbol int c = nextInt(); ...
s271531289
p03759
C++
#include <iostream> #include <math.h> #include <string> #include <algorithm> using namespace std; int main() { char a, b, c cin >> a >> b >> c; cout << (b-a==c-b ? "YES" : "NO"); }
a.cc: In function 'int main()': a.cc:9:3: error: expected initializer before 'cin' 9 | cin >> a >> b >> c; | ^~~ a.cc:10:17: error: 'c' was not declared in this scope 10 | cout << (b-a==c-b ? "YES" : "NO"); | ^
s790755641
p03759
C++
#include <bits/stdc++.h> using namespace std; int main(void){ int a, b; cin >> a >> b >> c ; //* if(b - a == c - b){ cout << "YES" << endl; } else { cout << "NO" << endl; } //*/ //cout << ( a + b ) % 24 << endl; return 0; }
a.cc: In function 'int main()': a.cc:6:22: error: 'c' was not declared in this scope 6 | cin >> a >> b >> c ; | ^
s904653982
p03759
C
#include <stdio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(b - a == c - d){ printf("Yes\n"); }else { printf("No\n"); } }
main.c: In function 'main': main.c:7:21: error: 'd' undeclared (first use in this function) 7 | if(b - a == c - d){ | ^ main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
s868974565
p03759
C++
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) using namespace std; using P = pair<int, int>; using ll = long long; int main() { int a, b, c; cin >> a >> b >> c; if((abs(c - b) == abs(b - a)) cout << "YES" << endl; e...
a.cc: In function 'int main()': a.cc:12:32: error: expected ';' before 'cout' 12 | if((abs(c - b) == abs(b - a)) cout << "YES" << endl; | ^~~~~ | ; a.cc:13:6: error: expected primary-expression before 'else' 13 | else cout << "NO"<< ...
s580671090
p03759
C++
#include<iostream> using namespae std; int main() { int a,b,c; cin>>a>>b>>c; if(2*b==a+c) cout<<"YES"; else cout<<"NO"; }
a.cc:2:7: error: expected nested-name-specifier before 'namespae' 2 | using namespae std; | ^~~~~~~~ a.cc: In function 'int main()': a.cc:6:3: 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...
s778193927
p03759
C++
#include <iostream> using namespace std; int main(void){ // Your code here! 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:14: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int') 6 | cin >> a << b >> c; | ~~~~~~~~ ^~ ~ | | | | | int | std::basic...
s694381065
p03759
C++
#include <iostream> using namespace std; int main(void){ // Your code here! int a, b, c; cin >> a >> b >> c; if ( b - a == c - b ) cout << "Yes" << endl; else cout << "No" << endl; retrun 0; }
a.cc: In function 'int main()': a.cc:16:5: error: 'retrun' was not declared in this scope 16 | retrun 0; | ^~~~~~
s772668994
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:7: error: lvalue required as left operand of assignment 8 | if(b-a=c-b) | ~^~
s596993294
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:9:6: error: expected primary-expression before ')' token 9 | else(){ | ^
s121607213
p03759
Java
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] n=new int[3]; for(int i=0;i<3;i++){ n[i]=sc.nextInt(); } if(n[1]-n[0]==n[2]-n[1]){ System.out.println("YES"); }else{ System.out.pritnln("NO"); ...
Main.java:15: error: cannot find symbol System.out.pritnln("NO"); ^ symbol: method pritnln(String) location: variable out of type PrintStream 1 error
s791002739
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()) | ^
s063829268
p03759
C++
YES
a.cc:1:1: error: 'YES' does not name a type 1 | YES | ^~~
s849562074
p03759
C++
#include <bits/stdc++.h> using namespace std; int main () { int a, b, c; cin >> a >> b >> c; if (c-b == b-a) cout << "YES\n"; else cout << "NO\n; return 0; }
a.cc:9:16: warning: missing terminating " character 9 | else cout << "NO\n; | ^ a.cc:9:16: error: missing terminating " character 9 | else cout << "NO\n; | ^~~~~~ a.cc: In function 'int main()': a.cc:10:5: error: expected primary-expression before 'return' 10 | ...
s327554135
p03759
C++
#include<bits/sdtc++.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:1:9: fatal error: bits/sdtc++.h: No such file or directory 1 | #include<bits/sdtc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s118895671
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:11:3: error: expected primary-expression before '}' token 11 | } | ^
s348114888
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"; else cout << "NO" }
a.cc: In function 'int main()': a.cc:8:22: error: expected ';' before '}' token 8 | else cout << "NO" | ^ | ; 9 | } | ~
s459943108
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"; else "NO" }
a.cc: In function 'int main()': a.cc:8:14: error: expected ';' before '}' token 8 | else "NO" | ^ | ; 9 | } | ~
s717438420
p03759
C++
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; 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:9:8: error: lvalue required as left operand of assignment 9 | if(a - b = b - c) cout << "YES" << endl; | ~~^~~
s222924465
p03759
Java
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next(); int b = sc.next(); int c = sc.next(); if(b - a == c - b) { System.out.println("YES"); } else { System.out.println("NO"); ...
Main.java:6: error: incompatible types: String cannot be converted to int int a = sc.next(); ^ Main.java:7: error: incompatible types: String cannot be converted to int int b = sc.next(); ^ Main.java:8: error: incompatible types: String cannot be converted to int i...
s140171546
p03759
Java
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.next(); int b = sc.next(); int c = sc.next(); if(b - a == c - b) { System.out.println("YES"); } else { System.out.println("NO"); } } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s791826825
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:11:7: error: expected primary-expression before ')' token 11 | else){ | ^
s326523058
p03759
C++
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include<set> #include<map> using namespace std; int main() { vector<int> v(3); for(int i = 0; i < 3; i++){ cin >> v[i]; } sort(v.begin(), v.sort()); if(v[1] - v[0] == v[2] - v[1]){ cout <...
a.cc: In function 'int main()': a.cc:16:23: error: 'class std::vector<int>' has no member named 'sort' 16 | sort(v.begin(), v.sort()); | ^~~~
s706881106
p03759
C++
#include<stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if((b-a)==(c-b)){ printf("YES"); }else{ printf("NO"); } putchar('\n'); return 0; } ¥
a.cc:13:1: error: extended character ¥ is not valid in an identifier 13 | ¥ | ^ a.cc:13:1: error: '\U000000a5' does not name a type 13 | ¥ | ^
s700388757
p03759
C
#include<stdio.h> int main(void){ int a,b,c; scanf("%d %d %d",&a,&b,&c); char y_n[5]; y_n=(b-a==c-b)?"YES":"NO"; printf("%s",y_n); return 0; }
main.c: In function 'main': main.c:6:6: error: assignment to expression with array type 6 | y_n=(b-a==c-b)?"YES":"NO"; | ^
s602078660
p03759
C++
#include<iostream> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; if(a - b = b - c) cout << "YES"; else cout << "NO"; return 0; }
a.cc: In function 'int main()': a.cc:7:8: error: lvalue required as left operand of assignment 7 | if(a - b = b - c) | ~~^~~
s976995594
p03759
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < n; i++) #define rep1(i, n) for(int i = 1; i < n+1; i++) #define sort(A) sort(A.begin(),A.end()) #define reverse(A) reverse(A.begin(),A.end()); #define vecmin(A) *min_element(A.begin(),A.end()); #define vecmax(A) *max_element(A.begin(),A....
a.cc: In function 'int main()': a.cc:15:15: error: expected identifier before '<<' token 15 | cout << and << endl; | ^~
s337669567
p03759
C++
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(b-c==c-b) cout<<"YES"<<endl; else cout<<"NO"<<endl; return: 0; }
a.cc: In function 'int main()': a.cc:13:9: error: expected primary-expression before ':' token 13 | return: 0; | ^ a.cc:13:9: error: expected ';' before ':' token 13 | return: 0; | ^ | ; a.cc:13:9: error: expected primary-expression before ':' token
s651041669
p03759
C++
#iclude<bits/stdc++.h> using namespace std; int main() { int a,b,c ; cin>>a>>b>>c; if(b-c==c-b) cout<<"YES"<<endl; else cout<<"NO"<<endl; }
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include? 1 | #iclude<bits/stdc++.h> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:7:1: error: 'cin' was not declared in this scope 7 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostr...
s747178500
p03759
C++
#incude<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:1:2: error: invalid preprocessing directive #incude; did you mean #include? 1 | #incude<bits/stdc++.h> | ^~~~~~ | include a.cc: In function 'int main()': a.cc:6:3: error: 'cin' was not declared in this scope 6 | cin>>a>>b>>c; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<i...
s823039597
p03759
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) using ll = long long; using P = pair<int,int>; int main(void) { int a, b, c; cin >> a >> b >> c; string ans; if(b-a = c-b) ans = "YES"; else ans = "NO"; cout << ans; }
a.cc: In function 'int main()': a.cc:9:9: error: lvalue required as left operand of assignment 9 | if(b-a = c-b) ans = "YES"; | ~^~
s407645786
p03759
C++
#include<bits/stdc++.h> using namespace std; #define f(i,a,b) for(int i=(int)(a);i<=(int)(b);i++) #define char_f(i,a) for(int i=(int)(a);(char)s[i]!='\0';i++) #define rf(i,a,b) for(int i=(int)(a);i>=(int)(b);i--) #define llf(i,a,b) for(long long int i=(long long int)(a);i<=(long long int)(b);i++) #define llrf(i,a,b) ...
a.cc: In function 'int main()': a.cc:108:15: error: 'l' was not declared in this scope 108 | (m-n==l-m)?cout<<"YES"<<endl:cout<<"NO"<<endl; | ^
s428963323
p03759
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; using P = pair<int,int>; int main(void) { int a, b, c; cin >> a >> b >> c; bool ans = true; if(b-a == c-b) ans = true; cout << (ans ? "YES"|"NO") << endl; return 0; }
a.cc: In function 'int main()': a.cc:13:23: error: invalid operands of types 'const char [4]' and 'const char [3]' to binary 'operator|' 13 | cout << (ans ? "YES"|"NO") << endl; | ~~~~~^~~~~ | | | | | const char [3] | ...
s645029249
p03759
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; using P = pair<int,int>; int main(void) { int a, b, c; cin >> a >> b >> c; bool ans = true; if(b-a = c-b) ans = true; cout << (ans ? "Yes"|"No") << endl; return 0; }
a.cc: In function 'int main()': a.cc:12:7: error: lvalue required as left operand of assignment 12 | if(b-a = c-b) ans = true; | ~^~ a.cc:13:23: error: invalid operands of types 'const char [4]' and 'const char [3]' to binary 'operator|' 13 | cout << (ans ? "Yes"|"No") << endl; | ...
s397833254
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:6:6: error: expected '(' before 'b' 6 | if b - a == c - b{ | ^ | ( a.cc:8:4: error: 'else' without a previous 'if' 8 | }else{ | ^~~~
s073759627
p03759
Java
import java.util.*; import java.io.*; public class Solution1 { static class Reader { public BufferedReader reader; public StringTokenizer tokenizer; public Reader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = n...
Main.java:4: error: class Solution1 is public, should be declared in a file named Solution1.java public class Solution1 { ^ 1 error
s818857609
p03759
C++
#include<bits/stdc++.h> using namespace std; int main () { int a, b, c; cin >> a >> b >> c; if(b==(a+c)/2) {
a.cc: In function 'int main()': a.cc:7:19: error: expected '}' at end of input 7 | if(b==(a+c)/2) { | ~^ a.cc:7:19: error: expected '}' at end of input a.cc:4:13: note: to match this '{' 4 | int main () { | ^
s460409550
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 1; }
a.cc: In function 'int main()': a.cc:8:1: error: expected '}' before 'else' 8 | else | ^~~~ a.cc:6:17: note: to match this '{' 6 | if((b-a)==(c-b)){ | ^
s709234932
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 1; }
a.cc:1:9: fatal error: bits.stdc++.h: No such file or directory 1 | #include<bits.stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
s415656352
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 1; }
a.cc:2:20: error: expected ';' before 'int' 2 | using namespace std | ^ | ; 3 | int main(){ | ~~~ a.cc: In function 'int main()': a.cc:8:1: error: expected '}' before 'else' 8 | else | ^~~~ a.cc:6:17: note: to match this '{' ...
s441718618
p03759
C++
.
a.cc:1:1: error: expected unqualified-id before '.' token 1 | . | ^
s256310439
p03759
C++
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(abs(b-a)==abs(c-b)) printf("YES"); else printf("NO"); return 0; }
a.cc: In function 'int main()': a.cc:6:12: error: 'abs' was not declared in this scope 6 | if(abs(b-a)==abs(c-b)) | ^~~
s891145773
p03759
C++
#include<stdio.h> void main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(abs(b-a)==abs(c-b)) printf("YES"); else printf("NO"); }
a.cc:2:1: error: '::main' must return 'int' 2 | void main() | ^~~~ a.cc: In function 'int main()': a.cc:6:12: error: 'abs' was not declared in this scope 6 | if(abs(b-a)==abs(c-b)) | ^~~
s996769445
p03759
C
#include<stdio.h> int main() { int a,b,c; clrscr(); scanf("%d %d %d",&a,&b,&c); if(b-a==c-b) printf("YES"); else printf("NO"); return 0; }
main.c: In function 'main': main.c:5:1: error: implicit declaration of function 'clrscr' [-Wimplicit-function-declaration] 5 | clrscr(); | ^~~~~~