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

#include <iostream>


using namespace std;


int main()
{
        int vmin, vmax;
        int tmp;

        cin >> vmin;
        vmax = vmin;

        cin >> tmp;
        if (tmp > vmax) {
                vmax = tmp;
        } else if (tmp < vmin) {
                vmin = tmp;
        }

        cin >> tmp;
        if (tmp > vmax) {
                vmax = tmp;
        } else if (tmp < vmin) {
                vmin = tmp;
        }

        cout << vmax - vmin << endl;





        return 0;
}

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

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int a[3];
int sol = 1e9;

int main(){

    cin >> a[0] >> a[1] >> a[2];

    for (int i = 0; i < 3; i++)
        for (int j = 0; j < 3; j++)
            for (int k = 0; k < 3; k++){
                if (i == j || i == k || j == k) continue;
                sol = min(sol, abs(a[j]-a[i]) + abs(a[k]-a[j]));
            }

    cout << sol;

}

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

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

int q(constr int *a,const int *b)
{
    return *a-*b;
}

int main(void)
{
    int a[3],i;
    for(i=0;i<2;i++)scanf("%d",&a[i]);
    qsort(a,3,4,q);
    printf("%d",a[2]-a[1]+a[1]-a[0]);
    return 0;
}

Compiler output:
main.c:4:7: error: unknown type name 'constr'; did you mean 'const'?
    4 | int q(constr int *a,const int *b)
      |       ^~~~~~
      |       const
main.c: In function 'main':
main.c:13:17: error: 'q' undeclared (first use in this function)
   13 |     qsort(a,3,4,q);
      |                 ^
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);
		    int A1 = scanner.nextInt();
		    int A2 = scanner.nextInt();
		    int A3 = scanner.nextInt();
		    
		    int max = A1;
		    int min = A1;
		    if(A2 > max) 
		    {
		    	max = A2;
		    }
		    if(A2 < min) 
		    {
		    	min = A2;
		    }
		    if(A3 > max) 
		    {
		    	max = A3;
		    }
		    if(A3 < min) 
		    {
		    	min = A3;
		    }
		    System.out.println(max - min);
		    scanner.close();}
		  }

Compiler output:
Main.java:3: error: cannot find symbol
		    Scanner scanner = new Scanner(System.in);
		    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		    Scanner scanner = new Scanner(System.in);
		                          ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

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

/*qsortの使い方*/
int cmp_int(const void* v1, const void* v2)
{
  const int _v1 = *((const int*)v1);
  const int _v2 = *((const int*)v2);

  if ( _v1 > _v2 ) {
    return 1;
  } else if ( _v1 < _v2 ) {
    return -1;
  } else {
    return 0;
  }
}
/*qsortの使い方*/

int main(void)
{
  int A[3];
  int num1, num2;
  
  scanf("%d %d %d", &A[0], &A[1], A[2]);
  
  qsort(A, 3, sizeof(int), cmp_int);
  num1 = A[2] - A[1];
  num2 = A[1] - A[0]:
  ans = num1 + num2;

  printf("%d", ans);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:29:21: error: expected ';' before ':' token
   29 |   num2 = A[1] - A[0]:
      |                     ^
      |                     ;
main.c:32:16: error: 'ans' undeclared (first use in this function); did you mean 'abs'?
   32 |   printf("%d", ans);
      |                ^~~
      |                abs
main.c:32:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] A = new int[3];
        for(int i=0;i<3;i++){
            A[i] = sc.nextInt();
        }
        Arrays.sort(A);
        int ans = Math.abs(A[1]-A[0])+Math.abs(A[2]-A[1]);
        System.out.println(ans);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <list>
#include <iomanip>
#include <queue>
#include <functional>
#include <cassert>
#include <cmath>
#include <set>

#define REP(i, n) for(int i = 0; i < (n); i++)
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define NL << endl

using namespace std;
using ll = long long;
using ull = unsigned long long;


int main() {

	int a, b, c;

	cin >> a >> b >> c;
	int ab = abs(a - b), bc = abs(b - c), ac = (a - c);

	int ans = ab + bc + ac - max(ab, bc, ac);
	
	cout << ans NL;

	return 0;

}

Compiler output:
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: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:30:30:   required from here
   30 |         int ans = ab + bc + ac - max(ab, bc, ac);
      |                                  ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define ll long long int
#define MOD 1000000007
#define mt make_tuple
#define eb emplace_back
#define error(args...){string _s = #args; replace(_s.begin(),_s.end(),',',' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it,args);}
void err(istream_iterator<string> it){}
template<typename T, typename... Args> void err(istream_iterator<string> it, T a, Args... args){cerr<<*it<<" = "<<a<<endl; err(++it,args...);}



int main()
{
    ll t,i,j,k,l,n,m;
    vector<ll> V;
    cin>>k>>l>>j;
    V.push_back(j);
    V.push_back(k);
    V.push_back(l);
    sort(V.begin(),V.end());
    cout<<min(V[2]-V[0],V[2]+V[1]-2*V[0],);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:42: error: expected primary-expression before ')' token
   24 |     cout<<min(V[2]-V[0],V[2]+V[1]-2*V[0],);
      |                                          ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <limits.h>
#include <cinttypes>
#include <string.h>
#include <bits/stdc++.h>

#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define abs(a) (((a) < 0) ? -(a) : (a))

#define FOR(var, to)          for (register int var = 0; var < to; var++)
#define FROMTO(var, from, to) for (register int var = from; var <= to; var++)

typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;

using namespace std;

static inline int ri() {
	int a;
	scanf("%d", &a);
	return a;
}

static inline s64 rs64() {
	s64 a;
	scanf("%" SCNd64, &a);
	return a;
}

static inline void wi(int a) {
	printf("%d", a);
}

static inline void wu64(u64 a) {
	printf("%" PRIu64, a);
}

int main() {
	int a1 = ri();
	int a2 = ri();
	int a3 = ri();
	int r1 = abs(a2-a1)+abs(a3-a2);
	int r2 = abs(a3-a1)+abs(a2-a3);
	int r3 = abs(a3-a1)+abs(a1-a2);
	
	wi(min(min(r1,r2),r3);
	printf("\n");
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:30: error: expected ')' before ';' token
   56 |         wi(min(min(r1,r2),r3);
      |           ~                  ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();
		int s1=Math.abs(a-b)+Math.abs(b-c);
		int s2=Math.abs(a-c)+Math.abs(b-c);
		int s3=Math.abs(a-b)+Math.abs(a-c);
		System.out.println(Math.min(s1, Math.min(s2,s3)));
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<cstdio>
using namespace std;
int a,b,c,d,e;
int main(){
  scanf("%d%d%d",&a,&b,&c);
  d=max(a,b);d=max(c,d);
  e=min(a,b);e=min(c,e);
  printf("%d",d-e);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'max' was not declared in this scope
    6 |   d=max(a,b);d=max(c,d);
      |     ^~~
a.cc:7:5: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |   e=min(a,b);e=min(c,e);
      |     ^~~
      |     main
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
    cin>>a>>b>>c;
    int d=min({a,b,c});
    int e=max({a-c,b-d,c-d});
    cout<<e<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
    7 |     int d=min({a,b,c});
      |           ~~~^~~~~~~~~
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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
a.cc:8:14: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |     int e=max({a-c,b-d,c-d});
      |           ~~~^~~~~~~~~~~~~~~
/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:   candidate expects 2 arguments, 1 provided
/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, 1 provided
Language: C++

#include<cstdio>
using namespace std;
#define max(x,y) x>y?x:y
#define max(x,y) x<y?x:y
int a,b,c,d,e;
int main(){
  scanf("%d%d%d",&a,&b,&c);
  d=max(a,b);d=max(c,d);
  e=min(a,b);e=min(c,e);
  printf("%d",d-e);
}

Compiler output:
a.cc:4:9: warning: "max" redefined
    4 | #define max(x,y) x<y?x:y
      |         ^~~
a.cc:3:9: note: this is the location of the previous definition
    3 | #define max(x,y) x>y?x:y
      |         ^~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'min' was not declared in this scope; did you mean 'main'?
    9 |   e=min(a,b);e=min(c,e);
      |     ^~~
      |     main
Language: C++

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

int main() {
	long long a, b, c, n, m, x;
	cin >> a >> b >> c;
	if(max(a, max(b, c)) == a){
		cout << abs(b - c) << endl;
	}else if(max(a, max(b, c)) == a)
		cout << abs(a - c) << endl;
	}else{
		cout << abs(a - b) << endl;
	}
	return 0;
}

Compiler output:
a.cc:11:10: error: expected unqualified-id before 'else'
   11 |         }else{
      |          ^~~~
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define intt long long
#define FAST_READ ios_base::sync_with_stdio(0);cin.tie(0);
#define in(n) scanf("%d",&a);
#define out(n) printf("%d\n",a);
#define SIZE 100001
#define INF INT_MAX
#define F first
#define S second

using namespace std;



int main()
{
    FAST_READ;
    cin>>a>>b>>c;
    int ans;
    ans = min(abs(b-a) + abs(c - b) , abs(c- a) + abs(b - c));
    ans = min(ans , abs(a - b) + abs(c - a));
    ans = min(ans , abs(c- b) + abs(a - c));
    ans = min(ans , abs(c- a) + abs(b - a));
    ans = min(ans , abs(c - b) + abs(b - a));
    cout<<ans<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'a' was not declared in this scope
   18 |     cin>>a>>b>>c;
      |          ^
a.cc:18:13: error: 'b' was not declared in this scope
   18 |     cin>>a>>b>>c;
      |             ^
a.cc:18:16: error: 'c' was not declared in this scope
   18 |     cin>>a>>b>>c;
      |                ^
Language: C

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

#define int long long
const double PI = 3.14159265358979323846;
typedef vector<int> vint;
typedef pair<int, int> pint;
int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};

signed main() {
    int A1,A2,A3;
    cin>>A1>>A2>>A3;
    cout<<max(abs(A2-A3),max(abs(A1-A2),abs(A1-A3)));
    return 0;
}

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

#include <iostream>

using namespace std;

int main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a,a+3);
    cout << a[2] - a[0] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(a,a+3);
      |     ^~~~
      |     short
Language: C++

#include<stdio.h>
int a,i,min=10000000,max=-1;
for(i=0;i<3;i++){
scanf("%d",&a);
if(a<min)
min=a;
if(max<a)
max=a;
}
printf("%d\n",max-min);
return 0;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(i=0;i<3;i++){
      | ^~~
a.cc:3:9: error: 'i' does not name a type
    3 | for(i=0;i<3;i++){
      |         ^
a.cc:3:13: error: 'i' does not name a type
    3 | for(i=0;i<3;i++){
      |             ^
a.cc:10:7: error: expected constructor, destructor, or type conversion before '(' token
   10 | printf("%d\n",max-min);
      |       ^
a.cc:11:1: error: expected unqualified-id before 'return'
   11 | return 0;
      | ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

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

	int ans = max({a, b, c}) - min({a, b, c});
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   10 |         int ans = max({a, b, c}) - min({a, b, c});
      |                   ~~~^~~~~~~~~~~
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:   candidate expects 2 arguments, 1 provided
/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, 1 provided
a.cc:10:39: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   10 |         int ans = max({a, b, c}) - min({a, b, c});
      |                                    ~~~^~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int arr[3] ;
    for(int i = 0 ; i < 3 ; ++i)
        cin>>arr[i] ;
    sort(arr , arr + 3) ;
    int ans = 0 ;
    for(int i =1 ; i < n ; ++i)
        ans += arr[i] - arr[i-1] ;
    cout<<ans;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'n' was not declared in this scope
   12 |     for(int i =1 ; i < n ; ++i)
      |                        ^
Language: C++

`#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;



int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int a[5];
    cin>>a[1]>>a[2]>>a[3];
    int ans=(1<<30);
    for(int i=1;i<=3;i++)
        for(int j=1;j<=3;j++)
            for(int k=1;k<=3;k++)
            {
                if(i==j)continue;
                if(i==k)continue;
                if(j==k)continue;
                ans=min(ans,abs(a[i]-a[j])+abs(a[j]-a[k]));
            }
    cout<<ans<<"\n";
    return 0;
}
/**



**/


Compiler output:
a.cc:1:1: error: stray '`' in program
    1 | `#include <bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | `#include <bits/stdc++.h>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | `#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'ios_base' has not been declared
   11 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     cin.tie(0);
      |     ^~~
a.cc:23:29: error: 'abs' was not declared in this scope; did you mean 'ans'?
   23 |                 ans=min(ans,abs(a[i]-a[j])+abs(a[j]-a[k]));
      |                             ^~~
      |                             ans
a.cc:23:21: error: 'min' was not declared in this scope; did you mean 'main'?
   23 |                 ans=min(ans,abs(a[i]-a[j])+abs(a[j]-a[k]));
      |                     ^~~
      |                     main
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout<<ans<<"\n";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int arr[3] ;
    for(int i = 0 ; i < 3 ; ++i)
        cin>>arr[i] ;
    sort(arr , arr + n) ;
    int ans = 0 ;
    for(int i =1 ; i < n ; ++i)
        ans += arr[i] - arr[i-1] ;
    cout<<ans;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'n' was not declared in this scope; did you mean 'yn'?
   10 |     sort(arr , arr + n) ;
      |                      ^
      |                      yn
Language: C++

#include <iostream>
#include <sstream>
#include <algorithm>
#include <functional>
#include <iterator>
#include <numeric>
#include <cstdint>
#include <cmath>
#include <bitset>
#include <string>
#include <list>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>

#define N_TIMES(i, n)     for (ulli i = 0;     i <  n; ++i)
#define N_TIMES_REV(i, n) for (slli i = n - 1; i >= 0; --i)

#ifdef __DEBUG__
template<typename T, typename U>
std::ostream& operator<<(std::ostream &os, const std::pair<T, U> &pair)
{
  os << pair.first << ": " << pair.second;
  return os;
}

template<class ForwardIterator>
std::ostream& _iterator_to_display(
  std::ostream &os, 
  ForwardIterator begin, ForwardIterator end, 
  const std::string &delim = ", "
)
{
  auto itr = begin;
  while (itr != end) {
    os << *itr;
    ++itr;
    if (itr != end) os << delim;
  }
  return os;
}

template<typename T>
std::ostream& operator<<(std::ostream &os, const std::list<T> &list)
{
  _iterator_to_display(os, list.begin(), list.end());
  return os;
}

template<typename T>
std::ostream& operator<<(std::ostream &os, const std::vector<T> &vector)
{
  _iterator_to_display(os, vector.begin(), vector.end());
  return os;
}

template<typename T, class C=std::less<T>>
std::ostream& operator<<(std::ostream &os, const std::set<T> &set)
{
  _iterator_to_display(os, set.begin(), set.end());
  return os;
}

template<typename T, typename U, class C=std::less<T>>
std::ostream& operator<<(std::ostream &os, const std::map<T, U> &map)
{
  _iterator_to_display(os, map.begin(), map.end());
  return os;
}
#endif /* __DEBUG__ */

int main(int argc, char **argv)
{
  std::array<unsigned, 3> A;
  N_TIMES(n, 3) std::cin >> A[n];
  
  std::sort(A.begin(), A.end());
  
  std::cout << (A[2] - A[0]) << std::endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:18:32: error: 'ulli' was not declared in this scope
   18 | #define N_TIMES(i, n)     for (ulli i = 0;     i <  n; ++i)
      |                                ^~~~
a.cc:77:3: note: in expansion of macro 'N_TIMES'
   77 |   N_TIMES(n, 3) std::cin >> A[n];
      |   ^~~~~~~
a.cc:77:11: error: 'n' was not declared in this scope
   77 |   N_TIMES(n, 3) std::cin >> A[n];
      |           ^
a.cc:18:48: note: in definition of macro 'N_TIMES'
   18 | #define N_TIMES(i, n)     for (ulli i = 0;     i <  n; ++i)
      |                                                ^
Language: C++

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

int main() {
    int v(3);
    cin >> v[0] >> v[1] >> v[2];
    sort(v.begin(), v.end());
    int res = 0;
    res = v[1] - v[0] + v[2] - v[1];
    cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |     cin >> v[0] >> v[1] >> v[2];
      |             ^
a.cc:6:21: error: invalid types 'int[int]' for array subscript
    6 |     cin >> v[0] >> v[1] >> v[2];
      |                     ^
a.cc:6:29: error: invalid types 'int[int]' for array subscript
    6 |     cin >> v[0] >> v[1] >> v[2];
      |                             ^
a.cc:7:12: error: request for member 'begin' in 'v', which is of non-class type 'int'
    7 |     sort(v.begin(), v.end());
      |            ^~~~~
a.cc:7:23: error: request for member 'end' in 'v', which is of non-class type 'int'
    7 |     sort(v.begin(), v.end());
      |                       ^~~
a.cc:9:12: error: invalid types 'int[int]' for array subscript
    9 |     res = v[1] - v[0] + v[2] - v[1];
      |            ^
a.cc:9:19: error: invalid types 'int[int]' for array subscript
    9 |     res = v[1] - v[0] + v[2] - v[1];
      |                   ^
a.cc:9:26: error: invalid types 'int[int]' for array subscript
    9 |     res = v[1] - v[0] + v[2] - v[1];
      |                          ^
a.cc:9:33: error: invalid types 'int[int]' for array subscript
    9 |     res = v[1] - v[0] + v[2] - v[1];
      |                                 ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    minimum=min(min(a,b),c);
    cout<<(minimum*3)-a-b-c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'minimum' was not declared in this scope; did you mean 'fminimum'?
    8 |     minimum=min(min(a,b),c);
      |     ^~~~~~~
      |     fminimum
Language: C++

#include<iostream>
using namespace std;
int main(){
int a[3];
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
cout<<a[1]-a[0]+a[2]-a[1];
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 | sort(a,a+3);
      | ^~~~
      | short
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define SORT_INV(c) sort((c).begin(), (c).end(), greater<int>())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG true
#define LL long long
#define Num 1000000007
// sort(a.begin(), a.end(), std::greater<int>());
using namespace std;

int main(){
    vector<int> a(3);
    rep(i,3){
        cin>>a[i];
    }
    sort(a);
    cout<<a[1]-a[0]+(a[2]-a[1])<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: no matching function for call to 'sort(std::vector<int>&)'
   20 |     sort(a);
      |     ~~~~^~~
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++

#include <bits/stdc++.h>
using namespace std;
int main() {
  scanf ("%d%d%d", &a, &b, &c);
	cout<<max(a, max(b, c)) - min(a, min(b, c))<<endl; 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: 'a' was not declared in this scope
    4 |   scanf ("%d%d%d", &a, &b, &c);
      |                     ^
a.cc:4:25: error: 'b' was not declared in this scope
    4 |   scanf ("%d%d%d", &a, &b, &c);
      |                         ^
a.cc:4:29: error: 'c' was not declared in this scope
    4 |   scanf ("%d%d%d", &a, &b, &c);
      |                             ^
Language: C++

using System;
using System.Linq;

namespace ABC103_A
{
    class Program
    {
        static void Main(string[] args)
        {
            var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
            Console.WriteLine(a.Max() - a.Min());
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:13:6: error: expected ';' after class definition
   13 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC103_A::Program::Main(int*)':
a.cc:10:13: error: 'var' was not declared in this scope
   10 |             var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |             ^~~
a.cc:11:13: error: 'Console' was not declared in this scope
   11 |             Console.WriteLine(a.Max() - a.Min());
      |             ^~~~~~~
a.cc:11:31: error: 'a' was not declared in this scope
   11 |             Console.WriteLine(a.Max() - a.Min());
      |                               ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define M 1000000007
long long int power(int a,int b)
{
    if(b==0)
        return 1;
    long long int k=power(a,b/2);
    if(b%2==0)
        return ((k%M)*(k%M))%M;
    else
        return ((k%M)*(k%M)*(a%M))%M;
}
long long int fact(long long int n)
{
    if(n==1 || n==0)
        return 1;
    else
        return ((n%M)*(fact(n-1)%M))%M;

}
int div(int n)
{  int c=0;
    for(int i=1;i<=sqrt(n);i++)
    {
        if(n%i==0)
        {
          if(n/i==i)
            c++;
          else
            c+=2;
        }

    }

    
    return  c;
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
     #ifndef ONLINE_JUDGE
 
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
 
   #endif
   
   string s, str;
   cin>>str;
   cin>>s;
   for(int i=1;i<=s.size();i++)
   {
       str=str[str.size()-1] + str;

       str.erase(str.begin()+str.size()-1);
        int j;
       for(j=0;j<s.size();j++)
       {
        if(str[j]!=s[j])
            break;
       }
       if(j==s.size())
       {
        cout<<"Yes";
        return 0;
       }
   }
   cout<<"No";




 return 0;
}








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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
int main(){
    string s,t;
    cin>>s>>t;
    bool flag=false;
    for(int i=0;i<s.size();i++){
        if(s==t)flag=ture;
        s=s.back()+s.substr(0,s.size()-1);
    }
    if(flag){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'ture' was not declared in this scope
   11 |         if(s==t)flag=ture;
      |                      ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string S; string T;
  cin>>S>>T;
  int K=0;
  int L=S.size();
  for(int i=0; i<L-1; i++){
      S.at(L-1)=S.at(0);
    for(int j=1 j<L; j++){
    S.at(j)=S.at(j-1);
    }
    if(S==T)
      K++;
    else continue;
  }
  if(K==0)
    cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'j'
   10 |     for(int j=1 j<L; j++){
      |                ^~
      |                ;
Language: C++

#include<bits/stdc++.h>
using namespace std:
int main(){
  string S; string T;
  cin>>S>>T;
  int K=0;
  for(int i=0; i<S.size()-1; i++){
      S.at(S.size()-1)=S.at(0);
    for(int j=0; j<S.size()-1; j++){
    S.at(j+1)=S.at(j);
    }
    if(S==T)
      K++;
    else continue;
  }
  if(K==0)
    cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

int main() {
	string S, T;
	cin >> S >> T;
	
	if (S==T)
	{
		cout << "Yes" << endl;
		return 0;
	}
	for (int i = S.size()-1; i >= 1; i--)
	{
		string U;
		for (int j = i; j < S.size(); j++)
		{
			U.push_back(S.at(j));
		}
		for (int k = 0; k < i; k++)
		{
			U.push_back(S.at(k));
		}
		
		bool ok = true;
		rep(m, T.size()) {
			
			if (T.at(m) != U.at(m)) {
				ok = false;
				break;
			}		
		}
		if (ok) {
			cout << "Yes" << endl;
			return 0;
		}
		
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string S, T;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> S >> T;
      |         ^~~
a.cc:3:16: error: 'S' was not declared in this scope
    3 |         cin >> S >> T;
      |                ^
a.cc:3:21: error: 'T' was not declared in this scope
    3 |         cin >> S >> T;
      |                     ^
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:12:23: error: expected ';' before 'U'
   12 |                 string U;
      |                       ^~
      |                       ;
a.cc:15:25: error: 'U' was not declared in this scope
   15 |                         U.push_back(S.at(j));
      |                         ^
a.cc:19:25: error: 'U' was not declared in this scope
   19 |                         U.push_back(S.at(k));
      |                         ^
a.cc:23:21: error: 'm' was not declared in this scope
   23 |                 rep(m, T.size()) {
      |                     ^
a.cc:23:17: error: 'rep' was not declared in this scope
   23 |                 rep(m, T.size()) {
      |                 ^~~
a.cc:31:25: error: 'cout' was not declared in this scope
   31 |                         cout << "Yes" << endl;
      |                         ^~~~
a.cc:31:42: error: 'endl' was not declared in this scope
   31 |                         cout << "Yes" << endl;
      |                                          ^~~~
a.cc:36:9: error: 'cout' was not declared in this scope
   36 |         cout << "No" << endl;
      |         ^~~~
a.cc:36:25: error: 'endl' was not declared in this scope
   36 |         cout << "No" << endl;
      |                         ^~~~
Language: Java

import java.io.BufferedReader; 
import java.io.*;
import java.io.InputStreamReader; 
import java.util.Scanner; 
import java.util.StringTokenizer; 
import java.util.*;
import java.math.*;
public class Main 
{ 
    static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader()
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next()
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine();
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
   public static void main(String args[])
    {
        FastReader sc=new FastReader();
        PrintWriter pw=new PrintWriter(System.out);
        int t=1;//sc.nextInt();
        while(t-->0)
        {
           String s=sc.next(),st=sc.nextInt();int f=0;
           for(int i=s.length();i>=0;i--)
           {
             String str=s.substring(i,s.length())+s.substring(0,i);
             if(str.equals(st)){pw.println("Yes");f=1;break;}
           }
           if(f==0) pw.println("No");
        }
           pw.close();
    }
}
  

Compiler output:
Main.java:73: error: incompatible types: int cannot be converted to String
           String s=sc.next(),st=sc.nextInt();int f=0;
                                           ^
1 error
Language: C++

#include <algorithm>
#include <cmath>
#include <vector>
#include <functional>
#include <cstdlib>
#include <map>
#include <set>
#include <iostream>
#include <string>
#include <ctype.h>
#include <climits>
#include <queue>
using namespace std;
typedef long long ll;
#define REP(i, n) for(ll i = 0; i < (ll)(n); ++i)
template<class T> inline bool chmax(T& a, T b) { if(a < b){ a=b; return 1; } return 0;}
template<class T> inline bool chmin(T& a, T b) { if(a > b){ a=b; return 1; } return 0;}

int main(){
	string s,t;
	cin >> s >> t;
	
	int n = (int)s.size();

	
	
	
	REP(i,n){
		bool flag = true;
		REP(j,n){
			if(s[j] != t[(i+j)%n]) flag = break;
		}
		if(flag){
			cout << "Yes\n";
			return 0;
		}
	}
	
	cout << "No\n";

	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:55: error: expected primary-expression before 'break'
   31 |                         if(s[j] != t[(i+j)%n]) flag = break;
      |                                                       ^~~~~
Language: C++

v#include<bits/stdc++.h>
using namespace std;
#define int long long int 

int32_t main()
{
    string s,t;
    cin>>s>>t;
    t+=t;

    const int p=31;
    const int m=1e9+7;


    int p_pow[t.size()];
    p_pow[0]=1;
    for(int i=1;i<t.size();i++)
    p_pow[i]=(p_pow[i-1]*p)%m;



    int hash_value=0,hash_value1=0;
    for(int i=0;i<s.size();i++)
    {
        hash_value=(hash_value+(s[i]-'a'+1)*p_pow[i])%m;
        hash_value1=(hash_value1+(t[i]-'a'+1)*p_pow[i])%m;
    }

    if(hash_value==hash_value1)
    {
        cout<<"Yes"<<endl;
        return 0;
    }

     for(int i=s.size();i<t.size();i++)
     {
               
        hash_value1=(hash_value1   -(t[i]-'a'+1)*p_pow[i-s.size()]   +(t[i]-'a'+1)*p_pow[i])%m;
        if(((hash_value*p_pow[i-(s.size()-1)])%m)==hash_value1)
        {
            cout<<"Yes"<<endl;
            return 0;
        }

     }
     cout<<"No"<<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:5:1: error: 'int32_t' does not name a type
    5 | int32_t main()
      | ^~~~~~~
a.cc:1:1: note: 'int32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | v#include<bits/stdc++.h>
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void){
  string s,t;
  cin>>s>>t;
  Victory!;
  for(int i=0;i<s.size();i++){
    if(s==t){
      cout<<"Yes"<<endl;
      return 0;
    }
    char c=s[0];
    s=s.substr(1,s.size()-1)+c;
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'Victory' was not declared in this scope
    6 |   Victory!;
      |   ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char> cvec;
typedef vector<double> dvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
#define fs first
#define sc second
int main()	{
  string s,t;
  cin>>s>>t;
  rep(i,n){
    if(s==t) {
      cout<<"Yes"<<endl;
      return 0;
    }
    s=s.back()+s.substr(0,n-1);
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'n' was not declared in this scope
   21 |   rep(i,n){
      |         ^
a.cc:3:38: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                                      ^
Language: C++

#include<stdio.h>
int main()
{
    char s[110],s1[110];
    int i,m,m1,l,t;
    fgets(s);
    fgets(s1);
    m=0,m1=0;
    for(i=0;s[i]!='\0';i++);
    l=i;
    for(i=0;s1[i]!='\0';i++);
    t=i;
    for(i=0;i<l;i++)
        m=m+s[i];
    for(i=0;i<t;i++)
        m1=m1+s1[i];
    if(l==t&&m==m1)
        printf("Yes\n");
    else
        printf("No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: too few arguments to function 'char* fgets(char*, int, FILE*)'
    6 |     fgets(s);
      |     ~~~~~^~~
In file included from a.cc:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
a.cc:7:10: error: too few arguments to function 'char* fgets(char*, int, FILE*)'
    7 |     fgets(s1);
      |     ~~~~~^~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: C++

#include<stdio.h>
int main()
{
    char s[110],s1[110];
    int i,m,m1,l,t;
    gets(s);
    gets(s1);
    m=0,m1=0;
    for(i=0;s[i]!='\0';i++);
    l=i;
    for(i=0;s1[i]!='\0';i++);
    t=i;
    for(i=0;i<l;i++)
        m=m+s[i];
    for(i=0;i<t;i++)
        m1=m1+s1[i];
    if(l==t&&m==m1)
        printf("Yes\n");
    else
        printf("No\n");
}

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

#include<stdio.h> #include<string.h> int main() { 	char a[105],b[105], tmp, tmp2,tmp3; 	scanf(" %s",a); 	scanf(" %s",b); 	int j, i,l; 	l=strlen(a); 	for(j=0;j<l;j++){ 		if(0==strcmp(a,b)){ printf("Yes\n"); return 0; } 	tmp=a[l-1]; 	tmp2=a[0]; 	tmp3=a[1]; 	for(i=1;i<l;i++) { a[i]=tmp2; tmp2=tmp3; 	tmp3=a[i+1]; } 	a[0]=tmp; 	 	 } printf("No\n"); }


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> #include<string.h> int main() {       char a[105],b[105], tmp, tmp2,tmp3;     scanf(" %s",a);         scanf(" %s",b);         int j, i,l;     l=strlen(a);    for(j=0;j<l;j++){               if(0==strcmp(a,b)){ printf("Yes\n"); return 0; }        tmp=a[l-1];     tmp2=a[0];      tmp3=a[1];      for(i=1;i<l;i++) { a[i]=tmp2; tmp2=tmp3;        tmp3=a[i+1]; }  a[0]=tmp;                } printf("No\n"); }
      |                   ^
/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<stdio.h> #include<string.h> int main() { 	char a[105],d[105], tmp, tmp2,tmp3; 	scanf(" %s",a); 	scanf(" %s",d); 	int j, i,l; 	l=strlen(a); 	for(j=0;j<l;j++){ 		if(0==strcmp(a,d)){ printf("Yes\n"); return 0; } 	tmp=a[l-1]; 	tmp2=a[0]; 	tmp3=a[1]; 	for(i=1;i<l;i++) { a[i]=tmp2; tmp2=tmp3; 	tmp3=a[i+1]; } 	a[0]=tmp; 	 	 } printf("No\n"); }


Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<stdio.h> #include<string.h> int main() {       char a[105],d[105], tmp, tmp2,tmp3;     scanf(" %s",a);         scanf(" %s",d);         int j, i,l;     l=strlen(a);    for(j=0;j<l;j++){               if(0==strcmp(a,d)){ printf("Yes\n"); return 0; }        tmp=a[l-1];     tmp2=a[0];      tmp3=a[1];      for(i=1;i<l;i++) { a[i]=tmp2; tmp2=tmp3;        tmp3=a[i+1]; }  a[0]=tmp;                } printf("No\n"); }
      |                   ^
/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<stdio.h>
#include<string.h>
int main()
{
  char S[100],T[100],c=0;
  gets(S);
  T[100]= strrev(S);
  if(T==S)
   {
       c++;
  printf("Yes");
   }
  else
    printf("no");
  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |   gets(S);
      |   ^~~~
      |   fgets
main.c:7:11: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
    7 |   T[100]= strrev(S);
      |           ^~~~~~
      |           strsep
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
       Scanner sc = new Scanner(System.in);
	  String S = sc.next();
      String T = sc.next();
      for(int i=0;i<S.length;i++){
      	if(S.equals(T)){
        	System.out.println("Yes");
            return;
      	}
        S = S.substring(S.length-1)+S.substring(0,S.length-2);
      }
      System.out.println("No");
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      for(int i=0;i<S.length;i++){
                     ^
  symbol:   variable length
  location: variable S of type String
Main.java:12: error: cannot find symbol
        S = S.substring(S.length-1)+S.substring(0,S.length-2);
                         ^
  symbol:   variable length
  location: variable S of type String
Main.java:12: error: cannot find symbol
        S = S.substring(S.length-1)+S.substring(0,S.length-2);
                                                   ^
  symbol:   variable length
  location: variable S of type String
3 errors
Language: C++

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


int main()
{
    int A,B;
    cin >> A >> B;
    sort(A.begin(),A.end());
    sort(B.begin(),B.end());
    if(A==B)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: request for member 'begin' in 'A', which is of non-class type 'int'
    9 |     sort(A.begin(),A.end());
      |            ^~~~~
a.cc:9:22: error: request for member 'end' in 'A', which is of non-class type 'int'
    9 |     sort(A.begin(),A.end());
      |                      ^~~
a.cc:10:12: error: request for member 'begin' in 'B', which is of non-class type 'int'
   10 |     sort(B.begin(),B.end());
      |            ^~~~~
a.cc:10:22: error: request for member 'end' in 'B', which is of non-class type 'int'
   10 |     sort(B.begin(),B.end());
      |                      ^~~
Language: C++

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

int main() {
   string S, T;
   cin >> S >> T;
   string S2 = S + S;
   int count = 0;
     rep(j,S2.size()){
       if(T.at(0) == S2.at(j)){
         rep(k,T.size()) {if( T.at(0+k) == S2.at(j+k) ) count++;
                          else break;}
       }else{ count = 0; }
     }
     if( count == T.size() ) break;
   if( count == T.size() ) cout << "Yes" << endl;
   else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:30: error: break statement not within loop or switch
   17 |      if( count == T.size() ) break;
      |                              ^~~~~