criyle/codenet-compile-errors huggingface dataset:
Language: C++

S=str(input())
if S=="abc" or S=="acb" or S=="bca" or S=="bac" or S=="cab" or S=="cba":
    print("Yes")
#elif S=acb:
#    print(Yes)
#elif S=bac
else:
    print("No")

Compiler output:
a.cc:4:2: error: #elif without #if
    4 | #elif S=acb:
      |  ^~~~
a.cc:5:6: error: invalid preprocessing directive #print
    5 | #    print(Yes)
      |      ^~~~~
a.cc:6:2: error: #elif without #if
    6 | #elif S=bac
      |  ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S=str(input())
      | ^
Language: C++

#include<stdio.h>

int main{
	char s[4];
	scanf("%s");
	int cnta=0,cnth=0,cntc=0;
	for(int i = 0; i < 3;i++){
		if s([i]=='a') cnta++;
		if s([i]=='b') cntb++;
		if s([i]=='c') cntc++;
	}
	if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
	else puts("No");
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'char'
    4 |         char s[4];
      |         ^~~~
a.cc:4:9: error: expected '}' before 'char'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:14: error: expected constructor, destructor, or type conversion before '(' token
    5 |         scanf("%s");
      |              ^
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 0; i < 3;i++){
      |         ^~~
a.cc:7:24: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                        ^
a.cc:7:30: error: 'i' does not name a type
    7 |         for(int i = 0; i < 3;i++){
      |                              ^
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(cnta == 1&& cntb==1&& cntc==1) puts("Yes");
      |         ^~
a.cc:13:9: error: expected unqualified-id before 'else'
   13 |         else puts("No");
      |         ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

int main()
{
    char s[3];
    while(gets(s)!=NULL)
    {
        char s1[4]={"abc"};
        sort(s,s+3);
        if(strcmp(s,s1)==0)
            printf("Yes\n");
        else
            printf("No\n");
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |     while(gets(s)!=NULL)
      |           ^~~~
      |           getw
Language: C++

#include <cstdio>
using namespace std;


int main(){
    char S[3];

    for(int i=0;i<=2,i++){
        scanf("%c",&S[i]);
    }

    if(S[0]!=S[1]&&S[1]!=S[2]&&S[0]!=S[2]){
        printf("Yes");
    }else{
        printf("No");   
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before ')' token
    8 |     for(int i=0;i<=2,i++){
      |                         ^
      |                         ;
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <math.h>
#include <utility>
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
using namespace std;

int main() {
	string str;
	bool a = 0, b = 0 , c = 0;
	cin >> str;
	FOR(int i = 0; i < 3) {
		if (str[i] == 'a') {
			a = 1;
		}
		if (str[i] == 'b') {
			b = 1;
		}
		if (str[i] == 'c') {
			c = 1;
		}
	}
	cout << (a && b&&c ? "Yes" : "No");
}



Compiler output:
a.cc:15:29: error: macro "FOR" requires 3 arguments, but only 1 given
   15 |         FOR(int i = 0; i < 3) {
      |                             ^
a.cc:8:9: note: macro "FOR" defined here
    8 | #define FOR(i,a,b) for(int i = (a); i < (b); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:15:9: error: 'FOR' was not declared in this scope
   15 |         FOR(int i = 0; i < 3) {
      |         ^~~
Language: C

#include <stdio.h>
int main() {
  char moji[4];
  int a,b,c = 0;
  gets(moji);
  for(int i=0; i<3; i++){
	if(moji[i] == 'a') a += 1;
    if(moji[i] == 'b') a += 1;
    if(moji[i] == 'c') a += 1;
  }
  if(a==1 && b==1 && c==1) printf("Yes\n");
   else printf("No\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    5 |   gets(moji);
      |   ^~~~
      |   fgets
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before 'return'
   14 | return 0;
      | ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>
#include <string>
using namespace std;


int main(){
  string s;
  int count[3] = {};
  cin >> s;
  for(auto ch: s){
++count[ch - ‘a’];
  }
  if(count[0] == 1 && count[1] == 1 && count[2] == 1){
cout << “Yes” << endl;
  }else{
cout << “No” << endl; 
  }

  return 0;
}


Compiler output:
a.cc:11:14: error: extended character ‘ is not valid in an identifier
   11 | ++count[ch - ‘a’];
      |              ^
a.cc:11:14: error: extended character ’ is not valid in an identifier
a.cc:14:9: error: extended character “ is not valid in an identifier
   14 | cout << “Yes” << endl;
      |         ^
a.cc:14:9: error: extended character ” is not valid in an identifier
a.cc:16:9: error: extended character “ is not valid in an identifier
   16 | cout << “No” << endl;
      |         ^
a.cc:16:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:14: error: '\U00002018a\U00002019' was not declared in this scope
   11 | ++count[ch - ‘a’];
      |              ^~~
a.cc:14:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
   14 | cout << “Yes” << endl;
      |         ^~~~~
a.cc:16:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
   16 | cout << “No” << endl;
      |         ^~~~
Language: C++

#include "stdafx.h"
#include<iostream>
#include<algorithm>
#include<vector>
#include<string>

#define REP(i,n) for(int i=0;i<n;i++)
#define llong long long

using namespace std;

int main() {

	string s;
	int a = 0, b = 0, c = 0;
	cin >> s;
	REP(i, 3) {
		if (s[i] == 'a')
			a++;
		else if (s[i] == 'b')
			b++;
		else if (s[i] == 'c')
			c++;
	}

	if (a == 1 && b == 1 && c == 1)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <cmath>
#include <stdio.h>
#include <string>
#include <string.h>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <stdlib.h>

using namespace std;

int main (void)
{
	string a;

	cin >> a;

	if (a == "abc" || a == "bac")
	{
		cout << "Yes" << endl;
	}
	else if (a == "cab" || a == "acb")
	{
		cout << "Yes" << endl;
	}
	else if (a == "bca" == "cba")
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |         else if (a == "bca" == "cba")
      |                  ~~~~~~~~~~~^~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;


int main(){
  string s;
  int count[3] = {};
  cin >> s;
  for(auto ch: s){
    ++count[ch - ‘a’];
  }
  if(count[0] == 1 && count[1] == 1 && count[2] == 1){
    cout << “Yes” << endl;
  }else{
    cout << “No” << endl; 
  }

  return 0;
}


Compiler output:
a.cc:11:18: error: extended character ‘ is not valid in an identifier
   11 |     ++count[ch - ‘a’];
      |                  ^
a.cc:11:18: error: extended character ’ is not valid in an identifier
a.cc:14:13: error: extended character “ is not valid in an identifier
   14 |     cout << “Yes” << endl;
      |             ^
a.cc:14:13: error: extended character ” is not valid in an identifier
a.cc:16:13: error: extended character “ is not valid in an identifier
   16 |     cout << “No” << endl;
      |             ^
a.cc:16:13: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:18: error: '\U00002018a\U00002019' was not declared in this scope
   11 |     ++count[ch - ‘a’];
      |                  ^~~
a.cc:14:13: error: '\U0000201cYes\U0000201d' was not declared in this scope
   14 |     cout << “Yes” << endl;
      |             ^~~~~
a.cc:16:13: error: '\U0000201cNo\U0000201d' was not declared in this scope
   16 |     cout << “No” << endl;
      |             ^~~~
Language: C

#include <stdio.h>
int main() {
  char moji[4];
  int a,b,c = 0;
  scanf("%s", &moji[]);
  for(int i=0; i<3; i++){
	if(moji[i] == 'a') a += 1;
    if(moji[i] == 'b') a += 1;
    if(moji[i] == 'c') a += 1;
  }
  if(a==1 && b==1 && c==1) printf("Yes\n");
   else printf("No\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected expression before ']' token
    5 |   scanf("%s", &moji[]);
      |                     ^
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before 'return'
   14 | return 0;
      | ^~~~~~
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<queue>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<map>
#include<complex>
#define INF 2147483647
#define llINF 9223372036854775807
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long

using namespace std;
int main(){
  int a,b,c,d;
  string str,strr;
  cin>>str;
  bool flag[3]={};

  if(str[i]=='a')flag[0]=true;
  if(str[i]=='b')flag[1]=true;
  if(str[i]=='c')flag[2]=true;
  if(flag[0]&&flag[1]&&flag[2])
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:10: error: 'i' was not declared in this scope
   28 |   if(str[i]=='a')flag[0]=true;
      |          ^
a.cc:29:10: error: 'i' was not declared in this scope
   29 |   if(str[i]=='b')flag[1]=true;
      |          ^
a.cc:30:10: error: 'i' was not declared in this scope
   30 |   if(str[i]=='c')flag[2]=true;
      |          ^
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<queue>
#include<map>
#include<string>
#include<cstdlib>
#include<cmath>
#include<cstring>
#define ll long long
using namespace std;
const double pi = 2 * acos (0.0);

int main()
{
	char s[10];
	scanf("%s",s);
	int cnta=0,cntb=0,cntc=0;
	for(int i=0;i<3;i++)
	{
		if(s[i]=='a') cnta++;
		else if(s[i]=='b') cntb++;
		else if(s[i]=='c') cntc++;
	}
	if(cnta==1&&cntb==1&&cntc==1) printf("Yes\n");
	esle printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'esle' was not declared in this scope
   26 |         esle printf("No\n");
      |         ^~~~
Language: C++

s = list(input())
abc = ['a', 'b', 'c']
end = 0
for si in s:
    if si in abc:
        abc.remove(si)
    if len(abc) == 0:
        print('Yes')
        end = 1
        break
if end == 0:
    print('No')

Compiler output:
a.cc:8:15: warning: multi-character character constant [-Wmultichar]
    8 |         print('Yes')
      |               ^~~~~
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = list(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string s;
  cin >>s;
  int x,y,z;
  x=0;
  y=0;
  z=0;
  if(s[0]=='a'||s[1]=='a'||s[2]=='a'){
    x=1;
  }
  if(s[0]=='b'||s[1]=='b'||s[2]=='b'){
    y=1;
  }
  if(s[0]=='c'||s[1]=='c'||s[2]=='c'){
    z=1;
  }
  if(x==1&&y==1&&z==1){
    cout<<Yes;
  }else{
    cout<<No;
  }
  cout<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: 'Yes' was not declared in this scope
   21 |     cout<<Yes;
      |           ^~~
a.cc:23:11: error: 'No' was not declared in this scope
   23 |     cout<<No;
      |           ^~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#include<string.h>
#include<math.h>
#include<utility>
#include<map>
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef pair<ll,ll> P;
typedef vector<P> vp;
#define REP(i,n) for(ll i=0;i<n;i++)
#define FOR(i,m,n) for(ll i=m;i<n;i++)
#define REPR(i,n) for(ll i=n-1;i>=0;i--)
#define FORR(i,n,m) for(ll i=n-1;i>=m;i--)
#define all(in) in.begin(),in.end()
#define ALL(in,K) in,in+K

int main(){
    string str;
    bool a,b,c;
    REP(i,n){
        if(str[i]=='a'&&!a){
            a = true;
        }else if(str[i]=='b'&&!b){
            a = true;
        }else if(str[i]=='c'||!c){
            a = true;
        }
    }
    if(a&&b&&c){cout << "yes" << endl;}else{cout << "No" << endl;}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:11: error: 'n' was not declared in this scope
   26 |     REP(i,n){
      |           ^
a.cc:16:31: note: in definition of macro 'REP'
   16 | #define REP(i,n) for(ll i=0;i<n;i++)
      |                               ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
#include<cmath>

using namespace std;

int main(void){

  vector<char> c(3);

  for(int i=0;i<3;i++){
    cin>>c[i];
  }

  sort(c.begin(),c.end());

  if(c[0]=='a' and c[1]=='b' and c[2]=='c') cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'vector' was not declared in this scope
   11 |   vector<char> c(3);
      |   ^~~~~~
a.cc:6:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    5 | #include<cmath>
  +++ |+#include <vector>
    6 | 
a.cc:11:10: error: expected primary-expression before 'char'
   11 |   vector<char> c(3);
      |          ^~~~
a.cc:14:10: error: 'c' was not declared in this scope
   14 |     cin>>c[i];
      |          ^
a.cc:17:8: error: 'c' was not declared in this scope
   17 |   sort(c.begin(),c.end());
      |        ^
Language: C

#include <iostream>
using namespace std;

int main() {
	char s[3];
	int k[3];
	for(int i=0;i<3;i++){
	cin>>s[i];
	k[i]=0;

	}
	for(int i=0;i<3;i++){
		if(s[i]=='a')k[0]=1;
		if(s[i]=='b')k[1]=1;
		if(s[i]=='c')k[2]=1;
	}
	if(k[0]*k[1]*k[2]){
		cout<<"Yes"<<endl;
	}else{
		cout<<"No"<<endl;
	}


	return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char c[5];
    gets(c);
    if(strcmp("abc",c)==0)
    {
        printf("Yes\n");}
        else if(strcmp("acb",c)==0)
        {
            printf("Yes\n");
        }
        else if(strcmp("bac",c)==0)
        {
            printf("Yes\n");
        }
        else if(strcmp("bca",c)==0)
        {
            printf("Yes\n");
        }
        else if(strcmp("cab",c)==0)
        {
            printf("Yes\n");
        }
        else if(strcmp("cba",c)==0)
        {
            printf("Yes\n");
        }
        else
        {
            printf("No\n");
        }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(c);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

#define Abs(x)((x) < 0 ? (x) * -1 : (x))
#define rep(x, y) for ((x) = 0; (x) < (y); (x)++)
#define repin(x, y) for ((x) = 0; (x) <= (y); (x)++)
#define nep(x, y) for ((x) = (y) - 1; 0 <= (x); (x)--)
#define nepi(x, y, z) for ((x) = (y) - 1; (z) <= (x); (x)--)
#define repi(x, y, z) for ((x) = (z); (x) < (y); (x)++)
#define repiin(x, y, z) for ((x) = (z); (x) <= (y); (x)++)
#define reps(x, y, z) for ((x) = 0; (x) < (y); (x) += (z))
#define repit(x) for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
#define all(x) (x).begin(),(x).end()
#define Mem0(x) memset(x, 0, sizeof(x))
#define Mem1(x) memset(x, -1, sizeof(x))
#define _end '\n'
#define Out(x) cout<<(x)<<_end
template<typename T> inline bool Max(T &x, const T &y) { return x < y ? x = y, 1 : 0; }
template<typename T> inline bool Min(T &x, const T &y) { return x > y ? x = y, 1 : 0; }
template<typename T> using V = vector<T>;
template<typename T> using VV = V<V<T> >;

#define pb push_back
#define mp make_pair

static const ll MOD = 1e9 + 7;
static const double PI = 3.141592653589793;

#define LOCAL 0

int main()
{
#if LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    freopen("debug.txt", "w", stderr);
#endif

    cin.tie(0);
    ios::sync_with_stdio(false);

    string s;
    char table[3];

    Mem0(table);

    cin >> s;

    rep(i, 3) {
        ch = s[i];

        if (ch == 'a' && table[0] == 0) {
            table[0] = 1;
            ans++;
        } else if (ch == 'b' && table[1] == 0) {
            table[1] = 1;
            ans++;
        } else if (ch == 'c' && table[2] == 0) {
            table[2] = 1;
            ans++;
        }
    }

    if (ans == 3) Out("Yes");
    else Out("No");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:9: error: 'i' was not declared in this scope
   53 |     rep(i, 3) {
      |         ^
a.cc:9:25: note: in definition of macro 'rep'
    9 | #define rep(x, y) for ((x) = 0; (x) < (y); (x)++)
      |                         ^
a.cc:54:9: error: 'ch' was not declared in this scope
   54 |         ch = s[i];
      |         ^~
a.cc:58:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   58 |             ans++;
      |             ^~~
      |             abs
a.cc:61:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   61 |             ans++;
      |             ^~~
      |             abs
a.cc:64:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   64 |             ans++;
      |             ^~~
      |             abs
a.cc:68:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   68 |     if (ans == 3) Out("Yes");
      |         ^~~
      |         abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
string s;
int main()
{
	cin>>s;
	sort(s.begin(),s.end());
	if(s=="abc")
		cout<<"Yes";
	else
		cout<<"No";
	Endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'Endl' was not declared in this scope
   12 |         Endl;
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long i;
char x;
map<char,long long> m;
int main()
{
    for(i=1;i<=3;i++){
     cin>>x;
     m[x]++
    }
    if(m['a']==1 && m['b']==1 && m['c']==1)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |      m[x]++
      |            ^
      |            ;
   11 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main()
{
	char str[5];
	while(gets(str)!=NULL)
	{
		if((str[0]!=str[1])&&(str[1]!=str[2])&&(str[2]!=str[0]))
		printf("Yes\n");
		else
		printf("No\n");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         while(gets(str)!=NULL)
      |               ^~~~
      |               getw
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;

int main()
{
	char a[5];
	int x = 0, y = 0, z = 0;
	gets(a);
	int len = strlen(a);
	for(int i = 0; i < len; i++)
	{
		if(a[i] == 'a') x++;
		if(a[i] == 'b') y++;
		if(a[i] == 'c') z++;
	}
	if(x == 1&& y == 1 && z == 1) printf("Yes\n");
	else printf("No\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

S = $stdin.gets.chomp
if S.count('a') == 1 && S.count('b') == 1 && S.count('c') == 1 
    print 'Yes'
else
    print 'No'
end

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print 'Yes'
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print 'No'
      |           ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = $stdin.gets.chomp
      | ^
Language: C++

#include <bits/stdc++.h>
#define P pair<int,int>
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
int main() {
	string s;
	cin >> s;
	sort(s.begin(), s.end())
	if (s == "abc") {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected ';' before 'if'
   10 |         sort(s.begin(), s.end())
      |                                 ^
      |                                 ;
   11 |         if (s == "abc") {
      |         ~~                       
a.cc:13:11: error: 'else' without a previous 'if'
   13 |         } else {
      |           ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B,K;
  cin>>A>>B>>K;
  if(B-K+1<A+K-1){
  for(int i=A;i<A+K;i++)
    cout<<i<<endl;
    else{
  }
  for(int i=A;i<A+K;i++){
    cout<<i<<endl;
  }
  for(int i=B-K+1;i<B+1;i++)
    cout<<i<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else{
      |     ^~~~
a.cc:6:18: note: to match this '{'
    6 |   if(B-K+1<A+K-1){
      |                  ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  int a,b,k;
  cin>>a>>b>>k;
  if(b-a<=k){
    while(a<=b){
      cout<<a<<endl;
      a++;
    }
  }
  else{
  vector<int> x(k);
  for(int i=0;i<k;i++){
    x[i]=a;
    a++;
  }
  vector<int> y(k);
  for(int i=0;i<k;i++){
    y[i]=b;
    b--;
  }
  sort(y.begin(),y.end());
  for(int i=0;i<k;i++){
    cout<<x[i]<<endl;
  }

  for(int i=0;i<k;i++){
    int cnt=0;
    for(int j=0;j<k;j++){
      if(y[i]==x[j]) cnt++;
    }
    if(cnt==0) cout<<y[i]<<endl;
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:36:4: error: expected '}' at end of input
   36 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    int a, b, k;
    cin >> a >> b >> k;

    vector<bool> flag(b-a+1, false);
    for (int i = 0; i < k; i++) {
        flag[i] = true;
    }
    for (int i = flag.size()-k+1; i <= flag.size(); i++) {
        flag[i] = true;
    }

    for (int i = 0; i < flag.size; i++) {
        if (flag[i])
            cout << a+i << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: invalid use of member function 'std::vector<bool, _Alloc>::size_type std::vector<bool, _Alloc>::size() const [with _Alloc = std::allocator<bool>; size_type = long unsigned int]' (did you forget the '()' ?)
   16 |     for (int i = 0; i < flag.size; i++) {
      |                         ~~~~~^~~~
      |                                  ()
Language: C++

#include <iostream>
using namespace std;
int main()
{
	LLI a, b, k;
	cin >> a >> b >> k;
	if( 2*k > b - a )
		for(int i = a; i <= b; i++)
			cout << i << "\n";
	else{
		for(int i = a; i < a+k; i++)
			cout << i << "\n";
		for(int i = b-k+1; i <= b; i++)
			cout << i << "\n";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'LLI' was not declared in this scope
    5 |         LLI a, b, k;
      |         ^~~
a.cc:6:16: error: 'a' was not declared in this scope
    6 |         cin >> a >> b >> k;
      |                ^
a.cc:6:21: error: 'b' was not declared in this scope
    6 |         cin >> a >> b >> k;
      |                     ^
a.cc:6:26: error: 'k' was not declared in this scope
    6 |         cin >> a >> b >> k;
      |                          ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define debug(n) cerr << #n << ':' << n << endl;
#define dline    cerr << __LINE__ << endl;

using ll = long long;
using ull = unsigned long long;
template<class T, class U> using P = pair<T,U>;
template<class T> using Heap = priority_queue<T>;
template<class T> using heaP = priority_queue<T,vector<T>,greater<T>>;
template<class T,class U> using umap = unordered_map<T,U>;
template<class T> using uset = unordered_set<T>;

template<class T>
bool ChangeMax(T&a,const T&b){
  if(a >= b) return false;
  a = b;    return true;
}

template<class T>
bool ChangeMin(T&a,const T&b){
  if(a <= b) return false;
  a = b;    return true;  
}

template<class T, size_t N, class U>
void Fill(T (&a)[N], const U&v){
    fill((U*)a,(U*)(a+N),v);
}

template<class T>
istream& operator >> (istream&is, vector<T>&v){
  for(auto&e:v)is >> e;
  return is;
}


int main(){
  int a,b; cin >> a >> b;
  int k; cin >> k;
  int now = a;
  for(int i = 0; i < k; ++i){
    if(now > b)break;
    cout << now << endl;
    now++;
  }
  now = max(b-k+1,now);
  for(int i = now; i < b; ++i){
    cout << nwo << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:13: error: 'nwo' was not declared in this scope; did you mean 'now'?
   51 |     cout << nwo << endl;
      |             ^~~
      |             now
Language: Java

#include "stdio.h"

int main(){
    int A,B,K,i=0;
    scanf("%d%d%d",&A,&B,&K);
    for(i=0;i<K;i++){
        printf("%d\n",A);
        A++;
    }
    for(i=0;i<K;i++){
        printf("%d\n",B);
        B--;
    }
    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include "stdio.h"
^
Main.java:1: error: class, interface, enum, or record expected
#include "stdio.h"
         ^
Main.java:5: error: class, interface, enum, or record expected
    scanf("%d%d%d",&A,&B,&K);
    ^
Main.java:6: error: class, interface, enum, or record expected
    for(i=0;i<K;i++){
    ^
Main.java:6: error: class, interface, enum, or record expected
    for(i=0;i<K;i++){
            ^
Main.java:6: error: class, interface, enum, or record expected
    for(i=0;i<K;i++){
                ^
Main.java:8: error: class, interface, enum, or record expected
        A++;
        ^
Main.java:9: error: class, interface, enum, or record expected
    }
    ^
Main.java:10: error: class, interface, enum, or record expected
    for(i=0;i<K;i++){
            ^
Main.java:10: error: class, interface, enum, or record expected
    for(i=0;i<K;i++){
                ^
Main.java:12: error: class, interface, enum, or record expected
        B--;
        ^
Main.java:13: error: class, interface, enum, or record expected
    }
    ^
Main.java:15: error: class, interface, enum, or record expected
}
^
13 errors
Language: C++

#include <iostream>
#inclue <algorithm>
using namespace std;
int main()
{
  int A, B, K;
  cin >> A >> B >> K;
  for (int i = A; i <= min(A+K-1, B); i++) {
    cout << i << endl;
  }
  for (int i = max(A+K, B-K+1); i <= B; i++) {
    cout << i << endl;
  }
  return 0;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inclue; did you mean #include?
    2 | #inclue <algorithm>
      |  ^~~~~~
      |  include
Language: C++

using namespace std;
#include <bits/stdc++.h>

int main(){
    long long a,b,k;
    cin>>a>>b>>k;
    long c=min(a+k-1,b);
    for(int i=a;i<=c;i++){
    std::cout << i << std::endl;}
    if(c==b){
        return 0;
        long d=max(c+1,b-(k-1));
        for(int i=d;i<=d;i++){
            std::cout << i << std::endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: no matching function for call to 'max(long int, long long int)'
   12 |         long d=max(c+1,b-(k-1));
      |                ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:12:19: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'long long int')
   12 |         long d=max(c+1,b-(k-1));
      |                ~~~^~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:12:19: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   12 |         long d=max(c+1,b-(k-1));
      |                ~~~^~~~~~~~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		int b = sc.nextInt();
        int k = sc.nextInt();
        int i,j;
        for(i = 0; i < k;i++){
          if(a + i <= b){
          System.out.println(a + i);
          }else{
           i--
           break; 
          }
        }
      	for(j = k-1; j >= 0;j--){
          if(b - j > a + i){          
          System.out.println(b - j);
          }
        }
    }
}

Compiler output:
Main.java:14: error: ';' expected
           i--
              ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int A,B,K ;
  cin >> A >> B >> K;
 if ( B - A + 1 >= 3) {
  for (int i = 0; i < K; i++) {
  cout << A + i << endl;
    cout << endl;

  cout << B - i << endl;
      cout << endl;

 }
  else {
    for (int i = 0; i < B - A + 1; i++) {
  cout << A + i << endl;
    cout << endl;
}

  }
   return 0;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: expected '}' before 'else'
   16 |   else {
      |   ^~~~
a.cc:7:23: note: to match this '{'
    7 |  if ( B - A + 1 >= 3) {
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int A,B,K ;
  cin >> A >> B >> K;
 if ( B - A + 1 >= 3) {
  for (int i = 0; i < K; i++) {
  cout << A + i << endl;
    cout << endl;
}
　　
    for (int i = 0; i < K; i++) {
  cout << B - i << endl;
      cout << endl;
}
 }
  else {
    for (int i = 0; i < B - A + 1; i++) {
  cout << A + i << endl;
    cout << endl;
}

  }
   return 0;
  }


Compiler output:
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:12:1: error: '\U00003000\U00003000' was not declared in this scope
   12 | 　　
      | ^~~~
a.cc:13:21: error: 'i' was not declared in this scope
   13 |     for (int i = 0; i < K; i++) {
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int A,B,K ;
  cin >> A >> B >> K;
 if ( B - A + 1 >= 3) {
  for (int i = 0; i < K; i++) {
  cout << A + i << endl;
    cout << endl;
}
　　i = 0;
    for (int i = 0; i < K; i++) {
  cout << B - i << endl;
      cout << endl;
}
 }
  else {
    for (int i = 0; i < B - A + 1; i++) {
  cout << A + i << endl;
    cout << endl;
}

  }
   return 0;
  }


Compiler output:
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　i = 0;
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:12:1: error: '\U00003000\U00003000i' was not declared in this scope
   12 | 　　i = 0;
      | ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int A,B,K ;
  cin >> A >> B >> K;
 if ( B - A + 1 >= 3) {
  for (int i = 0; i < K; i++) {
  cout << A + i << endl;
    cout << endl;
}
　　i = 0
    for (int i = 0; i < K; i++) {
  cout << B - i << endl;
      cout << endl;
}
 }
  else {
    for (int i = 0; i < B - A + 1; i++) {
  cout << A + i << endl;
    cout << endl;
}

  }
   return 0;
  }


Compiler output:
a.cc:12:1: error: extended character 　 is not valid in an identifier
   12 | 　　i = 0
      | ^
a.cc:12:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:12:1: error: '\U00003000\U00003000i' was not declared in this scope
   12 | 　　i = 0
      | ^~~~~
a.cc:13:21: error: 'i' was not declared in this scope
   13 |     for (int i = 0; i < K; i++) {
      |                     ^
Language: C++

a, b, k = map(int, input().split())
for i in range(a, min(a+k,b+1)):
  print(i)
for i in range(max(a+k, b-k+1), b+1):
  print(i)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, k = map(int, input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using st=string;
using ch=char;
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<P> vP;
typedef vector<ch> vc;
typedef vector<vc> vvc;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
#define ROF(i,a,b) for(ll i=a;i>=b;i--)
#define per(i,a) ROF(i,a,0)
const ll MOD=1000000007;
const ll MOD2=998244353;
const ld PI=acos(-1);
const ll INF=1e18;
st abc="abcdefghijklmnopqrstuvwxyz";
st ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
struct edge{ll to,cost;};

int main() {
  set<ll> s;
  ll a,b,k;
  cin >> a >> b >> k;
  rep(i,k){
    if(a+i<=b){
      s.insert(a+i);
    }
  }
  rep(i,k){
    if(a<=b-k+1+i){
      s.insert(b-k+1+i)
    }
  }
  rep(i,s.size()){
    cout << s[i] << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:24: error: expected ';' before '}' token
   36 |       s.insert(b-k+1+i)
      |                        ^
      |                        ;
   37 |     }
      |     ~                   
a.cc:40:14: error: no match for 'operator[]' (operand types are 'std::set<long long int>' and 'll' {aka 'long long int'})
   40 |     cout << s[i] << endl;
      |              ^
Language: C++

int main(){
  long long a,b,k;
  cin>>a>>b>>k;
  if(b-a+1>=2*k){
    for(int i=0;i<k;i++){
      cout<<i+a<<endl;
    }
    for(int i=b-k+1;i<=b;i++){
      cout<<i<<endl;
    }
  }
  else{
    for(int i=a;i<=b;i++){
      cout<<i<<endl;
    }
  }
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>a>>b>>k;
      |   ^~~
a.cc:6:7: error: 'cout' was not declared in this scope
    6 |       cout<<i+a<<endl;
      |       ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |       cout<<i+a<<endl;
      |                  ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<i<<endl;
      |       ^~~~
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |       cout<<i<<endl;
      |                ^~~~
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<i<<endl;
      |       ^~~~
a.cc:14:16: error: 'endl' was not declared in this scope
   14 |       cout<<i<<endl;
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,k;
  cin>>a>>b>>k;
  if(b-a+1<=k*2){
    for(int i=a;i<=d;i++)
      cout<<i<<endl;
  }
  for(int i=a;i<a+k)
    cout<<i<<endl;
  for(int i=b-k+1;i<=b)
    cout<<i<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'd' was not declared in this scope
    7 |     for(int i=a;i<=d;i++)
      |                    ^
a.cc:10:20: error: expected ';' before ')' token
   10 |   for(int i=a;i<a+k)
      |                    ^
      |                    ;
a.cc:12:23: error: expected ';' before ')' token
   12 |   for(int i=b-k+1;i<=b)
      |                       ^
      |                       ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,k;
  cin>>a>>b>>k;
  if(b-a+1<=c*2){
    for(int i=a;i<=d;i++)
      cout<<i<<endl;
  }
  for(int i=a;i<a+c)
    cout<<i<<endl;
  for(int i=b-c+1;i<=b)
    cout<<i<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'c' was not declared in this scope
    6 |   if(b-a+1<=c*2){
      |             ^
a.cc:7:20: error: 'd' was not declared in this scope
    7 |     for(int i=a;i<=d;i++)
      |                    ^
a.cc:10:19: error: 'c' was not declared in this scope
   10 |   for(int i=a;i<a+c)
      |                   ^
a.cc:10:20: error: expected ';' before ')' token
   10 |   for(int i=a;i<a+c)
      |                    ^
      |                    ;
a.cc:12:15: error: 'c' was not declared in this scope
   12 |   for(int i=b-c+1;i<=b)
      |               ^
a.cc:12:23: error: expected ';' before ')' token
   12 |   for(int i=b-c+1;i<=b)
      |                       ^
      |                       ;
Language: C

#include<stdio.h>
int main(){
  long long a,b;
  int k,i;
  scanf("%lld%lld%d",&a,&b,&k);
  if((b-a)=>2*k){
    for(i=a;i<a+k;i++){
      printf("%d\n",i);
    }
    for(i=b-k+1;i<=b;i++){
      printf("%d\n",i);
    }
  }else{
    for(i=a;i<=b;i++){
      printf("%d\n",i);
    }
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected expression before '>' token
    6 |   if((b-a)=>2*k){
      |            ^
Language: C++

/** author: __nishad__ **/

#include<bits/stdc++.h>
using namespace std;


typedef long long ll ;
typedef vector<ll> vll ;

#define Fast_IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define all(v) (v).begin(),(v).end()
#define precision(k) cout<<setprecision(k)<<fixed;
#define loop(i,a) for(int i=0; i<a;i++)
#define loop2(i,a,b) for(int i=(a);i<=(b);++i)
#define minv(v) *min_element(all(v))
#define maxv(v) *max_element(all(v))
#define getpos(v,x) (lower_bound(v.begin(),v.end(),x)-v.begin())
#define unq(v) sort(all(v)),(v).erase(unique((v).begin(),(v).end()),(v).end())
#define pb push_back
#define pi 3.14159265358979323
#define endl "\n"

int main()
{
    Fast_IOS;

    ll int a, b, k;
    cin>>a>>b>>k;

    for(ll int i=a; i<=b; i++){
        if(abs(i-a) <k || abs(i-b) <k)
            cout<<i<<" ";
    }



}








Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: two or more data types in declaration of 'a'
   27 |     ll int a, b, k;
      |     ^~
a.cc:27:5: error: two or more data types in declaration of 'b'
a.cc:27:5: error: two or more data types in declaration of 'k'
a.cc:28:10: error: 'a' was not declared in this scope
   28 |     cin>>a>>b>>k;
      |          ^
a.cc:28:13: error: 'b' was not declared in this scope; did you mean 'pb'?
   28 |     cin>>a>>b>>k;
      |             ^
      |             pb
a.cc:28:16: error: 'k' was not declared in this scope
   28 |     cin>>a>>b>>k;
      |                ^
a.cc:30:9: error: two or more data types in declaration of 'i'
   30 |     for(ll int i=a; i<=b; i++){
      |         ^~
a.cc:30:21: error: 'i' was not declared in this scope; did you mean 'pi'?
   30 |     for(ll int i=a; i<=b; i++){
      |                     ^
      |                     pi
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int A, B, K;
	cin >> A >> B >> K;
	set<int> opt;
	for (int i = 0; i < K; i++) opt.insert(A + i);
	for (int i = 0; i < K; i++) opt.insert(B - i);
	vector<int> vec(opt.begin(), opt.end());
	cout << vec.at(0);
	for (int i = 1; i < n; i++) cout << vec.at(i) << " " << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'n' was not declared in this scope
   11 |         for (int i = 1; i < n; i++) cout << vec.at(i) << " " << endl;
      |                             ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int (i) = 0; (i) < (n); i++)
#define ll long long
using namespace std;

int main() {
  ll a,b,k;
  cin>>a>>b>>k;
  int ans=0;
  for(int i=1;i<=K;i++){
    int ans=a+i-1;
    cout<<ans<<endl;
  }
  for(int i=1;i<=K;i++){
    int ans=b-k+1;
    cout<<ans<<endl;
  }
}
      
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'K' was not declared in this scope
   10 |   for(int i=1;i<=K;i++){
      |                  ^
a.cc:14:18: error: 'K' was not declared in this scope
   14 |   for(int i=1;i<=K;i++){
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int (i) = 0; (i) < (n); i++)
#define ll long long
using namespace std;

int main() {
  ll a,b,k;
  cin>>a>>b>>k;
  int ans=0;
  for(int i=1;i<=K;i++){
    int ans=a+i-1;
    cout<<ans<<endl;
  }
  for(int i<1;i<=K;i++){
    int ans=b-k+1;
    cout<<ans<<endl;
  }
}
      
    
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'K' was not declared in this scope
   10 |   for(int i=1;i<=K;i++){
      |                  ^
a.cc:14:12: error: expected ';' before '<' token
   14 |   for(int i<1;i<=K;i++){
      |            ^
      |            ;
a.cc:14:12: error: expected primary-expression before '<' token
a.cc:14:18: error: 'K' was not declared in this scope
   14 |   for(int i<1;i<=K;i++){
      |                  ^
a.cc:14:19: error: expected ')' before ';' token
   14 |   for(int i<1;i<=K;i++){
      |      ~            ^
      |                   )
a.cc:14:20: error: 'i' was not declared in this scope
   14 |   for(int i<1;i<=K;i++){
      |                    ^
Language: C++

#include<cstdio>
#include<iostream>
#include<vector>
#include<algorithm> 
using namespace std ;
int main() { 
int a , b, k;
scanf(”%d%d%d”,&a,&b,&k); 
for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
}


Compiler output:
a.cc:8:7: error: extended character ” is not valid in an identifier
    8 | scanf(”%d%d%d”,&a,&b,&k);
      |       ^
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 | scanf(”%d%d%d”,&a,&b,&k);
      |             ^
a.cc:9:37: error: extended character − is not valid in an identifier
    9 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                     ^
a.cc:9:55: error: extended character ” is not valid in an identifier
    9 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                       ^
a.cc:9:58: error: stray '\' in program
    9 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                          ^
a.cc:9:59: error: extended character ” is not valid in an identifier
    9 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                           ^
a.cc:10:21: error: extended character − is not valid in an identifier
   10 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                     ^
a.cc:10:60: error: extended character ” is not valid in an identifier
   10 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                            ^
a.cc:10:63: error: stray '\' in program
   10 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                               ^
a.cc:10:64: error: extended character ” is not valid in an identifier
   10 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                                ^
a.cc: In function 'int main()':
a.cc:8:7: error: '\U0000201d' was not declared in this scope
    8 | scanf(”%d%d%d”,&a,&b,&k);
      |       ^
a.cc:8:9: error: 'd' was not declared in this scope
    8 | scanf(”%d%d%d”,&a,&b,&k);
      |         ^
a.cc:8:13: error: 'd\U0000201d' was not declared in this scope
    8 | scanf(”%d%d%d”,&a,&b,&k);
      |             ^~
a.cc:9:36: error: expected ')' before '\U00002212'
    9 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                           ~        ^~
      |                                    )
a.cc:10:20: error: expected ')' before '\U00002212'
   10 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                  ~ ^~
      |                    )
Language: C++

#include<cstdio>
#include<vector>
#include<algorithm> 
using namespace std ;
int main() { int a , b, k;
scanf(”%d%d%d”,&a,&b,&k); 
for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
}


Compiler output:
a.cc:6:7: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d”,&a,&b,&k);
      |       ^
a.cc:6:13: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d”,&a,&b,&k);
      |             ^
a.cc:7:37: error: extended character − is not valid in an identifier
    7 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                     ^
a.cc:7:55: error: extended character ” is not valid in an identifier
    7 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                       ^
a.cc:7:58: error: stray '\' in program
    7 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                          ^
a.cc:7:59: error: extended character ” is not valid in an identifier
    7 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                                                           ^
a.cc:8:21: error: extended character − is not valid in an identifier
    8 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                     ^
a.cc:8:60: error: extended character ” is not valid in an identifier
    8 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                            ^
a.cc:8:63: error: stray '\' in program
    8 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                               ^
a.cc:8:64: error: extended character ” is not valid in an identifier
    8 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                                                                ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201d' was not declared in this scope
    6 | scanf(”%d%d%d”,&a,&b,&k);
      |       ^
a.cc:6:9: error: 'd' was not declared in this scope
    6 | scanf(”%d%d%d”,&a,&b,&k);
      |         ^
a.cc:6:13: error: 'd\U0000201d' was not declared in this scope
    6 | scanf(”%d%d%d”,&a,&b,&k);
      |             ^~
a.cc:7:36: error: expected ')' before '\U00002212'
    7 | for ( int i = a ; i <= min(b, a + k − 1); i++) printf(”%d\n” , i );
      |                           ~        ^~
      |                                    )
a.cc:8:20: error: expected ')' before '\U00002212'
    8 | for ( int i = max(b − k + 1 , a + k ); i <= b; i++) printf(”%d\n” , i );
      |                  ~ ^~
      |                    )