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

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <cmath>

int main(void) {

	int a, b, k;

	std::cin >> a >> b >> k;

	for (size_t i = a; i <= a + k; i++) {
		std::cout << i << std::endl;
	}

	for (size_t i = b - k; i <= b; i++) {
		std::cotu << i << std::endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: 'cotu' is not a member of 'std'; did you mean 'cout'?
   19 |                 std::cotu << i << std::endl;
      |                      ^~~~
      |                      cout
Language: C++

#include <stdio.h>
#include <algorithm>
#include <numeric>
#include <functional>
#include <vector>
#include <string>

using namespace std;

int a = 0;
int b = 0;
int k = 0;
int z[100000001];
vector<int> ans1;
vector<int> ans2;


int main() {

	cin >> a;
	cin >> b;
	cin >> k;

	for (int i = a; i <= b; ++i) {
		z[i - a] = i;
	}

	for (int j = 0; j < k; ++j) {
		ans1.push_back(z[j]);
	}

	int tmp = 0;
	tmp = b - a - k;
	if (tmp < 0) {
		tmp = 0;
	}
	for (int s = (b-a); s > tmp; --s) {
		ans2.push_back(z[s]);
	}

	ans1.insert(ans1.end(), ans2.begin(), ans2.end());
	sort(ans1.begin(), ans1.end());//昇順ソート
	ans1.erase(unique(ans1.begin(), ans1.end()), ans1.end()); //重複の削除

	for (int t = 0; t < ans1.size(); ++t) {
		if (ans1.at(t) > 0) {
			cout << ans1.at(t);
		}	
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'cin' was not declared in this scope
   20 |         cin >> a;
      |         ^~~
a.cc:7:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    6 | #include <string>
  +++ |+#include <iostream>
    7 | 
a.cc:47:25: error: 'cout' was not declared in this scope
   47 |                         cout << ans1.at(t);
      |                         ^~~~
a.cc:47:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
#include<conio.h>
int main() {
	int a, b, k;
	int c[100];
	int cnt = 0;
	scanf("%d%d%d", &a, &b, &k);
	for (int i = a; i <= b; i++) {
		if (i >= a + k - 1 ||
			i <= b - k + 1) {
			c[cnt] = i;
			cnt++;
		}
	}
	for (int i = 0; i < cnt; i++) {
		printf("%d\n", c[i]);
	}
	getch();
	return 0;
}

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

#include <iostream>
#include <bits/stdc++.h>
 
int main() {
  int a,b,k;
  cin>>a>>b>>k;
  
  for (int i=a;i<=b;i++){
    if (i<=a+k-1 || b-k+1<=i){
      cout << i << endl;
    }
  }
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << i << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << i << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before '==' token
    9 |   for (int i==a;i<=b;i++){
      |             ^~
      |             ;
a.cc:9:13: error: expected primary-expression before '==' token
    9 |   for (int i==a;i<=b;i++){
      |             ^~
a.cc:9:21: error: expected ')' before ';' token
    9 |   for (int i==a;i<=b;i++){
      |       ~             ^
      |                     )
a.cc:9:22: error: 'i' was not declared in this scope
    9 |   for (int i==a;i<=b;i++){
      |                      ^
Language: C

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

#include<queue>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int a,b,k;
int main()
{
	scanf("%d%d%d",&a,&b,&k);
	int c=a+k;
	int d=b-k;
	return 0;
	if (2*k > a-b)
		for (int i=a;i<=b;i++)
		    printf("%d\n",i);
	else
	{
		for (int i=a;i<=a+k;i++)
		    printf("%d\n",i);
		for (int i=b-k;i<=b;i++)
		    printf("%d\n",i)
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:37: error: expected ';' before '}' token
   22 |                     printf("%d\n",i)
      |                                     ^
      |                                     ;
   23 |         }
      |         ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'i' undeclared (first use in this function)
   12 | for(i=0;i<c;i++){
      |     ^
main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
  int a,b,k;
  cin >> a >> b >> k;
  for(int i=a;i<=b;i++){
    if(i<a+k || b-k<i){
      cout << i << endl;
    }
  }
  return 0;
}
~     

Compiler output:
a.cc:17:2: error: expected class-name at end of input
   17 | ~
      |  ^
Language: Java

import java.util.Scanner;
import java.util.TreeSet;

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();
		TreeSet<Integer> set = new TreeSet<>();
		for (int i=a; i<=Math.min(b,a+k-1); i++) set.add(i);
		for (int i=b; i>=Math.max(a,b-k+1); i--) set.add(i);
		set.forEach(System.out::println);
	}


Compiler output:
Main.java:15: error: reached end of file while parsing
	}
	 ^
1 error
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:27: error: 'c' undeclared (first use in this function)
    5 |   scanf("%d %d %d",&a,&b,&c);
      |                           ^
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <cmath>

int main(){
  int a,b,k;
  std::cin >> a >> b >> k;
  if(a-b<2k){
    for(; a!=b; ++a){
      std::cout << a << std::endl;
    }
  }else{
    for(static int i=0; i<k; ++i) std::cout << a+i << std::endl;
    for(        i=k-1; i>=0; --i) std::cout << b-i << std::endl;
  }
  return 0;
}

//1.2.3.4.5.6.7


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: fixed-point types not supported in C++
    7 |   if(a-b<2k){
      |          ^~
a.cc:13:17: error: 'i' was not declared in this scope
   13 |     for(        i=k-1; i>=0; --i) std::cout << b-i << std::endl;
      |                 ^
Language: C++

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

#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define repr(i,a,b) for(int i=(int)(a-1);i>=b;i--)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout << #x" = " << x << endl
#define maxch(x,y) x=max(x,y)
#define minch(x,y) x=min(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt(x) bitset<32>(x).count()

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;

#define INF INT_MAX/3

int main(){
    cin.sync_with_stdio(false);
    int a, b, k;
    cin >> a >> b >> k;
    vector<int> v;
    repl(i, a, a + k)if (i < b + 1) v.pb(i);
    repl(i, b - k + 1, b + 1) if (i > a - 1) v.pb(i);
    sort(v);
    uni(v);
    rep(i, v.size()) cout << v[i] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:9: error: no matching function for call to 'sort(std::vector<int>&)'
   32 |     sort(v);
      |     ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

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

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

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

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
  int A,B,k;
  cin>>A>>B>>K;
  for(int i=A;i<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:7:14: error: 'K' was not declared in this scope
    7 |   cin>>A>>B>>K;
      |              ^
Language: C++

#include <iostream>


using namespace std;


int main(int argc, char *argv[])
{
    int A,B,K;

    cin >> A >> B >> K;

    vector<int> buf;

    for(int i=A; i<=B; i++)
        if(i < A + K || i > B-K )
            cout << i << endl;


}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:13:5: error: 'vector' was not declared in this scope
   13 |     vector<int> buf;
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:13:12: error: expected primary-expression before 'int'
   13 |     vector<int> buf;
      |            ^~~
Language: C++

#include <iostream>
#include <opencv2/core/core.hpp>


using namespace std;


int main(int argc, char *argv[])
{
    int A,B,K;

    cin >> A >> B >> K;

    vector<int> buf;

    for(int i=A; i<=B; i++)
        if(i < A + K || i > B-K )
            cout << i << endl;


}

Compiler output:
a.cc:2:10: fatal error: opencv2/core/core.hpp: No such file or directory
    2 | #include <opencv2/core/core.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

#include <stdio.h>
int main(void)
{
   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:
a.cc:15:2: error: expected class-name at end of input
   15 | ~
      |  ^
Language: C++

#include <stdio.h>
int main(void)
{
   int a, b, i, n, j;

   scanf("%d%d%d",&a,&b,&n);

   if(a==b){
      printf("%d\n"a);
      printf("%d\n"b);
   }

   else if((b-a <= n)||(b-a-n==1)){
      for(i=a;i<=b;i++)
         printf("%d\n",i);
   }

   else{ 
      for(i=0;i<n;i++){
         printf("%d\n",a+i);
      }
      i=i-1;
      for(j=0;j<n;j++){
         if(a+i!=b-n+j+1)
         printf("%d\n",b-n+j+1);
      }
   }

   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    9 |       printf("%d\n"a);
      |              ^~~~~~~
a.cc:10:14: error: unable to find string literal operator 'operator""b' with 'const char [4]', 'long unsigned int' arguments
   10 |       printf("%d\n"b);
      |              ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,x;
  cin >> a >> b >> x;
  if(b-a+1 <= x*2){
    for(int i=0;a+i==b;i++){
      cout << (a+i)<<endl;
    }
  	return 0;
  }
  for(int i=0;i==x;i++){
    cout << (a+i) <<endl;
  }
  for(int i=x;i==0;i--){
    cout << (b-i) <<endl
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before '}' token
   16 |     cout << (b-i) <<endl
      |                         ^
      |                         ;
   17 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,x;
  cin >> a >> b >> x;
  if(b-1-a > x){
    for(int i=1;a+i==b-2;i++){
      cout << a+i;
    }
  	return 0;
  }
  for(i=1;i==x;i++){
    cout << a+i;
  }
  for(i=x;i==1;i--){
    cout << b-i;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=1;i==x;i++){
      |       ^
a.cc:15:7: error: 'i' was not declared in this scope
   15 |   for(i=x;i==1;i--){
      |       ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <random>
#include <cstdio>
#include <cstring>
#include <cmath>

// for i in f..<t { as swift
#define forin(i, f, t) for(auto i = f; i < t; i++)

using namespace std;
using ll = long long;
using XY = pair<int, int>;
//#include<bits/stdc++.h>

int main() {
    ll a, b, k;
    cin >> a >> b >> k;
    
    int i = a;
    for (; i < a + k; i++)
    cout << i << endl;
    for (auto j = max(i, b - k + 1); j < b + 1; j++)
    cout << j << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:27:22: error: no matching function for call to 'max(int&, ll)'
   27 |     for (auto j = max(i, b - k + 1); j < b + 1; j++)
      |                   ~~~^~~~~~~~~~~~~~
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:27:22: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   27 |     for (auto j = max(i, b - k + 1); j < b + 1; j++)
      |                   ~~~^~~~~~~~~~~~~~
/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:4:
/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:27:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   27 |     for (auto j = max(i, b - k + 1); j < b + 1; j++)
      |                   ~~~^~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:3:107: error: extended character 　 is not valid in an identifier
    3 | main(){int a,b,k;cin>>a>>b>>k;if(b-a>=k*2)for(int i=0;i<k;i++)cout<<a+i;for(int i=0;i<k;i++)cout<<b-k+1+i;else　for(int i=0;i<b-a+1;i++)cout<<a+i;}
      |                                                                                                           ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){int a,b,k;cin>>a>>b>>k;if(b-a>=k*2)for(int i=0;i<k;i++)cout<<a+i;for(int i=0;i<k;i++)cout<<b-k+1+i;else　for(int i=0;i<b-a+1;i++)cout<<a+i;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:117: error: expected primary-expression before 'int'
    3 | main(){int a,b,k;cin>>a>>b>>k;if(b-a>=k*2)for(int i=0;i<k;i++)cout<<a+i;for(int i=0;i<k;i++)cout<<b-k+1+i;else　for(int i=0;i<b-a+1;i++)cout<<a+i;}
      |                                                                                                                     ^~~
a.cc:3:125: error: 'i' was not declared in this scope
    3 | main(){int a,b,k;cin>>a>>b>>k;if(b-a>=k*2)for(int i=0;i<k;i++)cout<<a+i;for(int i=0;i<k;i++)cout<<b-k+1+i;else　for(int i=0;i<b-a+1;i++)cout<<a+i;}
      |                                                                                                                             ^
Language: Java

import java.util.Scanner;

public class Main {
	
	public void solve() {
		Scanner input = new Scanner(System.in);
		int a = input.nextInt();
		int b = input.nextInt();
		int k = input.nextInt();
		int[] A = new int[b-a+1];
		int v = a;
		for(int i = 0; i < b - a + 1; i++) {
			A[i] = v;
			v++;
		}
		
		if( k > A.length) {
			for (int i = 0; i < A.length; i++) {
				System.out.println(A[i]);
			}
			return;
		}
		
		if (k <= (b - a)/2) {
			display(0, k, A);
	 		display(A.length - k, A.length, A);			
		} else {
			display(0, k, A);
	 		display(A.length - k + 1, A.length, A);						
		}		
	}
	
	public static void display(int from, int to, int[] A) {
		for (int i = from; i < to; i++) {
			System.out.println(A[i]);
		}
	}
	
	public static void main(String[] args) {
		new SmallAndLargeIntegers().solve();
	}

}


Compiler output:
Main.java:40: error: cannot find symbol
		new SmallAndLargeIntegers().solve();
		    ^
  symbol:   class SmallAndLargeIntegers
  location: class Main
1 error
Language: C

#include <math.h>
#include<stdio.h>
#include<windows.h>
int main()
{
	int A, B, K;
	do
	scanf("%d%d%d", &A, &B, &K);
	while (A<1 | A>pow(10, 9) | B<1 | B>pow(10, 9) | A >= B | K > 100 | K < 1);
	int i, j;
	for (i = A; i < A + K&&i<=B; i++)
		printf("%d\n", i);
	for (j = B; j > i && j > B - K; j--);
	for(;j<=B&&i<B;j++)
		printf("%d\n", j);
	system("pause");
	return 0;
}

Compiler output:
main.c:3:9: fatal error: windows.h: No such file or directory
    3 | #include<windows.h>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
 
int main(void){
 
int a,b,c,i;
 
scanf("%d%d%d",&a,&b,&c);

if(b-a+1 < 2*c){ 
for(i = 0; i < c; i++){
printf("%d\n", a+i);
}
 
for(i = c-1; i >= 0; i--){
printf("%d\n", b-i);
}
}

else{
 for(i = a; i =< b; i++) printf("%d\n",i);
 }
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:20:16: error: expected expression before '<' token
   20 |  for(i = a; i =< b; i++) printf("%d\n",i);
      |                ^
Language: C

#include<stdio.h>
 
int main(void){
 
int a,b,c,i;
 
scanf("%d%d%d",&a,&b,&c);

if(b-a+1 < 2c){ 
for(i = 0; i < c; i++){
printf("%d\n", a+i);
}
 
for(i = c-1; i >= 0; i--){
printf("%d\n", b-i);
}
}

else{
 for(i = a; i =< b; i++) printf("%d\n",i);
 }
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: invalid suffix "c" on integer constant
    9 | if(b-a+1 < 2c){
      |            ^~
main.c:20:16: error: expected expression before '<' token
   20 |  for(i = a; i =< b; i++) printf("%d\n",i);
      |                ^
Language: C

#include<stdio.h>
 
int main(void){
 
int a,b,c,i;
 
scanf("%d%d%d",&a,&b,&c);

if(b-a+1 < 2k){ 
for(i = 0; i < c; i++){
printf("%d\n", a+i);
}
 
for(i = c-1; i >= 0; i--){
printf("%d\n", b-i);
}
}

else{
 for(i = a; i =< b; i++) printf("%d\n",i);
 }
return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: fixed-point types not supported for this target
    9 | if(b-a+1 < 2k){
      |            ^~
main.c:20:16: error: expected expression before '<' token
   20 |  for(i = a; i =< b; i++) printf("%d\n",i);
      |                ^
Language: C

#include<stdin.h>

int main(void){

int a,b,c,i;

scanf("%d%d%d",&a,&b,&c);

for(i = 0; i < c; i++){
printf("%d/n", a+i);
}

for(i = c-1; i >= 0; i--){
printf("%d/n", b-i);
}

return 0;

}

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

include<stdin.h>

int main(void){

int a,b,c,i;

scanf("%d%d%d",&a,&b,&c);

for(i = 0; i < c; i++){
printf("%d/n", a+i);
}

for(i = c-1; i >= 0; i--){
printf("%d/n", b-i);
}

return 0;

}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdin.h>
      |        ^
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 (a < 0 || b < 0 || a > 1000000000 || b > 1000000000 || k < 0 || k > 100) {
			throw new IllegalArgumentException();
		}
		int x = a + k - 1;
		if (x > b) {
			x = b;
		}

		int y = b - k + 1;
		if (y < a) {
			y = a;
		}
		HashSet<Integer> set = new HashSet<Integer>();
		for (int i = a; i <= x; i++) {
			set.add(i);
		}
		for (int i = y; i <= b; i++) {
			set.add(i);
		}
		for (Integer j : set) {
			System.out.println(j);
		}
	}
}
}

Compiler output:
Main.java:32: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <stdio.h>
#include <algorithm>
min(int a, int b){return a < b ? a : b;}
int main(){{
  int a, b, k,num[256],i;
  for (i - 0; i < 256; i++ ) num[i] = -1;
  scanf("%d%d%d",&a,&b,&k);
  for (i = 0; i < min(k, (b - a)/2); i ++) num[i] = a + i;
  for (i = 0; i < min(k, (b - a)/2); i ++) num[i] = b - i;  
  sort(num, num + 256);
  for (i = 0; i < 256; i++) {if(num[i] == -1) break; printf("%d\n",num[i]);}
return 0;
}

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'min' with no type [-fpermissive]
    3 | min(int a, int b){return a < b ? a : b;}
      | ^~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   10 |   sort(num, num + 256);
      |   ^~~~
      |   std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){{
      |           ^
Language: C++

#include<set>  
#include<map>  
#include<cstdio>  
#include<cmath>  
#include<queue>
#include<vector>  
#include<cstring>  
#include<climits>  
#include<iostream>  
#include<algorithm>  
using namespace std; 
#define eps 1
#define MAXN 100000
int read(){  
	int f=1,x=0;  
    char c=getchar();  
    while(c<'0'||'9'<c){if(c=='-')f=-1;c=getchar();}  
    while('0'<=c&&c<='9') x=x*10+c-'0',c=getchar();  
    return f*x;  
}
int main(){
	int a=read(),b=read(),k=read(),tmp=b-k+1;
	if(b-a+1<=k)
	{
		for(int i=a;i<=b;i++)
			printf("%d\n",i);
		continue;
	}
	for(int i=a;i<=a+k-1;i++)
		printf("%d\n",i);
	if(b-k+1<=a+k-1) tmp=a+k;
	for(int i=tmp;i<=b;i++)
		printf("%d\n",i);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:17: error: continue statement not within a loop
   27 |                 continue;
      |                 ^~~~~~~~
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <cstring>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <array>
#include <bitset>
#include <assert.h>
using namespace std;

#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define ALL(c) (c).begin(), (c).end()

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<VI> VVI;
typedef vector<VL> VVL;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;

int in() { int x; scanf("%d", &x); return x; }
ll lin() { ll x; scanf("%lld", &x); return x; }

int main() {
    int a, b;
    cin >> a >> b;
    set<int> st;
    REP(i,k){
        st.insert(a + i);
        st.insert(b - i);
    }
    for (int x : st) cout << x << endl;

    return 0;
}

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

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


Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i,k;main(a,b){scanf("%d%d%d",&a,&b,&k);if(k*2-1>b-a){for(i=a;i<=b;i++)printf("%d ",i);}else{for(i=0;i<k;i++)printf("%d ",a+i);for(int i=k-1;i>=0;i--)printf("%d ",b-i);}puts("");}
      | ^
a.cc:1:9: error: expected constructor, destructor, or type conversion before '(' token
    1 | i,k;main(a,b){scanf("%d%d%d",&a,&b,&k);if(k*2-1>b-a){for(i=a;i<=b;i++)printf("%d ",i);}else{for(i=0;i<k;i++)printf("%d ",a+i);for(int i=k-1;i>=0;i--)printf("%d ",b-i);}puts("");}
      |         ^
Language: C++

#include<iostream>
int main(void){
int a,b,i;
cin>>a>>b>>k;
if(b-a<2*k)
for(i=a;i<=b;i++)
cout<<i;
else{
for(i=0;i<k;i++) cout<<a+i;
for(i=k;i>0;i--) cout<<b-i+1;
}
system ("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>a>>b>>k;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:12: error: 'k' was not declared in this scope
    4 | cin>>a>>b>>k;
      |            ^
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<i;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | for(i=0;i<k;i++) cout<<a+i;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 | for(i=k;i>0;i--) cout<<b-i+1;
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
int main(){
  int A, B, K;
  cin >> A >> B >> K;
  for(int i=A;i<=B;i++)
    if((0<=i-A && i-A<=K-1)||(0<=B-i && B-i<=K-1))cout << i << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> A >> B >> K;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:51: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if((0<=i-A && i-A<=K-1)||(0<=B-i && B-i<=K-1))cout << i << endl;
      |                                                   ^~~~
      |                                                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:64: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if((0<=i-A && i-A<=K-1)||(0<=B-i && B-i<=K-1))cout << i << endl;
      |                                                                ^~~~
      |                                                                std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++>
int A,B,K;std::set<int> S;
int main(){
    std::cin>>A>>B>>K;
    for(int i=0;i<K;i++)if(B-A>=i){S.insert(A+i);S.insert(B-i);}
    for(auto x:S)std::cout<<x<<'\n';
}


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <queue>
#include <limits>
#include <unordered_map>
#include <map>
#define REP(i,n) for(long (i)=0;(i)<(n);(i)++)
#define REPI(i,a,b) for(long (i)=(a);(i)<(b);(i)++)
#define INF numeric_limits<double>::infinity()
constexpr long MOD = 1e9 + 7;
using namespace std;
using P = pair<long, long>;
using VI = vector<long>;
int main(){
int A,B,K;
cin>>A>>B>>K;
if(B-A+1>=2*K){
for (int i=0;i<K;i++){
 cout<<A+i<<endl;}
for (int i=0;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:25:22: error: expected ')' before '{' token
   25 | for (int i=A;i<=B;i++
      |     ~                ^
      |                      )
   26 | {cout<<i<<endl;
      | ~                     
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:16:11: note: to match this '{'
   16 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<algorithm>
int main(void){
    int a, b, k;
    cin >> a >> b >> k;
    for(int i=0; i<k; i++){
        if(a+i<b-k+1)cout << a+i << endl;
    }
    for(int i=1; i<=k; i++){
        cout << b-k+i << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b >> k;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(a+i<b-k+1)cout << a+i << endl;
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if(a+i<b-k+1)cout << a+i << endl;
      |                                     ^~~~
      |                                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << b-k+i << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout << b-k+i << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
  int a, b, k, i;
  scanf("%d%d%d", &a, &b, &k);
  for( i = a, i <= min(b, a+k); i++) printf("%d\n", i);
  if(i == b) return 0;
  for(int j = max(i, b-k), j <= b; j++) printf("%d\n", i);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before ')' token
    7 |   for( i = a, i <= min(b, a+k); i++) printf("%d\n", i);
      |                                    ^
      |                                    ;
a.cc:9:29: error: expected ';' before '<=' token
    9 |   for(int j = max(i, b-k), j <= b; j++) printf("%d\n", i);
      |                             ^~~
      |                             ;
a.cc:9:30: error: expected primary-expression before '<=' token
    9 |   for(int j = max(i, b-k), j <= b; j++) printf("%d\n", i);
      |                              ^~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
int main(void){
     int A,B,K;
    
    scanf("%d%d%d",&A,&B,&K);
    if(K>=B-A+1){
    for(int i = A;i <= B; i++){
     printf("%d\n",i);
    }
    }
    else{
     for(int i=A;i<=A+K;i++){
         printf("%d\n",i);
     }   
     for(int i=B-K;i<=B;i++){
         printf("%d\n",i)
     }
    }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: expected ';' before '}' token
   18 |          printf("%d\n",i)
      |                          ^
      |                          ;
   19 |      }
      |      ~
Language: C++

#include <cstdio>
using namespace std;
int main()
{
    long long a ,b ,k ,i ;
    scanf("%lld %lld %lld",&a,&b,&k) ;
    if (a + k <= b - k + 1){
        for (i = a ; i < a + k ; ++ i)
            printf("%lld\n",i);
        for (i = b - k + 1 ; i <= b ; ++ i)
            printf("%lld\n",i) ;
        return 0 ;
    }
    for (i = a ; i <= b ; ++ i)
        printf("%lld\n",i) ; 100
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before 'return'
   15 |         printf("%lld\n",i) ; 100
      |                                 ^
      |                                 ;
   16 | 
   17 |     return 0;
      |     ~~~~~~
Language: C

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

int main()
{
    int A, B, K, i;
    int output[200];
    for (i = 0; i < 200; ++i)
    {
        output[i] = 0;
    }
    if(scanf("%d", &A) < 0) exit(1);
    if(scanf("%d", &B) < 0) exit(1);
    if(scanf("%d", &K) < 0) exit(1);
    int x, y;
    for (i = 0; i < K; ++i)
    {
        x = A + i;
        y = B - i;
        if (x >= y) {
            output[i] = x;
            break;
        } else if (x+1 = y) {
            output[i] = x;
            output[200 - i - 1] = y;
            break;
        } else {
            output[i] = x;
            output[200 - i - 1] = y;
        }
    }
    for (i = 0; i < 200; ++i)
    {
        if (output[i] != 0)
        {
            printf("%d\n", output[i]);
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:24: error: lvalue required as left operand of assignment
   23 |         } else if (x+1 = y) {
      |                        ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
     int A,B,K;
    
    scanf("%d%d%d",&A,&B,&K);
    if(K>=B-A+1){
    for(int i = A;i <= B; i++){
     printf("%d\n",i);
    }
    }
    else{
     for(i=A;i<=A+K;i++){
         printf("%d\n",i);
     }   
     for(i=B-K;i<=B;i++){
         printf("%d\n",i)
     }
    }
}


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

#include<stdio.h>
int main(void){
  int A,B,K,i;
  scanf("%d %d %d", &A,&B,&K);
  if(((A + (k - 1)) >= (B + (k - 1))){
    for(i = A;i <=B;i++){
      printf("%d\n",i);
    }
  }
  else{
  for(i = A;i <= (A + (K - 1));i++){
     printf("%d\n", i);
  }
   for(i = (B - (K - 1));i <= B;i++){
      printf("%d\n", i);
       }
  }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'k' undeclared (first use in this function)
    5 |   if(((A + (k - 1)) >= (B + (k - 1))){
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:38: error: expected ')' before '{' token
    5 |   if(((A + (k - 1)) >= (B + (k - 1))){
      |     ~                                ^
      |                                      )
main.c:19:1: error: expected expression before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
     int A,B,K;
    
    scanf("%d %d %d",&A,&B,&K);
    if(K>=B-A+1){
    for(int i = A;i <= B; i++){
     printf(i);
    }
    }
    else{
     for(i=A;i<=A+K;i++){
         printf(i);
     }   
     for(i=B-K;i<=B;i++){
         printf(i)
     }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |      printf(i);
      |             ^
      |             |
      |             int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 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/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:13:10: error: 'i' was not declared in this scope
   13 |      for(i=A;i<=A+K;i++){
      |          ^
a.cc:16:10: error: 'i' was not declared in this scope
   16 |      for(i=B-K;i<=B;i++){
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
int a,b,k;
cin >> a >> b >> k;
for(int i=a; a<=i<=a+k; b-k<=i<=b; i++){
cout << i;}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ')' before ';' token
    8 | for(int i=a; a<=i<=a+k; b-k<=i<=b; i++){
      |    ~                             ^
      |                                  )
a.cc:8:36: error: 'i' was not declared in this scope
    8 | for(int i=a; a<=i<=a+k; b-k<=i<=b; i++){
      |                                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int start,end,n,i,j;
	scanf("%d %d %d",&start,&end,&n);
	for(i=start;i<=end;i++)
	{
		for(j=0;j<=n;j++)
			if(i-j==start||i+j==end)
				printf("%d\n",i)
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: expected ';' before '}' token
   11 |                                 printf("%d\n",i)
      |                                                 ^
      |                                                 ;
   12 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;

int main()
{
int a,b,k;
cin >> a >> b >> k;
for(int i=a; a<=i<=a+k; b-k<=i<=b; i++)
cout << i
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ')' before ';' token
    8 | for(int i=a; a<=i<=a+k; b-k<=i<=b; i++)
      |    ~                             ^
      |                                  )
a.cc:8:36: error: 'i' was not declared in this scope
    8 | for(int i=a; a<=i<=a+k; b-k<=i<=b; i++)
      |                                    ^
Language: C++


#include<string>
using namespace std;
#include <stdio.h>
#include <limits.h>
#include "bits/stdc++.h"
int A=0;
int B=0;
int K=0;
int x=0;
string result;
string str;
int main(){
	cin>>A>>B>>K;
	if((B-A)/2>K){
	x=B-K+1;
	for(int i=A;i<A+K;i++){
		std::to_string(i)+ std::string str = "\n";
		result+=str;
		}
	for(int i=x;i<K+1;i++){
		std::to_string(i)+ std::string str = "\n";
		result+=str;
		}
	}
	else{
	for(int i=A;i<B+1;i++){
		std::to_string(i)+ std::string str = "\n";
		result+=str;
		}
	}
	cout << result;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:48: error: expected primary-expression before 'str'
   18 |                 std::to_string(i)+ std::string str = "\n";
      |                                                ^~~
a.cc:22:48: error: expected primary-expression before 'str'
   22 |                 std::to_string(i)+ std::string str = "\n";
      |                                                ^~~
a.cc:28:48: error: expected primary-expression before 'str'
   28 |                 std::to_string(i)+ std::string str = "\n";
      |                                                ^~~
Language: C++


#include<string>
using namespace std;
#include <stdio.h>
#include <limits.h>
#include "bits/stdc++.h"
int A=0;
int B=0;
int K=0;
int x=0;
string result;
string process;
int main(){
	cin>>A>>B>>K;
	if((B-A)/2>K){
	x=B-K+1;
	#被りなし
	for(i=A;i<A+K:i++){
		process="i\n";
		result+=process;
		}
	for(i=x;i<K+1;i++){
		process="i\n";
		result+=process;
		}
	}
	else{
	#被りあり
	for(i=A;i<B+1;i++){
		process="i\n";
		result+=process;
		}
	}
	cout << result;
	return 0;
}


Compiler output:
a.cc:17:10: error: invalid preprocessing directive #\U000088ab\U0000308a\U0000306a\U00003057
   17 |         #被りなし
      |          ^~~~~~~~
a.cc:28:10: error: invalid preprocessing directive #\U000088ab\U0000308a\U00003042\U0000308a
   28 |         #被りあり
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:18:13: error: 'i' was not declared in this scope
   18 |         for(i=A;i<A+K:i++){
      |             ^
a.cc:18:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   18 |         for(i=A;i<A+K:i++){
      |                 ^
a.cc:18:22: error: found ':' in nested-name-specifier, expected '::'
   18 |         for(i=A;i<A+K:i++){
      |                      ^
      |                      ::
a.cc:18:21: error: 'K' is not a class, namespace, or enumeration
   18 |         for(i=A;i<A+K:i++){
      |                     ^
a.cc:22:9: error: expected primary-expression before 'for'
   22 |         for(i=x;i<K+1;i++){
      |         ^~~
a.cc:21:18: error: expected ';' before 'for'
   21 |                 }
      |                  ^
      |                  ;
   22 |         for(i=x;i<K+1;i++){
      |         ~~~       
a.cc:22:9: error: expected primary-expression before 'for'
   22 |         for(i=x;i<K+1;i++){
      |         ^~~
a.cc:21:18: error: expected ')' before 'for'
   21 |                 }
      |                  ^
      |                  )
   22 |         for(i=x;i<K+1;i++){
      |         ~~~       
a.cc:18:12: note: to match this '('
   18 |         for(i=A;i<A+K:i++){
      |            ^
a.cc:29:13: error: 'i' was not declared in this scope
   29 |         for(i=A;i<B+1;i++){
      |             ^
Language: C

#include<stdio.h>
int main(void){
  int A,B,K,i;
  scanf("%d%d%d",&A,&B,&K);
  for(i = A;i <= B;i++){
    if(A + (k - 1) - i >= 0 || B - (k - 1) - i <= 0){
      printf("%d",i);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'k' undeclared (first use in this function)
    6 |     if(A + (k - 1) - i >= 0 || B - (k - 1) - i <= 0){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in