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

#include<stdio .h>
#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:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif

void init() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
}

void solve() {
    int a, b, k; cin >> a >> b >> k;
    for (int i = a; i <= a+k && i <= b) {
        cout << i << '\n';
    }
    for (int i = max(b, a+k)+1; i <= b; ++i) {
        cout << i << '\n';
    }
}

int main() {
    init();
    int t = 1; //scanf("%d", &t);
    while (t--) {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:17:39: error: expected ';' before ')' token
   17 |     for (int i = a; i <= a+k && i <= b) {
      |                                       ^
      |                                       ;
Language: C++

#i n cl u d e <s t d i o . h>
#i n cl u d e <v e c t o r>
#i n cl u d e <al g o ri thm>
u si n g namespace s t d ;
i n t main ( )
{
i n t a , b , k ;
s c a n f (”%d%d%d ” , &a , &b , &k ) ;
f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
a.cc:2:2: error: invalid preprocessing directive #i; did you mean #if?
    2 | #i n cl u d e <v e c t o r>
      |  ^
      |  if
a.cc:3:2: error: invalid preprocessing directive #i; did you mean #if?
    3 | #i n cl u d e <al g o ri thm>
      |  ^
      |  if
a.cc:8:12: error: extended character ” is not valid in an identifier
    8 | s c a n f (”%d%d%d ” , &a , &b , &k ) ;
      |            ^
a.cc:8:20: error: extended character ” is not valid in an identifier
    8 | s c a n f (”%d%d%d ” , &a , &b , &k ) ;
      |                    ^
a.cc:9:44: error: extended character − is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                            ^
a.cc:9:70: error: extended character ” is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                      ^
a.cc:9:73: error: stray '\' in program
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                         ^
a.cc:9:76: error: extended character ” is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                            ^
a.cc:10:26: error: extended character − is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                          ^
a.cc:10:73: error: extended character ” is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                         ^
a.cc:10:76: error: stray '\' in program
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                            ^
a.cc:10:79: error: extended character ” is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                               ^
a.cc:4:1: error: 'u' does not name a type
    4 | u si n g namespace s t d ;
      | ^
a.cc:5:1: error: 'i' does not name a type
    5 | i n t main ( )
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: fixed-point types not supported in C++
    7 |   if(B-A+1<=2K){
      |             ^~
Language: C++

#include<stdio.h>
int main(void){
  int a,b,k;
  int min,max;
  scanf("%d %d %d",&a,&b,&k);
  int num1=a+k-1;
  int num2=b-k+1;
  int num3=a+k;
  if(b>=num1){
    min=num1;
  }else if(b<=num1){
    min=b;
  }
  if(num2>=num3){
    max=num2;
  }else if(num2<=num3){
    max=num3;
  }
  for(int loop=a;loop<=min;loop++){
    printf("%d\n",loop);
  }
  for(int loop=max;loop<=b;loop++){
    printf("%d\n",i);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: 'i' was not declared in this scope
   23 |     printf("%d\n",i);
      |                   ^
Language: C++

#include<stdio.h>
int main(void){
  int a,b,k;
  int min,max;
  scanf("%d %d %d",&a,&b,&k);
  int num1=a+k-1;
  int num2=b-k+1;
  int num3=a+k;
  if(b>=num1){
    min=num1;
  }else if(b<=num1){
    min=b;
  }
  if(num2>=num3){
    max=num2;
  }else if(num2<=num3){
    max=num3;
  }
  for(int loop=a;loop<=min;loop++){
    printf("%d\n",loop);
  }
  for(int loop=max;i<=b;loop++){
    printf("%d\n",i);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:20: error: 'i' was not declared in this scope
   22 |   for(int loop=max;i<=b;loop++){
      |                    ^
Language: C++

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

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

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


Compiler output:
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected primary-expression before '>' token
    9 |   if (b+a-1=>2*k){
      |             ^
a.cc:10:22: error: 'A' was not declared in this scope
   10 |     rep(i,k) cout << A+i << endl;
      |                      ^
a.cc:11:22: error: expected primary-expression before '>' token
   11 |     for (int i=k-1;i=>0;--i) cout << B-i << endl;
      |                      ^
a.cc:11:38: error: 'B' was not declared in this scope
   11 |     for (int i=k-1;i=>0;--i) cout << B-i << endl;
      |                                      ^
a.cc:14:16: error: 'A' was not declared in this scope
   14 |     for (int i=A;i<=B;++i) cout << i << endl;
      |                ^
a.cc:14:21: error: 'B' was not declared in this scope
   14 |     for (int i=A;i<=B;++i) cout << i << endl;
      |                     ^
Language: C++

#include <iostream>
#include <cstdlib>
#include <algorithm>
using namespace std;
using ll = long long;

int x[100];

int main(){
	int k, br=0;
	ll a,b;
	cin >> a >> b >> k;
	for(int i = 0; i < k; i++){
		if(a < b)
			x[i] = a;
			br++;
	}
	for(i = br; i < k+br; i++){
		
	}
	
}


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

A,B,K = map(int,open(0).read().split()) 

a = [min(i,B) for i in range(A,A+K)]
b = [max(i,A) for i in range(B,B-K,-1)]
s = sorted(set(a) | set(b))
for i in s:
  print(i)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A,B,K = map(int,open(0).read().split())
      | ^
Language: C++

#include <iostream>
#include <set>
#include <algorithm>

using namespace std;

int main() {
    long long int A, B;
    int K;
    cin >> A >> B >> K;
    set<long long int> st;
    for(int a=A; a<min(A+K, B); a++) {
        st.insert(a);
    }
    for(int b=B; b>max(B-K, A; b--) {
        st.insert(b);
    }
    for(auto itr=st.begin(); itr!=st.end(); itr++) {
        cout << *itr << endl;
    }


    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected ')' before ';' token
   15 |     for(int b=B; b>max(B-K, A; b--) {
      |                       ~      ^
      |                              )
Language: C++

#include <iostream>
#include <set>
#include <algorithm>

using namespace std;

int main() {
    long long int A, B;
    int K;
    cin >> A >> B >> K;
    set<long long int> st;
    for(int a=A; a<min(A+K, B); a++) {
        st.insert(a);
    }
    for(int b=B; b>max(B-K, 0); b--) {
        st.insert(b);
    }
    for(auto itr=st.begin(); itr!=st.end(); itr++) {
        cout << *itr << endl;
    }


    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: no matching function for call to 'max(long long int, int)'
   15 |     for(int b=B; b>max(B-K, 0); b--) {
      |                    ~~~^~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/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:15:23: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   15 |     for(int b=B; b>max(B-K, 0); b--) {
      |                    ~~~^~~~~~~~
/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,
                 from a.cc:3:
/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:15:23: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   15 |     for(int b=B; b>max(B-K, 0); b--) {
      |                    ~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#include<vector>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  int a,b,c;
  cin>>a>>b>>c;
  for(int i=a;i<=min(a+k,b);i++){
    cout<<i<<endl;
  }
  for(int i=max(b-c,a+c);i<=b;i++){
    cout<<i<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'k' was not declared in this scope
    8 |   for(int i=a;i<=min(a+k,b);i++){
      |                        ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a < b ? a : b)
const int inf = 1000000000; // 10^9

int main(){
   int a,b,k;scanf("%d%d%d",&a,&b,&k);
   if(b-a+1<k){
      for(int i = a;i <= b;i++){
         printf("%d\n",);
      }
   }else{
      for(int i = 0;i < k;i++){
         printf("%d\n",a+i);
      }
      for(int i = k-1;i >= 0;i--){
         printf("%d\n",b-i);
      }
   }
   
}

Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected expression before ')' token
   13 |          printf("%d\n",);
      |                        ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a < b ? a : b)
const int inf = 1000000000; // 10^9

int main(){
   int a,b,k;scanf("%d%d%d",&a,&b,&k);
   for(int i = 1;i <= k;i++){
      printf("%d",a+i);
   }
   for(int i = 0;i < k;i++){
      printf("%d",b-j);
   }
}

Compiler output:
main.c: In function 'main':
main.c:15:21: error: 'j' undeclared (first use in this function)
   15 |       printf("%d",b-j);
      |                     ^
main.c:15:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX(a,b) (a > b ? a : b)
#define MIN(a,b) (a < b ? a : b)
const int inf = 1000000000; // 10^9

int main(){
   int a,b,k;scanf("%d%d%d",&a,&b,&k);
   for(int i = 1;i <= n;i++){
      printf("%d",a+i);
   }
   for(int i = 0;i < b;i++){
      printf("%d",b-j);
   }
}

Compiler output:
main.c: In function 'main':
main.c:11:23: error: 'n' undeclared (first use in this function)
   11 |    for(int i = 1;i <= n;i++){
      |                       ^
main.c:11:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:21: error: 'j' undeclared (first use in this function)
   15 |       printf("%d",b-j);
      |                     ^
Language: C++

#i n cl u d e <s t d i o . h>
#i n cl u d e <v e c t o r>
#i n cl u d e <al g o ri thm>
u si n g namespace s t d ;
i n t main ( )
{
i n t a , b , k ;
s c a n f (”%d%d%d ” , &a , &b , &k ) ;
f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
a.cc:2:2: error: invalid preprocessing directive #i; did you mean #if?
    2 | #i n cl u d e <v e c t o r>
      |  ^
      |  if
a.cc:3:2: error: invalid preprocessing directive #i; did you mean #if?
    3 | #i n cl u d e <al g o ri thm>
      |  ^
      |  if
a.cc:8:12: error: extended character ” is not valid in an identifier
    8 | s c a n f (”%d%d%d ” , &a , &b , &k ) ;
      |            ^
a.cc:8:20: error: extended character ” is not valid in an identifier
    8 | s c a n f (”%d%d%d ” , &a , &b , &k ) ;
      |                    ^
a.cc:9:44: error: extended character − is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                            ^
a.cc:9:70: error: extended character ” is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                      ^
a.cc:9:73: error: stray '\' in program
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                         ^
a.cc:9:76: error: extended character ” is not valid in an identifier
    9 | f o r ( i n t i = a ; i <= min ( b , a + k − 1 ) ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                            ^
a.cc:10:26: error: extended character − is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                          ^
a.cc:10:73: error: extended character ” is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                         ^
a.cc:10:76: error: stray '\' in program
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                            ^
a.cc:10:79: error: extended character ” is not valid in an identifier
   10 | f o r ( i n t i = max( b − k + 1 , a + k ) ; i <= b ; i++) p r i n t f (”%d\n ” , i ) ;
      |                                                                               ^
a.cc:4:1: error: 'u' does not name a type
    4 | u si n g namespace s t d ;
      | ^
a.cc:5:1: error: 'i' does not name a type
    5 | i n t main ( )
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ' '
#define in(n) cin >> n
#define in2(n, m) cin >> n >> m
#define in3(n, m, l) cin >> n >> m >> l
#define out(n) cout << n
const ll mei = (ll)1e9 + 7;

int main(){
  ll a, b, k, s, t;
  in3(a, b, k);
  if(k > (b - a + 1) / 2){
    rep2(i, a, b + 1){
      out(i);
      memi;
    }
  }
  else{
    rep(i, a, k){
      out(i);
      memi;
    }
    rep(i, b, k){
      out(b - k + 1 + i);
      memi;
    }
  }
}

Compiler output:
a.cc:27:16: error: macro "rep" passed 3 arguments, but takes just 2
   27 |     rep(i, a, k){
      |                ^
a.cc:4:9: note: macro "rep" defined here
    4 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
      |         ^~~
a.cc:31:16: error: macro "rep" passed 3 arguments, but takes just 2
   31 |     rep(i, b, k){
      |                ^
a.cc:4:9: note: macro "rep" defined here
    4 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:27:5: error: 'rep' was not declared in this scope
   27 |     rep(i, a, k){
      |     ^~~
a.cc:31:8: error: expected ';' before '{' token
   31 |     rep(i, b, k){
      |        ^        ~
      |        ;
Language: C++

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

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 << a << endl;
			a++;
		}
		for(int i = 0;i < k;i++)
		{
			cout << b - k + 1; << endl;
			b++;
		}
	}
	else
	{
		for(int i = a;i <= b;i++)
		{
			cout << i << endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:44: error: expected primary-expression before '<<' token
   16 |                         cout << b - k + 1; << endl;
      |                                            ^~
Language: C++

#include"cstdio"
int main (){
	int n,m;
	scanf ("%d%d",&n,&m,&v);
	for (int i=0;i<v;i++){
		printf ("%d\n",n+i);
	}
	for (int i=0;i<v;i++){
		printf ("%d\n",n-i);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:30: error: 'v' was not declared in this scope
    4 |         scanf ("%d%d",&n,&m,&v);
      |                              ^
Language: C++

// [[ABC134C] Exception Handling] https://www.luogu.com.cn/problem/AT4843
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
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);
  return 0;
}


Compiler output:
a.cc:10:37: error: extended character − is not valid in an identifier
   10 |   for (int i = a; i <= min(b, a + k − 1); i++) printf("%d\n", i);
      |                                     ^
a.cc:11:22: error: extended character − is not valid in an identifier
   11 |   for (int i = max(b − k + 1, a + k); i <= b; i++) printf("%d\n", i);
      |                      ^
a.cc: In function 'int main()':
a.cc:10:36: error: expected ')' before '\U00002212'
   10 |   for (int i = a; i <= min(b, a + k − 1); i++) printf("%d\n", i);
      |                           ~        ^~
      |                                    )
a.cc:11:21: error: expected ')' before '\U00002212'
   11 |   for (int i = max(b − k + 1, a + k); i <= b; i++) printf("%d\n", i);
      |                   ~ ^~
      |                     )
Language: C++

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

int main(){
  int A,B,K;
  cin >> A >> B >> K;
  for(int i=A;i<=min(b,A+K-1);i++)cout << i << endl;
  for(int i=max(B-K+1,A+K);i<=B;i++)cout << i << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'b' was not declared in this scope
    7 |   for(int i=A;i<=min(b,A+K-1);i++)cout << i << endl;
      |                      ^
Language: C++

v#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,k;cin>>a>>b>>k;
    vector<int> ans(500,0);
    for(int i=0;i<k;i++){
        ans[a+i]=a+i;
    }
    for(int i=0;i<k;i++){
        ans[b-i]=b-i;
    }
    for(int i=a;i<=b;i++){
        if(ans[i]!=0){
            cout<<ans[i]<<endl;
        }
    }
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:4:15: error: 'cin' was not declared in this scope
    4 |     int a,b,k;cin>>a>>b>>k;
      |               ^~~
a.cc:5:5: error: 'vector' was not declared in this scope
    5 |     vector<int> ans(500,0);
      |     ^~~~~~
a.cc:5:12: error: expected primary-expression before 'int'
    5 |     vector<int> ans(500,0);
      |            ^~~
a.cc:7:9: error: 'ans' was not declared in this scope
    7 |         ans[a+i]=a+i;
      |         ^~~
a.cc:10:9: error: 'ans' was not declared in this scope
   10 |         ans[b-i]=b-i;
      |         ^~~
a.cc:13:12: error: 'ans' was not declared in this scope
   13 |         if(ans[i]!=0){
      |            ^~~
a.cc:14:13: error: 'cout' was not declared in this scope
   14 |             cout<<ans[i]<<endl;
      |             ^~~~
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |             cout<<ans[i]<<endl;
      |                           ^~~~
Language: Java

import sys

a,b,k=map(int,input().split())
list=[]
if (b-a)<=k*2:
	for l in range(b-a+1):
		print(l+a)
	sys.exit()
for i in range(a,a+k):
	list.append(i)
for j in range(b,b-k,-1):
	list.append(j)
list.sort()
for k in range(len(list)):
	print(list[k])

Compiler output:
Main.java:1: error: '.' expected
import sys
          ^
Main.java:3: error: ';' expected
a,b,k=map(int,input().split())
 ^
2 errors
Language: C++

#include<stdio.h>
int mian(){
    int a,b,k,i;
    scanf("%d%d%d",&a,&b,&k);
    for(i=a;i<=b;i++){
        if(i<a+k||b-k<i)
            printf("%d\n",i);
    }
    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>

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 ) ;

return 0;
}

Compiler output:
a.cc:9:38: error: extended character − is not valid in an identifier
    9 | for( int i= a ; i <= min ( b , a + k − 1 ) ; i++)
      |                                      ^
a.cc:12:20: error: extended character − is not valid in an identifier
   12 | for( int i= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |                    ^
a.cc: In function 'int main()':
a.cc:9:37: error: expected ')' before '\U00002212'
    9 | for( int i= a ; i <= min ( b , a + k − 1 ) ; i++)
      |                          ~          ^~
      |                                     )
a.cc:12:19: error: expected ')' before '\U00002212'
   12 | for( int i= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |                ~  ^~
      |                   )
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main( )
{
int a , b , k ;
scanf("%d%d%d " , &a , &b , &k ) ;

for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
     printf ("%d\n " , i ) ;

for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
     printf("%d\n " , i ) ;

return 0;
}

Compiler output:
a.cc:9:36: error: extended character − is not valid in an identifier
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |                                    ^
a.cc:12:18: error: extended character − is not valid in an identifier
   12 | for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |                  ^
a.cc: In function 'int main()':
a.cc:9:9: error: expected unqualified-id before '=' token
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |         ^
a.cc:9:9: error: expected ';' before '=' token
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |         ^
      |         ;
a.cc:9:9: error: expected primary-expression before '=' token
a.cc:9:15: error: 'i' was not declared in this scope
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |               ^
a.cc:9:35: error: expected ')' before '\U00002212'
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |                        ~          ^~
      |                                   )
a.cc:9:41: error: expected ')' before ';' token
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |    ~                                    ^~
      |                                         )
a.cc:9:44: error: 'i' was not declared in this scope
    9 | for( int= a ; i <= min ( b , a + k − 1 ) ; i++)
      |                                            ^
a.cc:12:9: error: expected unqualified-id before '=' token
   12 | for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |         ^
a.cc:12:9: error: expected ';' before '=' token
   12 | for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |         ^
      |         ;
a.cc:12:9: error: expected primary-expression before '=' token
a.cc:12:17: error: expected ')' before '\U00002212'
   12 | for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |              ~  ^~
      |                 )
a.cc:12:44: error: expected ')' before ';' token
   12 | for( int= max( b − k + 1 , a + k ) ; i <= b ; i++)
      |    ~                                       ^~
      |                                            )
Language: C++

#include<bits/stdc++.h>
using namespace std;
signed mian(){
  int a,b,c;
  cin>>a>>b>>c;
  if(2*c>=b-a+1){
    for(int i=a;i<=b;i++) cout<<i<<"\n";
  }
  else{
    for(int i=a;i<=c;i++) cout<<i<<"\n";
    for(int i=b-c;i<=b;i++) cout<<i<<"\n";
  }
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
int d[1000000010];
signed mian(){
  int a,b,c;
  cin>>a>>b>>c;
  for(int i=0;i<=c;i++) d[a+i]=1,d[b-i]=1;
  for(int i=1;i<=1000000000;i++){
    if(d[i]!=0) cout<<i<<"\n";
  }
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;
main(){
  long a,b,k;
  cin>>a>>b>>k;
  set<long>s;
  for(int i=0;i<k;++i){
    if(a+i>b)break;
    s.insert(a+i);
  }
  for(int i=0;i<k;++i){
    if(b-i<a)break;
    s.insert(b-i);
  }
  for(auto x:s)cout<<x<<endl;
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'set' was not declared in this scope
    6 |   set<long>s;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:6:7: error: expected primary-expression before 'long'
    6 |   set<long>s;
      |       ^~~~
a.cc:9:5: error: 's' was not declared in this scope
    9 |     s.insert(a+i);
      |     ^
a.cc:13:5: error: 's' was not declared in this scope
   13 |     s.insert(b-i);
      |     ^
a.cc:15:14: error: 's' was not declared in this scope
   15 |   for(auto x:s)cout<<x<<endl;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  long a,b,c;
  cin>>a>>b>>c;
  vector<long> ans;
  for(int i=0;i<c;++i){
    ans.puhs_back(a+i);
    ans.push_back(b-i);
  }
  sort(begin(ans),end(ans));
  for(auto x:ans)cout<<x<<" ";
  cout<<endl;
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'class std::vector<long int>' has no member named 'puhs_back'; did you mean 'push_back'?
    8 |     ans.puhs_back(a+i);
      |         ^~~~~~~~~
      |         push_back
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before ')' token
   10 | for(int j=b-k;j<b<j++){
      |                      ^
      |                      ;
Language: C++

#include<stdc++.h>
using namespace std;
int main(){
  int a,b,k;
  cin >> a>>b>>k;
  for(int i=a;i<a+k;i++){
    cout << i <<endl;
    if(i>b-k)break;
  }
for(int j=b-k;j<b<j++){
cout << j <<endl;}  
}

Compiler output:
a.cc:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include<stdc++.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

typedef long long int ll;
typedef pair<ll, ll> pll;

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

int main()
{
    ll A, B, K;
    cin >> A >> B >> K;
    vector<ll> ans;
    REP(i, K)
    {
        ans.push_back(A + i, B - i);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:22: error: no matching function for call to 'std::vector<long long int>::push_back(ll, ll)'
   21 |         ans.push_back(A + i, B - i);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; value_type = long long int]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:7: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; value_type = long long int]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note:   candidate expects 1 argument, 2 provided
Language: C++

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

int main(){
    long long a,b,k;cin>>a>>b>>k;
    for(long long i=a;i<a+k||i<b-k+1;i++;i++) cout<<i<<endl;
    for(long long i=b-k+1;i<b+1;i++) cout<<i<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:41: error: expected ')' before ';' token
    6 |     for(long long i=a;i<a+k||i<b-k+1;i++;i++) cout<<i<<endl;
      |        ~                                ^
      |                                         )
a.cc:6:42: error: 'i' was not declared in this scope
    6 |     for(long long i=a;i<a+k||i<b-k+1;i++;i++) cout<<i<<endl;
      |                                          ^
Language: C++

#include <iostream>
#include <set>

#define REP(i, a, b) for ( int i = (a); i < (b); i++ )
#define REVREP(i, a, b) for ( int i = (a); i >= (b); i--)
#define DEBUG_INT(var) printf("the value of "#var" is %d\n", var)
#define PRINT_ARRAY(name, i) printf("the value of "#name"[%d] is %d\n", (i), name[(i)])
#define DEBUG_ARRAY(name, begin, end) REP(i, begin, end) PRINT_ARRAY(name, i)

using namespace std;

char A, B, K;
set<int> st;


int main(void) {
    scanf("%d %d %d", &A, &B, &K);
    
    REP (i, A, min(A+K,B+1)) st.insert(i);
    REVREP (i, B, max(A,B-K+1)) st.insert(i);
    
    
    for (auto itr = st.begin(); itr != st.end(); itr++ ) printf("%d\n", *itr);
    

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: no matching function for call to 'max(char&, int)'
   20 |     REVREP (i, B, max(A,B-K+1)) st.insert(i);
      |                   ~~~^~~~~~~~~
a.cc:5:50: note: in definition of macro 'REVREP'
    5 | #define REVREP(i, a, b) for ( int i = (a); i >= (b); i--)
      |                                                  ^
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/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:20:22: note:   deduced conflicting types for parameter 'const _Tp' ('char' and 'int')
   20 |     REVREP (i, B, max(A,B-K+1)) st.insert(i);
      |                   ~~~^~~~~~~~~
a.cc:5:50: note: in definition of macro 'REVREP'
    5 | #define REVREP(i, a, b) for ( int i = (a); i >= (b); i--)
      |                                                  ^
/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
Language: C++

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

int main(){
  int a,b,c;
  
    cin>>a>>b>>c;
 int c[120],d[120],max;
  
 for (int i =0;i<c;i++){
      c[i] = a+i;
     d[i] = b-c+1+i;
 }
  for(int i =0;i<c;i++){
    cout << c[i] << endl;
    
    if(c[i] >=b ){
      return 0;
    }
    if(c[i] == d[0]-1){
      max = c[i];
  }
  for(int j =0;j<c;j++){
    if((d[j] >= a) && (d[j] == max+1 ){
  for(int i = j;i<c;i++){
    cout <<d[i] <<endl;
  }
    }
       }
       return 0;
       }
    
   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: conflicting declaration 'int c [120]'
    8 |  int c[120],d[120],max;
      |      ^
a.cc:5:11: note: previous declaration as 'int c'
    5 |   int a,b,c;
      |           ^
a.cc:11:8: error: invalid types 'int[int]' for array subscript
   11 |       c[i] = a+i;
      |        ^
a.cc:15:14: error: invalid types 'int[int]' for array subscript
   15 |     cout << c[i] << endl;
      |              ^
a.cc:17:9: error: invalid types 'int[int]' for array subscript
   17 |     if(c[i] >=b ){
      |         ^
a.cc:20:9: error: invalid types 'int[int]' for array subscript
   20 |     if(c[i] == d[0]-1){
      |         ^
a.cc:21:14: error: invalid types 'int[int]' for array subscript
   21 |       max = c[i];
      |              ^
a.cc:24:39: error: expected ')' before '{' token
   24 |     if((d[j] >= a) && (d[j] == max+1 ){
      |       ~                               ^
      |                                       )
a.cc:29:8: error: expected primary-expression before '}' token
   29 |        }
      |        ^
a.cc:31:9: error: expected '}' at end of input
   31 |        }
      |         ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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();

    if((B - A) / 2.0 >= K){
      for(int i = 0; i < K; i++){
        System.out.println(A + i);
      }
      for(i = 0; i < K; i++){
        System.out.println(B - K + i + 1);
      }
    }else{
      for(int i = 0; i < B - A + 1; i++){
        System.out.println(A + i);
      }
    }
  }
}


Compiler output:
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
                 ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
                        ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
        System.out.println(B - K + i + 1);
                                   ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java

import java.util.*;

public class test_B{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int K = sc.nextInt();

    if((B - A) / 2.0 >= K){
      for(int i = 0; i < K; i++){
        System.out.println(A + i);
      }
      for(i = 0; i < K; i++){
        System.out.println(B - K + i + 1);
      }
    }else{
      for(int i = 0; i < B - A + 1; i++){
        System.out.println(A + i);
      }
    }
  }
}


Compiler output:
Main.java:3: error: class test_B is public, should be declared in a file named test_B.java
public class test_B{
       ^
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
          ^
  symbol:   variable i
  location: class test_B
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
                 ^
  symbol:   variable i
  location: class test_B
Main.java:14: error: cannot find symbol
      for(i = 0; i < K; i++){
                        ^
  symbol:   variable i
  location: class test_B
Main.java:15: error: cannot find symbol
        System.out.println(B - K + i + 1);
                                   ^
  symbol:   variable i
  location: class test_B
5 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int d[1000000005];
int f[1000000005];
int main(){
  int a,b,c,g=0;
  cin>>a>>b>>c;
  for(int i=a;i<=b;i++){
    d[g]=i;
    g++;
  }
  for(int i=0;i<g;i++){
    if(i<c||g-c-1<i) f[i]=1;
  }
  for(int i=0;i<g;i++){
    if(f[i]) cout<<d[i]<<"\n";
  }
}

Compiler output:
/tmp/ccFlERCK.o: in function `main':
a.cc:(.text+0xa9): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccFlERCK.o
a.cc:(.text+0xd9): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in /tmp/ccFlERCK.o
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: 'g' was not declared in this scope
   13 |   }g
      |    ^
a.cc:14:16: error: 'i' was not declared in this scope
   14 |   for(int i=A; i<A+K; i++){
      |                ^
Language: C++

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

int main() {
    int m, M, k;
    cin >> m >> M >> k;
  	int n = M-m+1;
    int *a;
　   a = (int*)malloc(sizeof(int));
    //vector<int> a(n);
    rep(i, n) a[i] = i + m;
    //sort(a.begin(), a.end());
    rep(i, n) {
        if(i < k || i >= n-k) {
          cout << a[i];
          if(i != n-1) cout << endl;
        }
      
    }
  
    free(a);
  
  	return 0;
}


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

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

int main() {
    int m, M, k;
    cin >> m >> M >> k;
  	int n = M-m+1;
    int *a;
　   a = (int*)malloc(sizeof(int));
    //vector<int> a(n);
    rep(i, n) a.at(i) = i + m;
    //sort(a.begin(), a.end());
    rep(i, n) {
        if(i < k || i >= n-k) {
          cout << a.at(i);
          if(i != n-1) cout << endl;
        }
      
    }
  
    free(a);
  
  	return 0;
}


Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　   a = (int*)malloc(sizeof(int));
      | ^
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000' was not declared in this scope
   10 | 　   a = (int*)malloc(sizeof(int));
      | ^~
a.cc:12:17: error: request for member 'at' in 'a', which is of non-class type 'int*'
   12 |     rep(i, n) a.at(i) = i + m;
      |                 ^~
a.cc:16:21: error: request for member 'at' in 'a', which is of non-class type 'int*'
   16 |           cout << a.at(i);
      |                     ^~
Language: C++

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

int main() {
    int m, M, k;
    cin >> m >> M >> k;
  	int n = M-m+1;
    int *a;
　   a = malloc(sizeof(int) * n);
    //vector<int> a(n);
    rep(i, n) a.at(i) = i + m;
    //sort(a.begin(), a.end());
    rep(i, n) {
        if(i < k || i >= n-k) {
          cout << a.at(i);
          if(i != n-1) cout << endl;
        }
      
    }
  
    free(a);
  
  	return 0;
}


Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　   a = malloc(sizeof(int) * n);
      | ^
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000' was not declared in this scope
   10 | 　   a = malloc(sizeof(int) * n);
      | ^~
a.cc:12:17: error: request for member 'at' in 'a', which is of non-class type 'int*'
   12 |     rep(i, n) a.at(i) = i + m;
      |                 ^~
a.cc:16:21: error: request for member 'at' in 'a', which is of non-class type 'int*'
   16 |           cout << a.at(i);
      |                     ^~
Language: C++

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

int main() {
    int m, M, k;
    cin >> m >> M >> k;
  	int n = M-m+1;
    int *a;
　   a = malloc(sizeof(int) * n);
    //vector<int> a(n);
    rep(i, n) a.at(i) = i + m;
    //sort(a.begin(), a.end());
    rep(i, n) {
        if(i < k || i >= n-k) {
          cout << a.at(i);
          if(i != n-1) cout << endl;
        }
      
    }
  
    free(a)
  
  	return 0;
}


Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　   a = malloc(sizeof(int) * n);
      | ^
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000' was not declared in this scope
   10 | 　   a = malloc(sizeof(int) * n);
      | ^~
a.cc:12:17: error: request for member 'at' in 'a', which is of non-class type 'int*'
   12 |     rep(i, n) a.at(i) = i + m;
      |                 ^~
a.cc:16:21: error: request for member 'at' in 'a', which is of non-class type 'int*'
   16 |           cout << a.at(i);
      |                     ^~
a.cc:22:12: error: expected ';' before 'return'
   22 |     free(a)
      |            ^
      |            ;
   23 | 
   24 |         return 0;
      |         ~~~~~~
Language: C++

#include<bits/stdc++.h>
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:27: error: extended character − is not valid in an identifier
    6 |   for (int i=a;i<=min(b,a+k−1);i++) printf("%d\n",i);
      |                           ^
a.cc:7:18: error: extended character − is not valid in an identifier
    7 |   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:27: error: 'k\U000022121' was not declared in this scope
    6 |   for (int i=a;i<=min(b,a+k−1);i++) printf("%d\n",i);
      |                           ^~~
a.cc:7:18: error: 'b\U00002212k' was not declared in this scope
    7 |   for (int i=max(b−k+1,a+k);i<=b;i++) printf("%d\n",i);
      |                  ^~~
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();
      if(b-a <= k*2){
      	for(int i = 0;i <= b-a;i++){
        	System.out.println(a+i);
        }
      }else{
      	for(int i = 0;i < k;i++){
      		System.out.println(a+k)
      	}
      	for(int i = 1;i <= k;i++){
      		System.out.println(b-k+i)
      	}
      }
    }
}

Compiler output:
Main.java:14: error: ';' expected
      		System.out.println(a+k)
      		                       ^
Main.java:17: error: ';' expected
      		System.out.println(b-k+i)
      		                         ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int A, B, K;
	cin >> A >> B >> K;
	int n = B - A + 1;
	set<int> a;




	for (int i = A; i <= min(B, A + K - 1); i++)
	{
		a.insert(i);

	}
	for (int i = B; i >= max(A, B - K + 1); i--)
	{
		a.insert(i);

	}


	for each (int ans in a)
	{
		cout << ans << endl;

	}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:13: error: expected '(' before 'each'
   24 |         for each (int ans in a)
      |             ^~~~
      |             (
a.cc:24:19: error: expected primary-expression before 'int'
   24 |         for each (int ans in a)
      |                   ^~~
a.cc:24:13: error: 'each' was not declared in this scope
   24 |         for each (int ans in a)
      |             ^~~~
a.cc:31:1: error: expected primary-expression before '}' token
   31 | }
      | ^
a.cc:28:10: error: expected ';' before '}' token
   28 |         }
      |          ^
      |          ;
......
   31 | }
      | ~         
a.cc:31:1: error: expected primary-expression before '}' token
   31 | }
      | ^
a.cc:28:10: error: expected ')' before '}' token
   28 |         }
      |          ^
      |          )
......
   31 | }
      | ~         
a.cc:24:13: note: to match this '('
   24 |         for each (int ans in a)
      |             ^~~~
a.cc:31:1: error: expected primary-expression before '}' token
   31 | }
      | ^