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

s,t=input().split();
print(t+s)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s,t=input().split();
      | ^
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | print(t+s)
      |      ^
Language: C++

#include<iostram>
#include<bits/stdc++.h>
using namespce std;
int main()
{string s1,s2;
 cin>>s1>>s2;
 s1=s1+s2;
 cout<<s1;
}

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

#include<iostream>
#include<bits/c++.h>
using namespce std;
int main()
{string s1,s2;
 cin>>s1>>s2;
 s1=s1+s2;
 cout<<s1;
}

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

#include<iostram>
#include<bits/c++.h>
using namespce std;
int main()
{string s1,s2;
 cin>>s1>>s2;
 s1=s1+s2;
 cout<<s1;
}

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

import java.util.Scanner;
public class Main{
 
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String s = sc.nextString();
   	    String t = sc.nextString();
      
      System.out.println(t+s);
      
 
      
      
 
 
 
		
		
	}
 
}

Compiler output:
Main.java:8: error: cannot find symbol
		String s = sc.nextString();
		             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:9: error: cannot find symbol
   	    String t = sc.nextString();
   	                 ^
  symbol:   method nextString()
  location: variable sc of type Scanner
2 errors
Language: C++

#include <iostream>
#include <string>

int main() {
	string s,t;
	std::cin >> s >> t;
	return t + s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string s,t;
      |         ^~~~~~
a.cc:5:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:21: error: 's' was not declared in this scope
    6 |         std::cin >> s >> t;
      |                     ^
a.cc:6:26: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |         std::cin >> s >> t;
      |                          ^
      |                          tm
Language: C++

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

int main() {
	// your code goes here
  	string s, t;
  	cin >> s >> t;
  	cout << t + s
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'return'
    8 |         cout << t + s
      |                      ^
      |                      ;
    9 |         return 0;
      |         ~~~~~~
Language: C++

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

int main()
{
    string S, t;
    cin >> S >> T;
    cout << T << S << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'T' was not declared in this scope
    7 |     cin >> S >> T;
      |                 ^
Language: Java

public class main{
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String t = sc.next();

        System.out.println(t + s);
    }
}


Compiler output:
Main.java:1: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class main
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class main
3 errors
Language: Java

public class main{
    public static void public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String t = sc.next();

        System.out.println(t + s);
    }
}


Compiler output:
Main.java:2: error: <identifier> expected
    public static void public static void main(String[] args) {
                      ^
Main.java:2: error: '(' expected
    public static void public static void main(String[] args) {
                       ^
2 errors
Language: Java

import java.util.Scanner;

public class Sample {

  public static void main(String[] args) {

    Scanner scanner = new Scanner(System.in);
    Scanner scanner2 = new Scanner(System.in);


    String input_text = scanner.nextLine();
    String input_text2 = scanner2.nextLine();

    System.out.println(input_text.concat(input_text2));

    scanner.close();

  }

}

Compiler output:
Main.java:3: error: class Sample is public, should be declared in a file named Sample.java
public class Sample {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Test {
  public static void main(String args[]) {
    
    Scanner scanner = new Scanner(System.in);
    Scanner scanner2 = new Scanner(System.in);
    
    System.out.println(scanner + scanner2);
  }
}

Compiler output:
Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
Main.java:9: error: bad operand types for binary operator '+'
    System.out.println(scanner + scanner2);
                               ^
  first type:  Scanner
  second type: Scanner
2 errors
Language: C++

#include <cmath>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <functional>
#include <queue>
#include <iostream>
#include <string.h>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <cstdint>
#include <climits>
#include <unordered_set>
#include <unordered_map>
#include <sstream>
#include <stack>

using namespace std;

typedef long long int ll;
typedef pair<int,int> pii;
typedef tuple<ll,ll,ll> t3;

int main(void) {
    string s,t
    cin >> s >> t;
    cout << t << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: expected initializer before 'cin'
   28 |     cin >> s >> t;
      |     ^~~
a.cc:29:13: error: 't' was not declared in this scope
   29 |     cout << t << s << endl;
      |             ^
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include "bits/stdc++.h"
#include <unordered_map>
#include <intrin.h>

#define fore(i,a,b) for(int i = a; i < (b); i++)
#define fr(i,a,b) for(int i = a - 1; i >= b; i--)
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define N 300005
#define inf 2000000000
#define MOD (ll)1e15
#define __builtin_popcount(x) __popcnt(x)

using namespace std;

typedef long long ll;
typedef pair<int, int> pr;
typedef pair<pair<int, int>, int> tup;

inline void solve()
{
	string s, t;
	cin >> s >> t;
	cout << t << s;
}

int main()
{
	fast;
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	solve();
}

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

    #include <iostream>
     #incldue <algorithm>

    int main(){
    long long a , b , k;
    std :: cin >> a >> b >> k;
     
    if(a > k)
    std :: cout << a - k << ' ' << b << '\n';
    else std :: cout << 0 << ' ' << std :: max(b - k + a , 0)<< '\n';
    }

Compiler output:
a.cc:2:7: error: invalid preprocessing directive #incldue; did you mean #include?
    2 |      #incldue <algorithm>
      |       ^~~~~~~
      |       include
a.cc: In function 'int main()':
a.cc:10:47: error: no matching function for call to 'max(long long int, int)'
   10 |     else std :: cout << 0 << ' ' << std :: max(b - k + a , 0)<< '\n';
      |                                     ~~~~~~~~~~^~~~~~~~~~~~~~~
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:10:47: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   10 |     else std :: cout << 0 << ' ' << std :: max(b - k + a , 0)<< '\n';
      |                                     ~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: Java

#include <iostream>
using namespace std;

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

 if(k <= a){
 cout << a - k << '␣' << b <<endl;
 }else if(k <= a+b){
 cout << 0 << '␣' << b - (k-a) <<endl;
 }else{
 cout << 0 << '␣' << 0 <<endl;
 }
 }

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:5: error: not a statement
 long long a, b, k;
 ^
Main.java:6: error: not a statement
 cin >> a >> b >> k;
               ^
Main.java:9: error: not a statement
 cout << a - k << '?' << b <<endl;
                           ^
Main.java:11: error: not a statement
 cout << 0 << '?' << b - (k-a) <<endl;
                               ^
Main.java:13: error: not a statement
 cout << 0 << '?' << 0 <<endl;
                       ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
 int main(){
 ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: ';' expected
 long long a, b, k;
     ^
9 errors
Language: C++

#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;

int main()
{
    char S[100];
    char T[100];

    gets(S);
    gets(T);

    cout<<strcat(T,S)<<endl;


}


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

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

int main()
{
    char S[100];
    char T[100];

    gets(S);
    gets(T);

    cout<<strcat(T,S)<<endl;


}


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

#include<iostream>
int main(){
  std::string s,t;
  std::cin>>s>>t;
  std::cout<<t<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   std::cout<<t<<s<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
  string s,t;
  std::cin>>s>>t;
  std::cout<<t<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s,t;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:13: error: 's' was not declared in this scope
    4 |   std::cin>>s>>t;
      |             ^
a.cc:4:16: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |   std::cin>>s>>t;
      |                ^
      |                tm
a.cc:5:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   std::cout<<t<<s<<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 <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <stdio.h>
#include <complex>
#include <iomanip>
#include <queue>
#include <bitset>
#include <numeric>
using namespace std;

int main() {
  lint taka, aoki, loop = 0;
  cin >> taka >> aoki >> loop;
  
  for(int i = loop; i > 0; i--){
    if(taka > 0){
      taka--;
    }else if(aoki > 0){
      aoki--; 
    }
  }
   
  cout << taka << " " << aoki << endl;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'lint' was not declared in this scope; did you mean 'uint'?
   16 |   lint taka, aoki, loop = 0;
      |   ^~~~
      |   uint
a.cc:17:10: error: 'taka' was not declared in this scope
   17 |   cin >> taka >> aoki >> loop;
      |          ^~~~
a.cc:17:18: error: 'aoki' was not declared in this scope
   17 |   cin >> taka >> aoki >> loop;
      |                  ^~~~
a.cc:17:26: error: 'loop' was not declared in this scope
   17 |   cin >> taka >> aoki >> loop;
      |                          ^~~~
Language: C++

#include <iostream>

int main() {
    string a;
  	string b;
  	std::cin << a;
  	std::cin << b;
    std::cout << b + a << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string a;
      |     ^~~~~~
a.cc:4:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:15: error: expected ';' before 'b'
    5 |         string b;
      |               ^~
      |               ;
a.cc:6:21: error: 'a' was not declared in this scope
    6 |         std::cin << a;
      |                     ^
a.cc:7:21: error: 'b' was not declared in this scope
    7 |         std::cin << b;
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin >> str1;
  cin >> str2;
  
  cout << str2 << str1 << endl;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'str1' was not declared in this scope
    5 |   cin >> str1;
      |          ^~~~
a.cc:6:10: error: 'str2' was not declared in this scope
    6 |   cin >> str2;
      |          ^~~~
Language: C++

#include<bits/stdc++.h>
#define int long long 
#defing IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)

using namespace std ;

int32_t main(){IOS;

	string s , t ; cin >> s >> t ;
	t += s; 
	cout << t << endl; 
	return 0;

}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #defing; did you mean #define?
    3 | #defing IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
      |  ^~~~~~
      |  define
a.cc: In function 'int32_t main()':
a.cc:7:16: error: 'IOS' was not declared in this scope
    7 | int32_t main(){IOS;
      |                ^~~
Language: C++

#include<bits/stdc++.h>
#define int long long 
#defing IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)

using namespace std ;

int32_t main(){IOS;

	string s , t ; cin >> s >> t ; 
	cout << t+s << endl; 
	return 0;

}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #defing; did you mean #define?
    3 | #defing IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
      |  ^~~~~~
      |  define
a.cc: In function 'int32_t main()':
a.cc:7:16: error: 'IOS' was not declared in this scope
    7 | int32_t main(){IOS;
      |                ^~~
Language: C

s, t = input().split()
print(s + t)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | s, t = input().split()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
    1 | s, t = input().split()
      |    ^
main.c:1:8: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | s, t = input().split()
      |        ^~~~~
main.c:1:15: error: request for member 'split' in something not a structure or union
    1 | s, t = input().split()
      |               ^
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print(s + t)
      | ^~~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String [] args){
    	Scanner scan = new Scanner(System.in);
      	int x = scan.nextInt();
 		int [] arr = new int[(int)1e5+10];
      	int size = arr.length();
      arr[1]=1;
      arr[2]=1;
      arr[3]=1;
      	for(int i=4;i<size;i++){
          boolean isPrime=true;
        	for(int j=2;j<=Math.sqrt(i);j++){
            	if(i%j==0){
                  isPrime=false;
                  break;
                }
            }
          if(isPrime){
          arr[i]=1;
          }
        }
      	for(int i = x;i<size;i++){
        	if(arr[i]==1){
            System.out.println(i);
              break;
            }
        }
      	
    }
}


Compiler output:
Main.java:7: error: cannot find symbol
      	int size = arr.length();
      	              ^
  symbol:   method length()
  location: variable arr of type int[]
1 error
Language: Java

import java.util.*;
public class Main{
	public static void main(String [] args){
    	Scanner scan = new Scanner(System.in);
      	int x = scan.nextInt();
 		int [] arr = new int[1e5+10];
      	int size = arr.length();
      arr[1]=1;
      arr[2]=1;
      arr[3]=1;
      	for(int i=4;i<size;i++){
          boolean isPrime=true;
        	for(int j=2;j<=Math.sqrt(i);j++){
            	if(i%j==0){
                  isPrime=false;
                  break;
                }
            }
          if(isPrime){
          arr[i]=1;
          }
        }
      	for(int i = x;i<size;i++){
        	if(arr[i]==1){
            System.out.println(i);
              break;
            }
        }
      	
    }
}


Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from double to int
 		int [] arr = new int[1e5+10];
 		                        ^
Main.java:7: error: cannot find symbol
      	int size = arr.length();
      	              ^
  symbol:   method length()
  location: variable arr of type int[]
2 errors
Language: C++

include<iostream>
using namespace std;
int main(){
    string S,T;
    cin>>S>>T;
    cout<<T<<S;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string S,T;
      |     ^~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin>>S>>T;
      |     ^~~
a.cc:5:10: error: 'S' was not declared in this scope
    5 |     cin>>S>>T;
      |          ^
a.cc:5:13: error: 'T' was not declared in this scope
    5 |     cin>>S>>T;
      |             ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<T<<S;
      |     ^~~~
Language: C++

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

int main()
{string a,b,c;
 c="";
 cin>>a>>b;
 c+=b+a
  cout<<c;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'cout'
    8 |  c+=b+a
      |        ^
      |        ;
    9 |   cout<<c;
      |   ~~~~
Language: C++

#include<string>
using namespace std;
int main(){
  stirng s,t;
  cin>>s>>t;
  cout<<t<<s<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'stirng' was not declared in this scope
    4 |   stirng s,t;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>s>>t;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s>>t;
      |        ^
a.cc:5:11: error: 't' was not declared in this scope; did you mean 'tm'?
    5 |   cin>>s>>t;
      |           ^
      |           tm
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<t<<s<<endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:15: error: 'endl' was not declared in this scope
    6 |   cout<<t<<s<<endl;
      |               ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C

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

int main(void){

    int n,k,r,s,p;
    int i=0;
    int cr=0, cs=0, cp=0;

    scanf("%d %d", &n, &k);
    
    char t[n+1], at[n+1];
    scanf("%d %d %d", &r, &s, &p);
    scanf("%s", &t);

    for(i = k; i<n; i++){
        if (t[i] == t[i-k]){
            t[i] = 'a';   
    }

    i=0;

    while(t[i] != '\0'){

        if(t[i]=='r'){
            cp++;
            at[i]='r';
        }else if(t[i]=='s'){
            cr++;
            at[i]='s';
        }else if(t[i]=='p'){
            cs++;
            at[i]='p';
        }
        i++;
    }

    printf("%d", (r*cr+s*cs+p*cp) );
}

Compiler output:
main.c: In function 'main':
main.c:39:1: error: expected declaration or statement at end of input
   39 | }
      | ^
Language: C++

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

string s,t;

int mian()
{
	cin>>s>>t;
  	cout<<t<<s<<endl;
  	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(
  string S, T;
  cin >> S >> T;
  
  cout << S << T << endl;
)


Compiler output:
a.cc:4:13: error: 'T' has not been declared
    4 |   string S, T;
      |             ^
a.cc:4:14: error: expected ')' before ';' token
    4 |   string S, T;
      |              ^
      |              )
a.cc:3:9: note: to match this '('
    3 | int main(
      |         ^
a.cc:3:5: warning: first argument of 'int main(std::string, int)' should be 'int' [-Wmain]
    3 | int main(
      |     ^~~~
a.cc:3:5: warning: second argument of 'int main(std::string, int)' should be 'char **' [-Wmain]
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> S >> T;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << S << T << endl;
      |   ^~~~
a.cc:8:1: error: expected unqualified-id before ')' token
    8 | )
      | ^
Language: C++

#include <iostream>
#include <string>

int main(){
    std::string S, T;
    std::cin >> S;
    if(S.size()<1 || S.size()>100){
        std::cout << "error";
    }
    for(int i=0; i<S.size(); i++){
        if(S[i]>='0' && S[i]<='9'){
            std::cout << "error";
        }
    }
    std::cin >> T;
    if(T.size()<1 || T.size()>100){
        std::cout << "error";
    }
    for(int i=0; i<T.size(); i++){
        if(T[i]>='0' && [Ti]<='9'){
            std::cout << "error";
        }
    }

    std::string U = S+T;
    std::cout << U;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: 'Ti' was not declared in this scope; did you mean 'i'?
   20 |         if(T[i]>='0' && [Ti]<='9'){
      |                          ^~
      |                          i
a.cc: In lambda function:
a.cc:20:29: error: expected '{' before '<=' token
   20 |         if(T[i]>='0' && [Ti]<='9'){
      |                             ^~
a.cc: In function 'int main()':
a.cc:20:29: error: no match for 'operator<=' (operand types are 'main()::<lambda()>' and 'char')
   20 |         if(T[i]>='0' && [Ti]<='9'){
      |                         ~~~~^~~~~
      |                         |     |
      |                         |     char
      |                         main()::<lambda()>
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main{
  string S, T;
  cin >> S >> T;
  
  cout << S << T << endl;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:10: error: expected primary-expression before 'S'
    4 |   string S, T;
      |          ^
a.cc:4:10: error: expected '}' before 'S'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> S >> T;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << S << T << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>
#include <string>

void main(){
    std::string S, T;
    std::cin >> S;
    if(S.size()<1 || S.size()>100){
        std::cout << "error";
    }
    for(int i=0; i<S.size(), i++){
        if(S[i]>='0' && S[i]<='9'){
            std::cout << "error";
        }
    }
    std::cin >> T;
    if(S.size()<1 || S.size()>100){
        std::cout << "error";
    }
    for(int i=0; i<S.size(), i++){
        if(S[i]>='0' && S[i]<='9'){
            std::cout << "error";
        }
    }

    std::string U = S+T;
    std::cout << U;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:33: error: expected ';' before ')' token
   10 |     for(int i=0; i<S.size(), i++){
      |                                 ^
      |                                 ;
a.cc:19:33: error: expected ';' before ')' token
   19 |     for(int i=0; i<S.size(), i++){
      |                                 ^
      |                                 ;
Language: Java

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

int main()
{
  string s, t;
  cin >> s >> t;
  cout << t << s;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:7: error: not a statement
  cin >> s >> t;
           ^
Main.java:8: error: not a statement
  cout << t << s;
            ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PGC
{
	class Program
	{
		static void Main(string[] args)
		{
			var header = Console.ReadLine().Split();

			var S = header[0];
			var T = header[1];

			System.Console.WriteLine($"{T}{S}");
		}
	}
}


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.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:34: error: 'string' has not been declared
   10 |                 static void Main(string[] args)
      |                                  ^~~~~~
a.cc:10:43: error: expected ',' or '...' before 'args'
   10 |                 static void Main(string[] args)
      |                                           ^~~~
a.cc:19:10: error: expected ';' after class definition
   19 |         }
      |          ^
      |          ;
a.cc: In static member function 'static void PGC::Program::Main(int*)':
a.cc:12:25: error: 'var' was not declared in this scope
   12 |                         var header = Console.ReadLine().Split();
      |                         ^~~
a.cc:14:29: error: expected ';' before 'S'
   14 |                         var S = header[0];
      |                             ^
a.cc:15:29: error: expected ';' before 'T'
   15 |                         var T = header[1];
      |                             ^
a.cc:17:25: error: 'System' was not declared in this scope
   17 |                         System.Console.WriteLine($"{T}{S}");
      |                         ^~~~~~
a.cc:17:50: error: '$' was not declared in this scope
   17 |                         System.Console.WriteLine($"{T}{S}");
      |                                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
long long a,b,k;
cin >> a >> b >> k;
if(k>=a+b){cout << 0 << " " << 0 << endl;}
else if (k<a){cout << a-k << " " << b << endl;}
else (k>a){cout << 0 << " " << a+b-k << endl;} 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '{' token
    8 | else (k>a){cout << 0 << " " << a+b-k << endl;}
      |           ^
      |           ;
Language: C++

#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define int long long
#define mkp make_pair
#define pb push_back
#define ff first
#define ss second
#define debug1(a) cout<<a<<endl;
#define debug2(a,b) cout<<a<<' '<<b<<endl;
#define debug3(a,b,c) cout<<a<' '<<b<<' '<<c<<endl;
#define rep(i,n) for(int i=0;i<n;i++)
#define repre(i,a,b)for(int i=a;i<=b;i++)
#define clr1(arr) memset(arr,-1,sizeof(arr));
#define clr0(arr) memset(arr,0,sizeof(arr));
#define pi pair<int,int>
#define pii pair<int,pi>
#define aint(v) v.begin(),v.end()
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace __gnu_pbds;
using namespace std;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> orderedSet;
typedef tree<int,null_type,less_equal<int>,rb_tree_tag,tree_order_statistics_node_update> orderedMSet;
struct custom_hash {
static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};
#define ump gp_hash_table<int,int,custom_hash>
//*p.find_by_order(index) return value at index
//p.order_of_key(key) return index
/*int **dp,in main function,int row,col;dp=new int*[n];rep(i,n)dp[i]=new int[m]*/
//**** Maths Section*******/
int power(int x,int y);
bool isPrime(int n);
int modInv(int a,int b);
int gcdExtended(int a,int b,int *x,int* y);
int mpower(int a,int b,int p);
/***************************/
int32_t main()
{
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
  fastio
  string a,b;
  cin>>a;
  cin>>b
  cout<<b<<a<<endl;
  return 0;
}

int modInv(int a, int m)
{
int x, y;
int g = gcdExtended(a, m, &x, &y);
int res = (x%m + m) % m;
return res;
}

int gcdExtended(int a, int b, int *x, int *y)
{
if (a == 0){
    *x = 0, *y = 1;
    return b;
  }
  int x1, y1;
  int gcd = gcdExtended(b%a, a, &x1, &y1);
  *x = y1 - (b/a) * x1;
  *y = x1;
  return gcd;
}

int mpower(int x, int y, int p)
{
int res = 1;
x = x % p;
while(y > 0){
    if(y & 1) res = (res*x) % p;
      y = y>>1;
      x = (x*x) % p;
    }
    return res;
}
int power(int x, int y)
{
int res = 1;
while (y > 0){
    if (y & 1) res = res*x;
      y = y>>1;
      x = x*x;
    }
    return res;
}

bool isPrime(int n)
{
if (n <= 1)  return false;
  if (n <= 3)  return true;
    if (n%2 == 0 || n%3 == 0) return false;
      int p=sqrt(n);
      for(int i=5;i<=p;i=i+6)
        if (n%i == 0 || n%(i+2) == 0)
          return false;
      return true;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:56:9: error: expected ';' before 'cout'
   56 |   cin>>b
      |         ^
      |         ;
   57 |   cout<<b<<a<<endl;
      |   ~~~~
Language: C++

#include <iostream>
int main() {
  string a, b;
  std::cin >> a >> b;
  std::cout >> b >> a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string a, b;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included 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:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:15: error: 'a' was not declared in this scope
    4 |   std::cin >> a >> b;
      |               ^
a.cc:4:20: error: 'b' was not declared in this scope
    4 |   std::cin >> a >> b;
      |                    ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] scan_str = scan.nextLine().split(" ");
        Long n1 = Long.parseLong(scan_str[0]);
        Long n2 = Long.parseLong(scan_str[1]);
        Long n3 = n1 + n2;
        for(long i = 0, n = Long.parseLong(scan_str[2]) ; i < n; i++){
            n1 = n1 - Long.parseLong("1");
            n3 = n3 - Long.parseLong("1");
        }
        if(n1 < 0){
            System.out.println("0" + " " + String.valueOf(n3));
        }else{
            System.out.println(String.valueOf(n1) + " " + String.valueOf(n3 - n1));
        }


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

#include <bits/stdc++.h>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <functional>

using namespace std;
// int N が既に与えられているとする.

int main()
{
    int N, M;
    int i = 0;
    int j = 0;
    int score = 0;
    cin >> N >> M;
    vector<int> vec(N);
    for (int i = 0; i < N; i++)
    {
        cin >> vec.at(i);
    }
    std::sort(vec.begin(), vec.end(), std::greater<int>());

    while (i < M)
    {
        while (j < N && i < M)
        {
            if (j == 0)
            {
                score += vec.at(j) * 2;
                i++;
            }
            else
            {
                if (i + 1 < M)
                {
                    score += (vec.at(j) + vec.at(0) * 2);
                    i += 2;
                }
                else
                {
                    score += vec.at(j) + vec.at(0);
                    i += 1;
                }
                j++;
            }
            vec.erase(vec.begin());
            N--;
        }
    }

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

#include <bits/stdc++.h>
int main(){string s,t;std::cin>>s>>t;std::cout<<t+s;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:12: error: 'string' was not declared in this scope
    2 | int main(){string s,t;std::cin>>s>>t;std::cout<<t+s;}
      |            ^~~~~~
a.cc:2:12: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:2:33: error: 's' was not declared in this scope
    2 | int main(){string s,t;std::cin>>s>>t;std::cout<<t+s;}
      |                                 ^
a.cc:2:36: error: 't' was not declared in this scope; did you mean 'tm'?
    2 | int main(){string s,t;std::cin>>s>>t;std::cout<<t+s;}
      |                                    ^
      |                                    tm
Language: C++

#include <iostream>
#include "cstdio"
#include "cstring"
using namespace std;
char a[105], b[105];
int main(int argc, char *argv[]) 
{
	//scanf("%s", a+1);
	gets(a+1);
	int i = 1, s = 1;
	while(a[i] != '\0')
	{
		if(a[i] == ' ')
		{
			i++;
			while(a[i] != '\0')
			{
				b[s] = a[i];
				i++;s++;
			}
			break;
		}
		i++;
	}
	i = 1;
	while(a[i] != ' ')
	{
		b[s] = a[i];
		s++;i++;
	}
	printf("%s\n", b+1);
	return 0;
}

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

#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <string.h>

using namespace std;

string s,t;

int main(){
    cin >> s >> t;
    string s += t;
    cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected initializer before '+=' token
   13 |     string s += t;
      |              ^~
Language: C

#include <stdio.h>
int main(){
  char s[100],t[100];
  scanf("%s %s",&s,&t);
  printf("%c%c",t,s)
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected ';' before 'return'
    5 |   printf("%c%c",t,s)
      |                     ^
      |                     ;
    6 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
using namespace std;
char*strcat()char*S,char*T)
{
  char*p=S;
  while(*p!='\0')
  {
    p++;
  }
  while(*T!='\0')
  {*p++=*T++;}
  *p='\0';
  return S;  
}
void main()
{
  char str1[100]="oder";
  char str2[]="act";
  strcat(str2,str1);
  cout<<str2<<endl;
}

Compiler output:
a.cc:3:14: error: expected initializer before 'char'
    3 | char*strcat()char*S,char*T)
      |              ^~~~
a.cc:15:1: error: '::main' must return 'int'
   15 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:19:3: error: 'strcat' was not declared in this scope
   19 |   strcat(str2,str1);
      |   ^~~~~~
a.cc:2:1: note: 'strcat' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

#include <stdio.h>
int main(){
  char s[100],t[100];
  scanf("%s %s",&s,&t);
  printf("%s%s",t,s)
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected ';' before 'return'
    5 |   printf("%s%s",t,s)
      |                     ^
      |                     ;
    6 |   return 0;
      |   ~~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(void){
  long long a, b, k;
  int aa, bb, i;
  cin >> a >> b >> k;
  aa = a;
  bb = b;
  if ((a > k) && (b > k)){
    cout << 0 << ' ' << 0;
  	return 0;
  }
  for (i=0; i<k; ++i){
    if(aa > 0){
      --aa;
    }else if(aa == 0){
      --bb;
    }else if (bb == 0){
      cout << 0 << ' ' << 0;
    return 0;
  }
  cout << aa << ' ' << bb;
  
}

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

#include <stdio.h>
int main(){
  char s[100],t[100];
  scanf("%s %s",&s,&t);
  printf("%s%s",&t,&s)
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected ';' before 'return'
    5 |   printf("%s%s",&t,&s)
      |                       ^
      |                       ;
    6 |   return 0;
      |   ~~~~~~
Language: Java

import java.util.*;
public class Strings{
    public static void main(String args[])	
    Scanner scan=new Scanner(System.in);
    String s1=scan.next();
    String s2=scan.next();
	if(1>=s1.length<=100||1>=s2.length<=100){
		System.out.println("Watch out for overflows");
	}
	else
	{
		String s3=s2.concat(s1);
    	System.out.println(s3);
	}
  }
}



Compiler output:
Main.java:3: error: ';' expected
    public static void main(String args[])	
                                          ^
Main.java:7: error: illegal start of type
	if(1>=s1.length<=100||1>=s2.length<=100){
	^
Main.java:7: error: <identifier> expected
	if(1>=s1.length<=100||1>=s2.length<=100){
	               ^
Main.java:7: error: <identifier> expected
	if(1>=s1.length<=100||1>=s2.length<=100){
	                                  ^
Main.java:10: error: illegal start of type
	else
	^
Main.java:16: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

#include <iostream>
using namespace std;

int main()｛
string s,t,ans;
cin >> s >> t;
ans=t+s;
cout << ans;｝


Compiler output:
a.cc:4:11: error: expected initializer before '\U0000ff5b'
    4 | int main()｛
      |           ^~
a.cc:6:1: error: 'cin' does not name a type
    6 | cin >> s >> t;
      | ^~~
a.cc:7:1: error: 'ans' does not name a type
    7 | ans=t+s;
      | ^~~
a.cc:8:1: error: 'cout' does not name a type
    8 | cout << ans;｝
      | ^~~~
a.cc:8:13: error: '\U0000ff5d' does not name a type
    8 | cout << ans;｝
      |             ^~
Language: C++

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

int main(void)
{
    char s[100],t[100];
    gets(s);
    gets(t);
    printf("%s",strcat(t,s));
    return 0;
}


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

import java.util.Scanner;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String inp = sc.nextLine().split(" ");
        System.out.println(inp[1] + inp[0]);
        sc.close();
    }
}

Compiler output:
Main.java:6: error: incompatible types: String[] cannot be converted to String
        String inp = sc.nextLine().split(" ");
                                        ^
Main.java:7: error: array required, but String found
        System.out.println(inp[1] + inp[0]);
                              ^
Main.java:7: error: array required, but String found
        System.out.println(inp[1] + inp[0]);
                                       ^
3 errors
Language: Java

import java.util.*;
Scanner scan = new Scanner(System.in);
println("Enter string for S: ");
s = scan.nextLine();
println(Enter string for T: );
t = scan.nextLine();
println(t+s);

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
println("Enter string for S: ");
^
Main.java:4: error: class, interface, enum, or record expected
s = scan.nextLine();
^
Main.java:5: error: class, interface, enum, or record expected
println(Enter string for T: );
^
Main.java:6: error: class, interface, enum, or record expected
t = scan.nextLine();
^
Main.java:7: error: class, interface, enum, or record expected
println(t+s);
^
6 errors
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	char str1[200] = { 0 }, str2[200] = {0};
	char str3[400] = { 0 };
	scanf("%s %s", str1, str2);
	str3 = strcat(str2, str1);
	printf("%s\n",str3);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: assignment to expression with array type
    8 |         str3 = strcat(str2, str1);
      |              ^
Language: C

include<stdio.h>
int main(void){
char s[101],t[101],*pt,*pt2;
scanf("%s%s",s,t);
pt=&s[0];
pt2=&t[0];
while(*pt){
printf("%c",*pt);
pt++;
}
while(*pt2){
printf("%c",*pt2);
pt2++;
}
printf("\n");
return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

int main() {
	string s, t;
	cin >> s >> t;
	cour << t << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cour' was not declared in this scope
    7 |         cour << t << s << endl;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int maxn=1e5+7;/
int main()
{
    string a,b;
    cin>>a>>b;
    cout<<b+a<<endl;
}


Compiler output:
a.cc:3:22: error: expected unqualified-id before '/' token
    3 | const int maxn=1e5+7;/
      |                      ^
Language: C

#include<Stdio.h>

int main(void) {
	char c[10000], b[10000];
	scanf("%s %s", &c, &b);
	printf("%s%s",c, b);
	return 0;
}

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

import java.util.Scanner; 
public class Main
{
public void static main(String arg[])
{
  Scanner sc = new Scanner(System.in); 
  String S = sc.nextLine();
  String T = sc.nextLine();
  if(S.length()>=T.length())
  {
    System.out.println(S+T);
  }
  else
    System.out.println(T+S);
}
}

Compiler output:
Main.java:4: error: <identifier> expected
public void static main(String arg[])
           ^
Main.java:4: error: '(' expected
public void static main(String arg[])
            ^
Main.java:4: error: invalid method declaration; return type required
public void static main(String arg[])
                   ^
3 errors
Language: Java

import java.util.*;class Main{public static void main(String[]a){Scannse s=new Scanner(System.in);String p=s.next();System.out.println(s.next()+p);}}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util.*;class Main{public static void main(String[]a){Scannse s=new Scanner(System.in);String p=s.next();System.out.println(s.next()+p);}}
                                                                 ^
  symbol:   class Scannse
  location: class Main
1 error