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

import java.io.*;
import java.util.*;
import java.lang.*;
import java.math.*;

public class A {
	public void run() throws Exception {
		FastScanner sc = new FastScanner();
		String t = sc.next();
		String s = sc.next();
		System.out.println(s + t);
		
	}
	static class FastScanner {
		public BufferedReader reader;
		public StringTokenizer tokenizer;

		public FastScanner() {
			reader = new BufferedReader(new InputStreamReader(System.in), 32768);
			tokenizer = null;
		}

		public String next() {
			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
				try {
					tokenizer = new StringTokenizer(reader.readLine());
				} catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return tokenizer.nextToken();
		}

		public int nextInt() {
			return Integer.parseInt(next());
		}

		public long nextLong() {
			return Long.parseLong(next());
		}

		public double nextDouble() {
			return Double.parseDouble(next());
		}

		public String nextLine() {
			try {
				return reader.readLine();
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}

	}
	public static void main (String[] args) throws Exception {
		new A().run();
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[100],t[100];
    gets(s);
    gets(t);
    strcat(t,s);
    cout<<t<<endl;
    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(s);
      |     ^~~~
      |     getw
Language: Java

public class StringProb {

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

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


package stringprob;

import java.util.Scanner;


public class StringProb {

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

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


package basicjava;

import java.util.Scanner;


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


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

import java.util.Scanner;


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

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

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

int main()
{
string S,T;
getline(cin,S);
getline(cin,T);
cout<<strcat(T,S);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
   10 | cout<<strcat(T,S);
      |              ^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:2:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<string>
using nameplacegygygtgfvgfggtrj76r 76gfyg4huiqwebgi	w	w	w	wせういｇへｃｇふぇｃｊくぇｈｇｈｊｙｂｖｇｆｑｆゆくぇｇふぇｈｆｄｈｙうぇｑｇｔｙｇｆうぇｑｈふぇ４ｖｆｑｇｈｆｖｈでｂｖｇふいあえｒｈｗｊｋｔｈｊｑｖｚｄｆｈあｎｂｇｆｒえｈｊｖｇふぇｒｈｊAGJEｒｑｈｂｇｆｒえｒｈｊｂげｈｊｑｗgm

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'nameplacegygygtgfvgfggtrj76r'
    3 | using nameplacegygygtgfvgfggtrj76r 76gfyg4huiqwebgi     w       w       w       wせういｇへｃｇふぇｃｊくぇｈｇｈｊｙｂｖｇｆｑｆゆくぇｇふぇｈｆｄｈｙうぇｑｇｔｙｇｆうぇｑｈふぇ４ｖｆｑｇｈｆｖｈでｂｖｇふいあえｒｈｗｊｋｔｈｊｑｖｚｄｆｈあｎｂｇｆｒえｈｊｖｇふぇｒｈｊAGJEｒｑｈｂｇｆｒえｒｈｊｂげｈｊｑｗgm
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'ST' was not declared in this scope; did you mean 'T'?
    7 |   cout << ST << endl;
      |           ^~
      |           T
Language: C++

#include<iostream>
usingnamespace std;
#include<string> 

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

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'string' was not declared in this scope
    6 | string s, t;
      | ^~~~~~
a.cc:6:1: 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: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>s>>t;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s>>t;
      |        ^
a.cc:7:11: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   cin>>s>>t;
      |           ^
      |           tm
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<t<<s std;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
usingnamespace std;
#include<string> 

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

Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'string' was not declared in this scope
    6 | string s, t;
      | ^~~~~~
a.cc:6:1: 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: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>s>>t;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s>>t;
      |        ^
a.cc:7:11: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   cin>>s>>t;
      |           ^
      |           tm
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<t<<s;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
	using namespace std;
	int main();

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<iostream>
#include<string>
using namespace std;
int main(){
  string s,t: 
  cin >> s >> t; 
  cout << t << s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: found ':' in nested-name-specifier, expected '::'
    5 |   string s,t:
      |             ^
      |             ::
a.cc:5:12: error: 't' has not been declared
    5 |   string s,t:
      |            ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> s >> t;
      |       ^~
a.cc:7:11: error: 't' was not declared in this scope
    7 |   cout << t << s;
      |           ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include<string>
      | ^~~~~~~
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:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin << s << t;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:16: error: 's' was not declared in this scope
    6 |         cin << s << t;
      |                ^
a.cc:6:21: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |         cin << s << t;
      |                     ^
      |                     tm
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << t << s; }
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<stdio.h>
#include<string>
using namespace std;
int main(){
  string a,b;
cin>>a>>b;
  a=b+a;
  cout<<a<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b;
      | ^~~
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;
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<a<<endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:12: error: 'endl' was not declared in this scope
    8 |   cout<<a<<endl;
      |            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#include<stdio.h>
#include<string>
using namespace std;
int main(){
  string a,b;
cin>>a>>b;
  a=b+a;
  cout<<a<<endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b;
      | ^~~
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;
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout<<a<<endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:12: error: 'endl' was not declared in this scope
    8 |   cout<<a<<endl;
      |            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#include<stdio.h>
#include<string>
int main(){
  string a,b;
cin>>a>>b;
  a=b+a;
  cout<<a<<endl;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string a,b;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:2:
/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:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b;
      | ^~~
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a>>b;
      |      ^
a.cc:5:9: error: 'b' was not declared in this scope
    5 | cin>>a>>b;
      |         ^
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<a<<endl;
      |   ^~~~
a.cc:7:12: error: 'endl' was not declared in this scope
    7 |   cout<<a<<endl;
      |            ^~~~
Language: C++

#include<stdio.h>
#include<string>
int main(){
  string a,b;
  scanf("%d %d",&a,&b);
  a=b+a;
  printf("%d",a);
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string a,b;
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:2:
/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:5:18: error: 'a' was not declared in this scope
    5 |   scanf("%d %d",&a,&b);
      |                  ^
a.cc:5:21: error: 'b' was not declared in this scope
    5 |   scanf("%d %d",&a,&b);
      |                     ^
Language: C

#include <stdio.h>
 
int main(void){
  int N;
  int i;
  
  scanf("%d",&N);
  
  if(N % 2 != 0 && N % 3 != 0 && N % 5 != 0 && N % 7 != 0){
    for(i=N;i<10000;i++){
      if(i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0)
        break;
    }
    printf("%d\n",i);
  }
  return 0;
}
#include <stdio.h>
 
int main(void){
  int N;
  int i;
  
  scanf("%d",&N);
  
  if(N % 2 != 0 && N % 3 != 0 && N % 5 != 0 && N % 7 != 0){
    for(i=N+1;i<10000;i++){
      if(i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0)
        break;
    }
    printf("%d\n",i);
  }
  
  switch(N){
    case 2:
      printf("%d\n",N);
      break;
      
     case 3:
      printf("%d\n",N);
      break;
      
      case 5:
      printf("%d\n",N);
      break;
      
      case 7:
      printf("%d\n",N);
      break;
  }
      
  return 0;
}
提出情報

Compiler output:
main.c:20:5: error: redefinition of 'main'
   20 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
main.c:54:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   54 | 提出情報
      | ^~~~~~~~
Language: C

#include <stdio.h>
 
int main(void){
  int N;
  int i;
  
  scanf("%d",&N);
  
  if(N % 2 != 0 && N % 3 != 0 && N % 5 != 0 && N % 7 != 0){
    printf("%d\n",N);
  } else {
    for(i=N+1;i<10000;i++){
      if(i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0)
        break;
    }
    printf("%d\n",i);
  }
  
  return 0;
}
#include <stdio.h>
 
int main(void){
  int N;
  int i;
  
  scanf("%d",&N);
  
  if(N % 2 != 0 && N % 3 != 0 && N % 5 != 0 && N % 7 != 0){
    printf("%d\n",N);
  } else {
    for(i=N+1;i<10000;i++){
      if(i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0)
        break;
    }
    printf("%d\n",i);
  }
  
  return 0;
}
提出情報

Compiler output:
main.c:23:5: error: redefinition of 'main'
   23 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
main.c:41:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   41 | 提出情報
      | ^~~~~~~~
Language: C

main(a){while(a=getcahr()+1)if(a-33)putchar(--a);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a){while(a=getcahr()+1)if(a-33)putchar(--a);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:17: error: implicit declaration of function 'getcahr' [-Wimplicit-function-declaration]
    1 | main(a){while(a=getcahr()+1)if(a-33)putchar(--a);}
      |                 ^~~~~~~
main.c:1:37: error: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
    1 | main(a){while(a=getcahr()+1)if(a-33)putchar(--a);}
      |                                     ^~~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'putchar'
  +++ |+#include <stdio.h>
    1 | main(a){while(a=getcahr()+1)if(a-33)putchar(--a);}
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cou' was not declared in this scope; did you mean 'cos'?
    6 |   cou<<t<<s;
      |   ^~~
      |   cos
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args)
    {
      Scanner sc = new Scanner(System.in);
      String S = sc.next();
      String T = sc.next();
      System.out.plintln(S + T);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      System.out.plintln(S + T);
                ^
  symbol:   method plintln(String)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class RapidProblem {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        //System.out.println("Enter first string ");
        String s1 = s.next();
        //System.out.println("Enter second string ");
        String s2 = s.next();
        String s3 = s2 + s1;
        System.out.println(s3);
    }
}


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

import java.util.Scanner;

public class RapidProblem {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("Enter first string ");
        String s1 = s.next();
        System.out.println("Enter second string ");
        String s2 = s.next();
        String s3 = s2 + s1;
        System.out.println(s3);
    }
}


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

#include<stdio.h>

bool IsPrime(int a)
{
	for (int i=a-1; i<1; i--){
    	if(a%i == 0 ) return false;
    }
    return true;
}

int main()
{
 	int x;
  	scanf("%d" &x);
  
  	while(1){
		if(IsPrime(x)) break;
      	x++;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
   14 |         scanf("%d" &x);
      |               ~~~~ ^~
      |               |     |
      |               |     int
      |               const char [3]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
    7 |   strcat(t,s);
      |          ^
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
  string s,t;
  cin>>s>>t;
  strcat(t,s);
  cout<<t;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
    8 |   strcat(t,s);
      |          ^
      |          |
      |          std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:57: error: 'S' was not declared in this scope
    3 | int main(){std::string s,t;std::cin>>s>>t;std::cout<<t<<S<<"\n";}
      |                                                         ^
Language: C++

#include <iostream>
#include <cstring>
using namespace std;
int main(){
  	string a,b;
  	cin>>a>>b;
  	printf(strcat(b,a));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char*'
    7 |         printf(strcat(b,a));
      |                       ^
      |                       |
      |                       std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from a.cc:2:
/usr/include/string.h:149:39: note:   initializing argument 1 of 'char* strcat(char*, const char*)'
  149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
      |                      ~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include "pre.h"
//#include <bits/stdc++.h>
//#include <boost/format.hpp>
using boost::format;

#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;

ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }

int main(int argc, char **argv)
{
    // int a,b;
    // cin >> a >> b;
    // cout << boost::format("lcm(%d,%d)=%d\n") % a % b % lcm(a,b);
    // cout << boost::format("gcd(%d,%d)=%d\n") % a % b % gcd(a,b);
    string a, b;
    cin >> a >> b;
    cout << b << a << endl;

    return 0;
}


Compiler output:
a.cc:1:10: fatal error: pre.h: No such file or directory
    1 | #include "pre.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include "pch.h"
#include <iostream>
#include <string>

using namespace std;



int main() {


	string s, t;
	s = t = "";

	cin >> s >> t;


	auto st = t + s;
	cout << st << endl;

	return 0;
}


Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
int main() {
	string a, b;
  cin >> a >> b;
  cou << b << a << endl;
  return 0;
}

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

import java.util.*;
public class Main{
    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<bits/stdc++.h>
using namespaces std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s,t;
      | ^~~~~~
a.cc:5:1: 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:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>s>>t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 's' was not declared in this scope
    6 |   cin>>s>>t;
      |        ^
a.cc:6:11: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin>>s>>t;
      |           ^
      |           tm
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<t+s<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<t+s<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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() {
  string S,T;
  cin >> S >> T;
  
  for (i = 0; i < 100; i++) {
    cout << S.at(i) << T.at(i);
  }
  cout << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < 100; i++) {
      |        ^
Language: Java

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

Compiler output:
Main.java:2: error: class Concat is public, should be declared in a file named Concat.java
public class Concat{
       ^
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.concat(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: Java

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.concat(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: Java

import java.util.Scanner;

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






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

#include <iostream>
#include <string>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:6:9: error: expected ';' before 't'
    6 |   string t;
      |         ^~
      |         ;
a.cc:8:15: error: 's' was not declared in this scope
    8 |   std::cin << s << t;
      |               ^
a.cc:8:20: error: 't' was not declared in this scope; did you mean 'tm'?
    8 |   std::cin << s << t;
      |                    ^
      |                    tm
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | 
   13 | }
      | ~
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4: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:5:9: error: expected ';' before 't'
    5 |   string t;
      |         ^~
      |         ;
a.cc:7:15: error: 's' was not declared in this scope
    7 |   std::cin << s << t;
      |               ^
a.cc:7:20: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   std::cin << s << t;
      |                    ^
      |                    tm
a.cc:10:11: error: expected ';' before '}' token
   10 |   return 0
      |           ^
      |           ;
   11 | 
   12 | }
      | ~
Language: Java

import java.util.*;
import java.io.*;

public class AString {
    public static void main(String...args){
        Scanner scanner=new Scanner(System.in);
        String S=scanner.next();
        String T=scanner.next();
        System.out.println(T+S);
    }
}


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

#include <bits/stdc++.h>

int main() {
    ios::sync_with_stdio(false);
    std::cin.tie(0);

    string s, t;
    std::cin >> s >> t;
    std::cout << t + s << std::endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'ios' has not been declared
    4 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s, t;
      |     ^~~~~~
a.cc:7:5: 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:8:17: error: 's' was not declared in this scope
    8 |     std::cin >> s >> t;
      |                 ^
a.cc:8:22: error: 't' was not declared in this scope; did you mean 'tm'?
    8 |     std::cin >> s >> t;
      |                      ^
      |                      tm
Language: C++

#include <iostream>

int main(){
std::cin>>S>>T;
std::cout<<T+S;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'S' was not declared in this scope
    4 | std::cin>>S>>T;
      |           ^
a.cc:4:14: error: 'T' was not declared in this scope
    4 | std::cin>>S>>T;
      |              ^
Language: C++

#include <iostream>

std::cin>>S>>T;
std::cout<<T+S;

Compiler output:
a.cc:3:6: error: 'cin' in namespace 'std' does not name a type
    3 | std::cin>>S>>T;
      |      ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:6: error: 'cout' in namespace 'std' does not name a type
    4 | std::cout<<T+S;
      |      ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.io.*;
import java.util.*';
  
public class Main extends PrintWriter {
  Main() { super(System.out, true); }
  Scanner sc = new Scanner(System.in);
  public static void main(String[] $) {
    Main o = new Main(); o.main(); o.flush();
  }
  
  void main(){
    String S = sc.next();
    String T = sc.next();
    println(T+S);
  }
}

Compiler output:
Main.java:2: error: unclosed character literal
import java.util.*';
                  ^
1 error
Language: C++

#include <iostream>
#include <string>

using namespace std;

string getWord(string line, bool first) {
  string word = "";
  bool passed = false;
  for (auto i: line) {
    if (first ^ passed) {
      word += i;
    } else if (i == ' ') {
      passed = true;
    }
  }
}

int main() {
	string line;
  	readline(cin, line);
    cout << getWord(line, 1) << getWord(line, 2);
    return 0;
}


Compiler output:
a.cc: In function 'std::string getWord(std::string, bool)':
a.cc:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
   16 | }
      | ^
a.cc: In function 'int main()':
a.cc:20:9: error: 'readline' was not declared in this scope
   20 |         readline(cin, line);
      |         ^~~~~~~~
Language: C++

std::cin >> S >> T;
std::cout << T + S;

Compiler output:
a.cc:1:6: error: 'cin' in namespace 'std' does not name a type
    1 | std::cin >> S >> T;
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cin >> S >> T;
a.cc:2:6: error: 'cout' in namespace 'std' does not name a type
    2 | std::cout << T + S;
      |      ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | std::cout << T + S;
      | ^~~
Language: C++

#include <iostream>
#include <string>

string getWord(string line, bool first) {
  string word = "";
  bool passed = false;
  for (auto i: line) {
    if (first ^ passed) {
      word += i;
    } else if (i == ' ') {
      passed = true;
    }
  }
}

int main() {
	string line;
  	readline(cin, line);
    cout << getWord(line, 1) << getWord(line, 2);
    return 0;
}

Compiler output:
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string getWord(string line, bool first) {
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:17:9: error: 'string' was not declared in this scope
   17 |         string line;
      |         ^~~~~~
a.cc:17: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:18:18: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   18 |         readline(cin, line);
      |                  ^~~
      |                  std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:23: error: 'line' was not declared in this scope
   18 |         readline(cin, line);
      |                       ^~~~
a.cc:18:9: error: 'readline' was not declared in this scope
   18 |         readline(cin, line);
      |         ^~~~~~~~
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout << getWord(line, 1) << getWord(line, 2);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:13: error: 'getWord' was not declared in this scope
   19 |     cout << getWord(line, 1) << getWord(line, 2);
      |             ^~~~~~~
Language: C++

#include <iostream>
#include <string>

int main() {
	std::string S;
  	std::string T;
  	
	std::cin >> S;
	std::cin >> T;
  	std::cout << T + S << endl;
  
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         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++

string T, S;

cin>>T;
cin>>S;

cout<<S+T;


Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string T, S;
      | ^~~~~~
a.cc:3:1: error: 'cin' does not name a type
    3 | cin>>T;
      | ^~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin>>S;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout<<S+T;
      | ^~~~
Language: C++

#include <iostream>
#include <string>

int main() {
	std::string S;
  	std::string T;
  	
	std::cin >> S;
	std::cin >> T;
  	cout << T + S << endl;
  
	return 0;
}

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

#include <iostream>
#include <string>

void main() {
	std::string S;
  	std::string T;
  	std::getline(std::cin, S);
  	std::getline(std::cin, T);
  	T += S;
  	std::cout << T << std::endl;
  	return 0;
}

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

Scanner in = new Scanner(System.in);
String s = in.next();
String t = in.next();
System.out.println(t+s);

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

#include iostream
#include string

int main(){
string a, b;
cout << a << b;
return 0;
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include iostream
      |          ^~~~~~~~
a.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include string
      |          ^~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string a, b;
      | ^~~~~~
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout << a << b;
      | ^~~~
a.cc:6:9: error: 'a' was not declared in this scope
    6 | cout << a << b;
      |         ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 | cout << a << b;
      |              ^
Language: C++

def string(s, t):
	summ1 = 0
	summ2 = 0
	for i in range(len(s)):
		summ1 += ord(s[i])
	for j in range(len(t)):
		summ2 += ord(t[j])
	if summ1 > summ2:
		print(t, end="")
		print(s)
	else:
		print(s, end="")
		print(t)


s, t = map(str, input().split())
string(s, t)

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def string(s, t):
      | ^~~
Language: Java

S="aaa";
T="bbb";

System.out.println(T+S);

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
S="aaa";
^
Main.java:2: error: class, interface, enum, or record expected
T="bbb";
^
Main.java:4: error: class, interface, enum, or record expected
System.out.println(T+S);
^
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'T' is not a member of 'std::string' {aka 'std::__cxx11::basic_string<char>'}
    5 | string::T,S;
      |         ^
a.cc:5:11: error: 'S' was not declared in this scope
    5 | string::T,S;
      |           ^
a.cc:6:9: error: 'T' was not declared in this scope
    6 |   cout<<T<<S<<endl;
      |         ^
Language: C++

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

int main() {
  strings S, T;
  cin >> S >> T;
  cout <<T <<S <<endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'strings' was not declared in this scope; did you mean 'stdin'?
    5 |   strings S, T;
      |   ^~~~~~~
      |   stdin
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S >> T;
      |          ^
a.cc:6:15: error: 'T' was not declared in this scope
    6 |   cin >> S >> T;
      |               ^
Language: C++

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

int main() {
  stirings a, b;
  cin >> a >> b;
  cout <<b <<a <<endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirings' was not declared in this scope
    5 |   stirings a, b;
      |   ^~~~~~~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^