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

#include <bits/stdc++.h>
using namespace std;int main（） ｛
　string S, T;
  cin >> S >> T;
  cout << T << S << endl;
 
｝

Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　string S, T;
      | ^
a.cc:2:34: error: expected initializer before '\U0000ff5b'
    2 | using namespace std;int main（） ｛
      |                                  ^~
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> S >> T;
      |   ^~~
a.cc:5:3: error: 'cout' does not name a type
    5 |   cout << T << S << endl;
      |   ^~~~
a.cc:7:1: error: '\U0000ff5d' does not name a type
    7 | ｝
      | ^~
Language: C++

#include "iostream"
using namespace std;

int main(){
  string a,b;
  cin >> a >> b;
  count << b+a << endl;
}

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:7:9: error: expected ';' before 't'
    7 |   string t;
      |         ^~
      |         ;
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> s >> t;
      |   ^~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin >> s >> t;
      |          ^
a.cc:9:15: error: 't' was not declared in this scope
    9 |   cin >> s >> t;
      |               ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << t << s;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;int main（） ｛
　strring S, T;
  cin >> S >> T;
  cout << T << S << endl;

｝

Compiler output:
a.cc:3:1: error: extended character 　 is not valid in an identifier
    3 | 　strring S, T;
      | ^
a.cc:2:34: error: expected initializer before '\U0000ff5b'
    2 | using namespace std;int main（） ｛
      |                                  ^~
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> S >> T;
      |   ^~~
a.cc:5:3: error: 'cout' does not name a type
    5 |   cout << T << S << endl;
      |   ^~~~
a.cc:7:1: error: '\U0000ff5d' does not name a type
    7 | ｝
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define FOR(i,s,n) for(int i=s;i<n;i++)
#define ROF(i,n,e) for(int i=n;i>e;i--)
#define mod 1e9+7
#define MAX 1000005    //10^5+5
#define MAXQ 200005    //2*10^5+5
#define pi pair<int,int>
#define pb push_back
#define all(c) c.begin(),c.end()
#define tr(it,container) for(typeof(container.begin()) it = container.begin(); it != container.end(); it++)
#define ll long long
#define f first
#define s second
#define sz(container) container.size()
typedef pair<int,int> pii;
typedef pair<int,pii> node;

inline ll modExp(ll a,ll b,ll m=mod){
	ll res=1;
	a%=m;
	while(b>=1){
		if(b%2!=0){
			res=(res%m*a%m)%m;
		}
		a=(a%m*a%m)%m;
		b=b/2;
	}
	return res;
}

int main(int argc, char const *argv[])
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
    strint s,t;
    cin>>s>>t;
    cout<<t<<s<<"\n";
    return 0;    
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:39:5: error: 'strint' was not declared in this scope; did you mean 'strcat'?
   39 |     strint s,t;
      |     ^~~~~~
      |     strcat
a.cc:16:11: error: 'second' was not declared in this scope
   16 | #define s second
      |           ^~~~~~
a.cc:40:10: note: in expansion of macro 's'
   40 |     cin>>s>>t;
      |          ^
a.cc:40:13: error: 't' was not declared in this scope; did you mean 'tm'?
   40 |     cin>>s>>t;
      |             ^
      |             tm
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();
   int sl = S.length();
   int tl = T.length();
   if(sl>tl){System.out.println(S+T);}
   else System.out.println(T+S);
 }
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:6: error: cannot find symbol
   String S = sc.nextString();
                ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
   String T = sc.nextString();
                ^
  symbol:   method nextString()
  location: variable sc of type Scanner
3 errors
Language: Java

public class Main{
 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Integer A = 0;
        Integer B = 0;
        Integer K = 0;
        A = sc.nextInt();
        B = sc.nextInt();
        K = sc.nextInt();
        while (K > 0) {
            if (A > 0) {
                A--;
                K--;
            }
            else if (A == 0 && B > 0) {
                B --;
                K --;
            }
            else if ( A == 0 && B == 0)
            {
             break;
            }

        }

        System.out.println( A + "" + B );


    } 
}

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: Java

import java.util.Scanner;

public class Main
{
  public static void main(String args[])
  {
    Scanner std = new Scanner(System.in);
    String s = std.next();
    String t = std.nxet();
    
    System.out.println(t + s);
  }
}


Compiler output:
Main.java:9: error: cannot find symbol
    String t = std.nxet();
                  ^
  symbol:   method nxet()
  location: variable std of type Scanner
1 error
Language: Java

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s = r.readLine();
		String[] str = s.split(" ");
		System.out.printf("%s%s\n", str[0], str[1]);
		r.close();
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		                                          ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
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: unnamed classes are a preview feature and are disabled by default.
public static void main (String args[]) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = "";
        String T = "";
        S = sc.next();
        T = sc.next();
        System.out.println(T + S);
    }
}

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 <stdio.h>
#include <string>
using namespace std;

int main(){
    string S;
    string T;
    string A;
    cin >> S;
    cin >> T;
    A = T + S;
    printf("%s\n",A.c_str());
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> S;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | using namespace std;
Language: Java

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s = r.readLine();
		String[] str = s.split("");
		System.out.printf("%s%s\n", str[0], str[1]);
		r.close();
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		                       ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		                                          ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: C++

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

int main()
{
    char S[100],T[100];
    gets(S);
    gets(T);
    if(S[100]=='oder'&&T[100]=='atc')
        {puts(T);
        puts(S);}
        else
        {
            puts(S);
            puts(T);
        }

    return 0;
}

Compiler output:
a.cc:10:16: warning: multi-character character constant [-Wmultichar]
   10 |     if(S[100]=='oder'&&T[100]=='atc')
      |                ^~~~~~
a.cc:10:32: warning: multi-character character constant [-Wmultichar]
   10 |     if(S[100]=='oder'&&T[100]=='atc')
      |                                ^~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |     gets(S);
      |     ^~~~
      |     getw
Language: Java

	public static void main(String[] args) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		String s = r.readLine();
		String[] str = s.split("");
		System.out.printf("%s%s\n", str[0], str[1]);
		r.close();
	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) throws IOException {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main() {
  string S,T;
  cin >> S >> T;
  string ans =T.at(0);
  ans+=S.at(0);
  for ( int i =0;i<S.size()-1;i++){
    ans.push_back(T.at(i+1));
    ans.push_back(T.at(i+1));
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans =T.at(0);
      |               ~~~~^~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main
{
  public static void main( String arg[])
  {
    Scanner sc = new Scanner(System.in);
    String S = sc.nextline();
    String T = sc.nextline();
    System.out.println(S+T);
  }
}

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

public class Main
{
  public static void main( String arg[])
  {
    Scanner sc = new Scanner(System.in);
    String S = sc.nextString();
    String T = sc.nextString();
    System.out.println(T+S);
  }
}

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

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

int main() {
  string S,T;
  cin >> S >> T;
  string ans = 'T.at(0)';
  ans+='S.at(0)';
  for ( int i =0;i<S.size()-1;i++){
    ans+='T.at(i+1)';
    ans+='T.at(i+1)';
  }
  cout << ans << endl;
}


Compiler output:
a.cc:7:16: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    7 |   string ans = 'T.at(0)';
      |                ^~~~~~~~~
a.cc:8:8: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    8 |   ans+='S.at(0)';
      |        ^~~~~~~~~
a.cc:10:10: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   10 |     ans+='T.at(i+1)';
      |          ^~~~~~~~~~~
a.cc:11:10: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   11 |     ans+='T.at(i+1)';
      |          ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans = 'T.at(0)';
      |                ^~~~~~~~~
a.cc:8:8: warning: overflow in conversion from 'int' to 'char' changes value from '1948790825' to '41' [-Woverflow]
    8 |   ans+='S.at(0)';
      |        ^~~~~~~~~
a.cc:10:10: warning: overflow in conversion from 'int' to 'char' changes value from '1764438313' to '41' [-Woverflow]
   10 |     ans+='T.at(i+1)';
      |          ^~~~~~~~~~~
a.cc:11:10: warning: overflow in conversion from 'int' to 'char' changes value from '1764438313' to '41' [-Woverflow]
   11 |     ans+='T.at(i+1)';
      |          ^~~~~~~~~~~
Language: Java

import java.util.Scanner;

	public static void Main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String str1 = scan.next();
		String str2 = scan.next();
		System.out.println(str1+str2);

	}



Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void Main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
   
  int A;
  
  cin >> A;
      
  int B;
  
  cin >> B;
  
  if{(i=0;i<n;i++)
  cout << A+B << endl;
    }
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: expected '(' before '{' token
   14 |   if{(i=0;i<n;i++)
      |     ^
      |     (
Language: Java

import java.util.Scanner;

public class Test_a {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		String str1 = scan.next();
		String str2 = scan.next();
		System.out.println(str1+str2);

	}

}


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

Scanner sc = new Scanner(System.in);
        String S = "";
        String T = "";
        S = sc.next();
        T = sc.next();
        System.out.println(T + S);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
        S = sc.next();
        ^
Main.java:5: error: class, interface, enum, or record expected
        T = sc.next();
        ^
Main.java:6: error: class, interface, enum, or record expected
        System.out.println(T + S);
        ^
4 errors
Language: C++

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

int main() {
  string S,T;
  cin >> S >> T;
  string ans =T.at(0);
  ans+=S.at(0);
  for ( int i =0;i<S.size()-1;i++){
    ans+=T.at(i+1);
    ans+=T.at(i+1);
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans =T.at(0);
      |               ~~~~^~~
Language: Java

public class Main
{
  public static void main( String arg[])
  {
    Scanner sc = new Scanner(System.in);
    String S = sc.nextString();
    String T = sc.nextString();
    System.out.println(S+T);
  }
}

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

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


int main(void){
    char s[201],t[101];

    scanf("%s %s", &s, &t);
    stract(s, t);

    printf("%s",s);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'stract'; did you mean 'strcat'? [-Wimplicit-function-declaration]
    9 |     stract(s, t);
      |     ^~~~~~
      |     strcat
Language: C

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

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

#include <iostream>
#include<cstdio>
#include<cstring>
using namespace std;
void mystrcat(char a[],char b[])
{
  int i=0,j=0;
  while(b[i++]!='\0');
    i--;
  while(a[j]!='\0'){
        b[i++]=a[j++];
  }
  b[i]='\0';
}

int main()
{
    char a[100],b[100];
    gets(a);
    gets(b);
    mystrcat(a,b);
    puts(b);
    return 0;
}


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

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

int main() {
  string S,T;
  cin >> S >> T;
  string ans =T.at(0);
  ans+=S.at(0);
  for ( int i =0;i<S.size()-1;i++){
    ans+=T.at(i+1);
    ans+=T.at(i+1);
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans =T.at(0);
      |               ~~~~^~~
Language: C++

#include <iostream>
#include <string>
useing namespace std;
int main()
{
  string S="oder",T="atc";
  result=S+T;
  cout<<result<<endl;
  return 0;
}

Compiler output:
a.cc:3:1: error: 'useing' does not name a type
    3 | useing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S="oder",T="atc";
      |   ^~~~~~
a.cc:6: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:7:3: error: 'result' was not declared in this scope
    7 |   result=S+T;
      |   ^~~~~~
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   result=S+T;
      |          ^
a.cc:7:12: error: 'T' was not declared in this scope
    7 |   result=S+T;
      |            ^
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<result<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<result<<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>
using namespace std;
 
int main() {
   
  int A;
  
  cin >> A;
      
  int B;
  
  cin >> B;
  
  int K;
  
  cin >> K;
  
  int K=i;
  
  if(i=0;i<K;i++){
  cout << A+B << endl;
    }
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: redeclaration of 'int K'
   18 |   int K=i;
      |       ^
a.cc:14:7: note: 'int K' previously declared here
   14 |   int K;
      |       ^
a.cc:18:9: error: 'i' was not declared in this scope
   18 |   int K=i;
      |         ^
a.cc:20:13: error: expected ')' before ';' token
   20 |   if(i=0;i<K;i++){
      |     ~       ^
      |             )
Language: Java

import java.util.Scanner;

public class Atcoder {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String a = s.nextLine();
        String b = s.nextLine();
        String c = b+a;
        System.out.println(c);
    }
}


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

#include <iostream>
#include<cstdio>
#include<cstring>
using namespace std;
void mystrcat(char a[],char b[])
{
  int i=0,j=0;
  while(a[i++]!='\0');
    i--;
  while(b[j]!='\0'){
        a[i++]=b[j++];
  }
  a[i]='\0';
}

int main()
{
    char a[100],b[100];
    gets(a);
    gets(b);
    mystrcat(a,b);
    puts(a);
    return 0;
}


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

#include<iostream>

using namespace std;

int main(){
  
  string S,T, result;
  cout << "Enter your string S: /n");
  getline(cin,S);
  cout << "Enter your string T: /n");
  getline(cin,T);
  
  result = T + S;
  cout << "resulting_string :" << result;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected ';' before ')' token
    8 |   cout << "Enter your string S: /n");
      |                                    ^
      |                                    ;
a.cc:10:36: error: expected ';' before ')' token
   10 |   cout << "Enter your string T: /n");
      |                                    ^
      |                                    ;
Language: Java

Scanner sc = new Scanner(System.in);
String S = sc.nextString();
String T = sc.nextString();
if(S.length()>T.length){System.out.println(S+T);}
else System.out.println(T+S);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
if(S.length()>T.length){System.out.println(S+T);}
^
Main.java:4: error: class, interface, enum, or record expected
if(S.length()>T.length){System.out.println(S+T);}
                                                ^
3 errors
Language: C++

import java.util.Scanner;

public class atcoder {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("Enter string 1 : ");
        String s1 = input.nextLine();
        System.out.println("Enter the String 2: ");
        String s2 = input.nextLine();
        System.out.println(s2+s1);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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 atcoder {
      | ^~~~~~
Language: C++

#include<iostream>
#include<string.h>
#include<cstdio>
using namespace std;
int main()
{char S[100];
 char T[100];
char str3[1000];

 gets(S);

 gets(T);
 strcpy(str3,T);
 strcat(str3,S);
 printf("%s",str3);
   return 0;
}

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

#include<iostream>
#include<string.h>
#include<cstdio>
using namespace std;
int main()
{char S[100];
 char T[100];
char str3[1000];

 gets(str1);

 gets(str2);
 strcpy(str3,T);
 strcat(str3,S);
 printf("%s",str3);
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'str1' was not declared in this scope; did you mean 'str3'?
   10 |  gets(str1);
      |       ^~~~
      |       str3
a.cc:10:2: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |  gets(str1);
      |  ^~~~
      |  getw
a.cc:12:7: error: 'str2' was not declared in this scope; did you mean 'str3'?
   12 |  gets(str2);
      |       ^~~~
      |       str3
Language: C

#include <stdio.h>

int main(void){
  char strS[256];
  char strT[256];
  scanf("%s　%s",%strS,%strT);
  printf("%s%s",strT,strS);
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before '%' token
    6 |   scanf("%s　%s",%strS,%strT);
      |                  ^
Language: C

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

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

	scanf_s("%s%s", &S,100,&T,100);

	printf("%s%s",T,S);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%s%s", &S,100,&T,100);
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before 'return'
    7 |         cout << T << S << endl
      |                               ^
      |                               ;
    8 |         return 0;
      |         ~~~~~~
Language: Java

ort java.util.Scanner;
 
public class Main{
    public static void main(String args[]){
        String S,T;
        String s,t;
        Scanner scan = new Scanner(System.in);
        S = scan.nextLine();
        T = scan.nextLine();
        s = S.toLowerCase();
        t = T.toLowerCase();
        System.out.println(t+s);
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
1 error
Language: C++

#include<iostream>
#include<iomanip>
#include<vector>
#include<map>
#include<set>
#include<algorithm>
#include<numeric>
#include<limits>
#include<bitset>
#include<functional>
#include<type_traits>
#include<queue>
#include<stack>
#include<array>
#include<random>
#include<utility>
#include<cstdlib>
#include<ctime>
#include<string>

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

Compiler output:
a.cc:21:1: error: 'string' does not name a type; did you mean 'stdin'?
   21 | string s, t;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:23:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   23 |     cin >> s >> t;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:23:12: error: 's' was not declared in this scope
   23 |     cin >> s >> t;
      |            ^
a.cc:23:17: error: 't' was not declared in this scope; did you mean 'tm'?
   23 |     cin >> s >> t;
      |                 ^
      |                 tm
a.cc:24:5: error: 'string' was not declared in this scope
   24 |     string x = s + t;
      |     ^~~~~~
a.cc:24: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:
/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:25:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |     cout << x << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:13: error: 'x' was not declared in this scope
   25 |     cout << x << endl;
      |             ^
a.cc:25:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |     cout << x << 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>
using namespace std;
 
int main() {
   
  int A;
  
  cin >> A;
      
  int B;
  
  cin >> B;
  
  int K;
  
  cin >> K;
  
  int K=i;
  
  if{(i=0;i<K;i++)
  cout << A+B << endl;
    }
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: redeclaration of 'int K'
   18 |   int K=i;
      |       ^
a.cc:14:7: note: 'int K' previously declared here
   14 |   int K;
      |       ^
a.cc:18:9: error: 'i' was not declared in this scope
   18 |   int K=i;
      |         ^
a.cc:20:5: error: expected '(' before '{' token
   20 |   if{(i=0;i<K;i++)
      |     ^
      |     (
Language: C++

#include<iostream>
#include<string.h>
#include<cstdio>
using namespace std;
int main()
{char str1[100];
 char str2[100];
char str3[1000];
 printf("输入字符串1");
 gets(str1);
 printf("输入字符串2");
 gets(str2);
 strcpy(str3,str2);
 strcat(str3,str1);
 printf("%s",str3);
   return 0;
}


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

public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
        String S = "";
        String T = "";
        S = sc.next();
        T = sc.next();
        System.out.println(T + S);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
public class Strings{
    public static void main(String args[]){		
    Scanner scan=new Scanner(System.in);
    System.out.println("Input of two strings of lowercase letters");
    String s1=scan.next();
    String s2=scan.next();
    String s3=s2.concat(s1);
    System.out.println(s3);
  }
}


Compiler output:
Main.java:2: error: class Strings is public, should be declared in a file named Strings.java
public class Strings{
       ^
1 error
Language: C++

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

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


    cout<<a<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |     str a,b;
      |     ^~~
      |     std
a.cc:6:11: error: 'a' was not declared in this scope
    6 |     cin >>a>>b;
      |           ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |     cin >>a>>b;
      |              ^
Language: C++

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
using namespace std;
using ll=long long;
using vec=vector<ll>;
using Graph = vector<vector<ll>>;
#define loop(i,n) for(ll i=0;i<n;i++)
#define Loop(i, m, n) for(ll i = m;i < n;i++)
#define pool(i,n) for(ll i=n;i>=0;i--)
#define Pool(i, m, n) for(ll i=n;i>=m;i--)
#define MAX 99999999999ll
#define MIN -99999999999ll
#define setbit bitset<8>
#define flagcount __builtin_popcount
#define flag(x) (1<<x)
#define flagadd(bit,x) bit|=flag(x)
#define flagpop(bit,x) bit&=~flag(x) 
#define flagon(bit,i) bit&flag(i)
#define flagoff(bit,i) !(bit & (1<<i))
#define all(v) v.begin(),v.end()
#define low2way(v,x) lower_bound(all(v),x)
#define high2way(v,x) upper_bound(all(v),x)
#define count2way(v,x) high2way(v,x)-low2way(v,x)
#define lower(v,x) low2way(v,x)-v.begin() //1番左が0、もし見つから無いならｎを出力
#define higher(v,x) high2way(v,x)-v.begin()-1 //1番左が0、もし見つからないならn-1を出力（注意）
#define putout(a) cout<<a<<endl
#define putout2(a,b) putout(a);putout(b)
#define putout3(a,b,c) putout(a);putout(b);putout(c)
#define putout4(a,b,c,d) putout(a);putout(b);putout(c);putout(d)
#define putout5(a,b,c,d,e) putout(a);putout(b);putout(c);putout(d);putout(e)
#define Gput(a,b) G[a].push_back(b)
#define cin1(a) cin>>a
#define cin2(a,b) cin>>a>>b
#define cin3(a,b,c) cin>>a>>b>>c
#define cin4(a,b,c,d) cin>>a>>b>>c>>d
#define cin5(a,b,c,d,e) cin>>a>>b>>c>>d>>e
#define sum(v) accumulate(all(v), 0ll)
#define gcd(x,y) __gcd(x,y)
ll ctoi(char c){
	if(c>='0'&&c<='9'){
		return c-'0';
	}
	return 0;
}
ll lcm(ll x,ll y){
  ll z=gcd(x,y);
  return x*y/z;
}
ll primejudge(ll n){
  if(n<2)return 0;
  else if(n==2)return 1;
  else if(n%2==0)return 0;
  double sqrtn=sqrt(n);
  Loop(i,3,sqrtn+1){
     if(n%i==0){
        return 0;
     }
     i++;
  }
  return 1;
}
int main() {
  cout << fixed << setprecision(30);
 ll a,b,k;
  cin3(a,b,k);
  if(a<k){
    a=0;
    b=max(b-(k-a),0ll);
    putout2(a,b);
  }
  )
  else{
    a-=k;
    putout2(a,b);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:71:3: error: expected primary-expression before ')' token
   71 |   )
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int S,T;
  cin>>S>>T;
  cout<<'T';'S'<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout<<'T';'S'<<endl;
      |             ~~~^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
using namespace std;
const int M = 1e5 + 50;
int map[26][M];
int main()
{	
  string s,t;	
  int f = 0;	
  cin>>s>>t;	
  long long ans = 0;
  	for(int i = 0; i < 26; i++)map[i][s.length()] = -1;
  	for(int i = s.length()-1 ; i >=0; i-- )
    {		
      for(int j = 0; j < 26; j++)
      {			
        map[j][i] = map[j][i+1]; 
      }		
      map[s[i]-'a'][i] = i;
      	int flag = 0; 
      int wz = 0; 	
      for(int i = 0;i < t.length();i++)
      {		
        if(wz == 0 && map[t[i]-'a'][wz] == -1)
        {			flag = 1;
         break;		
        }		
        else
        {			
          if( map[t[i]-'a'][wz] != -1 )
          {				
            ans+=map[t[i]-'a'][wz]-wz+1;
            wz = map[t[i]-'a'][wz]+1;		
          }			else
          {			
            ans+=s.length()-wz;
            wz = 0;	
            i--;		
          }		
        }	
      }	if(flag == 1)		
        printf("-1\n");	
      else{		
        printf("%lld\n",ans);
      }	
      return 0;
    }



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

#include <iostream>
#include <algorithm>
#include <typeinfo>
#include <numeric>
#include "math.h"
#include <string>
#include <vector>
#include <iomanip>

#define pai 3.14159265358979323846264338327950288
using namespace std;

// Strings
//*
void main() {
	string s, t;
	cin >> s >> t;
	cout << t + s;
}


//*/



Compiler output:
a.cc:15:1: error: '::main' must return 'int'
   15 | void main() {
      | ^~~~
Language: Java

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str1,str2;
        str1 = scan.next();
        str2 = scan.next();
        System.out.println(str2+str1);
    }
}


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

#include <iostream>
using namespace std;
int main(){
int S,T;
  cin>>S>>T;
  cout<<'T''S'<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected ';' before 'S'
    6 |   cout<<'T''S'<<endl;
      |            ^~~
      |            ;
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		try (Scanner scn = new Scanner(System.in)) {
			final int takahasi = scn.nextInt();
			final int aoki = scn.nextInt();
			final int actionCount = scn.nextInt();
		
			System.out.println(b+a);
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			System.out.println(b+a);
			                   ^
  symbol:   variable b
  location: class Main
Main.java:10: error: cannot find symbol
			System.out.println(b+a);
			                     ^
  symbol:   variable a
  location: class Main
2 errors
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
  char s[20];
  cin>>s;
  char t[20];
  cin>>t;
  int n,m;
  n=strlen(s);
  m=strlen(t);
  if(n>=m)
  {
    cout<<t<<s<<endl;
  }
  if(n<m)
  {
    cout<<s<<t<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'strlen' was not declared in this scope
   11 |   n=strlen(s);
      |     ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<iostream>
  +++ |+#include <cstring>
    2 | #include<stdio.h>
Language: Java

import java.util.Scanner; 

public class MyClass {
  public static void main(String[] args) {
    Scanner myObj = new Scanner(System.in);
    String S;
    String T;
    
    System.out.println("Enter S"); 
    S = myObj.nextLine();  
    
    System.out.println("Enter T"); 
    T = myObj.nextLine();   
       
    System.out.println(T+S);        
  }
}


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

#include<stdio.h>;

int s,t;
scanf("s=%d,t=%d", s, t);
printf("%d%d\n", s, t);
return 0;

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>;
      |                  ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("s=%d,t=%d", s, t);
      |       ^~~~~~~~~~~
main.c:4:20: error: expected declaration specifiers or '...' before 's'
    4 | scanf("s=%d,t=%d", s, t);
      |                    ^
main.c:4:23: error: expected declaration specifiers or '...' before 't'
    4 | scanf("s=%d,t=%d", s, t);
      |                       ^
main.c:5:8: error: expected declaration specifiers or '...' before string constant
    5 | printf("%d%d\n", s, t);
      |        ^~~~~~~~
main.c:5:18: error: expected declaration specifiers or '...' before 's'
    5 | printf("%d%d\n", s, t);
      |                  ^
main.c:5:21: error: expected declaration specifiers or '...' before 't'
    5 | printf("%d%d\n", s, t);
      |                     ^
main.c:6:1: error: expected identifier or '(' before 'return'
    6 | return 0;
      | ^~~~~~
Language: C++

using System;
using System.Linq;

namespace AtCoder_Begginer_Contest1
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] ST = Console.ReadLine().Split();
            string S = ST[0];
            string T = ST[1];
            string ans = S + T;
            Console.WriteLine(ans);
        }
    }
}


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:16:6: error: expected ';' after class definition
   16 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder_Begginer_Contest1::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string[] ST = Console.ReadLine().Split();
      |             ^~~~~~
a.cc:10:20: error: expected primary-expression before ']' token
   10 |             string[] ST = Console.ReadLine().Split();
      |                    ^
a.cc:11:20: error: expected ';' before 'S'
   11 |             string S = ST[0];
      |                    ^
a.cc:12:20: error: expected ';' before 'T'
   12 |             string T = ST[1];
      |                    ^
a.cc:13:20: error: expected ';' before 'ans'
   13 |             string ans = S + T;
      |                    ^~~
a.cc:14:13: error: 'Console' was not declared in this scope
   14 |             Console.WriteLine(ans);
      |             ^~~~~~~
a.cc:14:31: error: 'ans' was not declared in this scope
   14 |             Console.WriteLine(ans);
      |                               ^~~
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str1,str2;
        str1 = scan.next();
        str2 = scan.next();
        System.out.println(str2+str1);
}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    String S = sc.nextLine();
    String T = sc.nextLine();
    System.ot.print(T+S);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    System.ot.print(T+S);
          ^
  symbol:   variable ot
  location: class System
1 error
Language: C++

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

int main(){
    string s,t;
    cin>>s>>t;
    vector<chair> ans;
    for(int i=0;i<t.size();i++){
        ans.push_back(t[i]);
    }
    for(int i=0;i<s.size();i++){
        ans.push_back(s[i]);
    }
    for(int i=0;i<ans.size();i++){
        cout<<ans[i];
    }
    cout<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'chair' was not declared in this scope; did you mean 'chdir'?
    8 |     vector<chair> ans;
      |            ^~~~~
      |            chdir
a.cc:8:17: error: template argument 1 is invalid
    8 |     vector<chair> ans;
      |                 ^
a.cc:8:17: error: template argument 2 is invalid
a.cc:10:13: error: request for member 'push_back' in 'ans', which is of non-class type 'int'
   10 |         ans.push_back(t[i]);
      |             ^~~~~~~~~
a.cc:13:13: error: request for member 'push_back' in 'ans', which is of non-class type 'int'
   13 |         ans.push_back(s[i]);
      |             ^~~~~~~~~
a.cc:15:23: error: request for member 'size' in 'ans', which is of non-class type 'int'
   15 |     for(int i=0;i<ans.size();i++){
      |                       ^~~~
a.cc:16:18: error: invalid types 'int[int]' for array subscript
   16 |         cout<<ans[i];
      |                  ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
	str s, t;
  	cin >> s >> t;
  	cout << s << t << endl;
  	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |         str s, t;
      |         ^~~
      |         std
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> s >> t;
      |         ^~~
a.cc:5:16: error: 's' was not declared in this scope
    5 |         cin >> s >> t;
      |                ^
a.cc:5:21: error: 't' was not declared in this scope
    5 |         cin >> s >> t;
      |                     ^
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << s << t << endl;
      |         ^~~~
a.cc:6:27: error: 'endl' was not declared in this scope
    6 |         cout << s << t << endl;
      |                           ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    char a[1000],b[1000];
    gets(a);
    gets(b);
    cout << b << a;
    return 0;
}

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(a);
      |     ^~~~
      |     getw
Language: Java

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = "";
        String T = "";
        S = sc.next();
        T = sc.next();
        System.out.println(T + S);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<vector>
#include<math.h>
#include<string>
using namespace std;
 
int main(){
string S,T;
cin >> S >> T;
 
cout << T + S;
 
 
 
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> S >> T;
      | ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<string>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout << T + S;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

a, b, c = io.read():match("(%d+) (%d+) (%d+)")
a, b, c = tonumber(a), tonumber(b), tonumber(c)
z = math.min(a, k)
a = a - z
k = k - z
z = math.min(b, k)
b = b - z
io.write(a, " ", b, "\n")


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = io.read():match("(%d+) (%d+) (%d+)")
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s,ss;
    cin>>s>>ss;
    cout<<b+a<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'b' was not declared in this scope
    7 |     cout<<b+a<<endl;
      |           ^
a.cc:7:13: error: 'a' was not declared in this scope
    7 |     cout<<b+a<<endl;
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |     cout<<t<<a<<endl;
      |              ^