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

public static void Nickname(String[] args) {
        String S = "takashi";
        System.out.println(S.substring(0, 3));
        S = "naohiro";
        System.out.println(S.substring(0, 3));
}

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

include<iostream>
include<string.h>
using namespace std;
int main()
{
  char S[20];
  cout<<"What's your name?"<<endl;
  cin>>S;
  char nick[3];
  for(int i=0;i<3;i++)
    nick[i]=S[i];
  cout<<nick<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |   ^~~~
a.cc:7:30: error: 'endl' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |                              ^~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>S;
      |   ^~~
Language: C++

include<iostream>
include<string.h>
using namespace std;
int main()
{
  string S;
  cout<<"What's your name?"<<endl;
  cin>>S;
  string nick;
  for(int i=0;i<3;i++)
    nick[i]=S[i];
  cout<<nick<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string S;
      |   ^~~~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |   ^~~~
a.cc:7:30: error: 'endl' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |                              ^~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>S;
      |   ^~~
a.cc:8:8: error: 'S' was not declared in this scope
    8 |   cin>>S;
      |        ^
a.cc:9:9: error: expected ';' before 'nick'
    9 |   string nick;
      |         ^~~~~
      |         ;
a.cc:11:5: error: 'nick' was not declared in this scope
   11 |     nick[i]=S[i];
      |     ^~~~
a.cc:12:9: error: 'nick' was not declared in this scope
   12 |   cout<<nick<<endl;
      |         ^~~~
Language: Java

public class Nickname {
    public static void main(String[] args) {
        String S = "takashi";
        System.out.println(S.substring(0, 3));
        S = "naohiro";
        System.out.println(S.substring(0, 3));
    }
}


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

import java.util.Scanner;

public class Name {
	public static void main(String[] args){
    Scanner scn = new Scanner(System.in);
	String Namae = scn;
	System.out.println(scn.substring(0,4));
    }
}

Compiler output:
Main.java:3: error: class Name is public, should be declared in a file named Name.java
public class Name {
       ^
Main.java:6: error: incompatible types: Scanner cannot be converted to String
	String Namae = scn;
	               ^
Main.java:7: error: cannot find symbol
	System.out.println(scn.substring(0,4));
	                      ^
  symbol:   method substring(int,int)
  location: variable scn of type Scanner
3 errors
Language: C++

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

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

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

int main()
{
	char name[20];
	char nick[20];

	scanf_s("%s", name, 20);

	strncpy(nick, name, 3);

	nick[3] = '\0';

	printf("%s\n", nick);

	return 0;
}

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

include<iostream>
include<string.h>
using namespace std;
int main()
{
  string name;
  cout<<"What's your name?"<<endl;
  cin>>name;
  string nick;
  for(int i=0;i<3;i++)
    nick[i]=name[i];
  return nick;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string name;
      |   ^~~~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |   ^~~~
a.cc:7:30: error: 'endl' was not declared in this scope
    7 |   cout<<"What's your name?"<<endl;
      |                              ^~~~
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>name;
      |   ^~~
a.cc:8:8: error: 'name' was not declared in this scope
    8 |   cin>>name;
      |        ^~~~
a.cc:9:9: error: expected ';' before 'nick'
    9 |   string nick;
      |         ^~~~~
      |         ;
a.cc:11:5: error: 'nick' was not declared in this scope
   11 |     nick[i]=name[i];
      |     ^~~~
a.cc:12:10: error: 'nick' was not declared in this scope
   12 |   return nick;
      |          ^~~~
Language: Java

import java.util.Scanner;

class main{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        for(int i = 0; i < 3; i++){
            nic[i] = scan.charAt(i);
            System.out.plint(nic[i]);
        }
        
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            nic[i] = scan.charAt(i);
            ^
  symbol:   variable nic
  location: class main
Main.java:8: error: cannot find symbol
            nic[i] = scan.charAt(i);
                         ^
  symbol:   method charAt(int)
  location: variable scan of type Scanner
Main.java:9: error: cannot find symbol
            System.out.plint(nic[i]);
                             ^
  symbol:   variable nic
  location: class main
3 errors
Language: C

#include<stdio.h>
int main(void)
{
	char str[21];
	char strl[4];
	for(i=0;i<20;i++){
		scanf("%c",&str[i]);
	}
	i=i++;
	str[i]=0;
	for(i=0;i<3;i++){
		strl[i]=str[i];
	}
	i=i++;
	strl[i]=0;
	printf("%s",strl);
	
	return 0;
}

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

#include <stdio.h>
signed main(){
 
 int kyori,hayasa,a,v,b,w,t;
 
 (void)scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);
 
 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}
#include <stdio.h>
int main(void){
 
 int kyori,hayasa,a,v,b,w,t;
 
 (void)scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);
 
 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}

Compiler output:
main.c:32:5: error: redefinition of 'main'
   32 | int main(void){
      |     ^~~~
main.c:2:8: note: previous definition of 'main' with type 'int()'
    2 | signed main(){
      |        ^~~~
Language: Java

import java.util.Scanner;
import java.lang.*;

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

    	//入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
	int A = scan.nextInt();	//Aのいる座標
	int B = scan.nextInt(); //Bがいる座標
	int T = scan.nextInt(); //秒数
	int V = scan.nextInt();	//Aの秒速
	int W = scan.nextInt();	//Bの秒速

	//AとBの位置関係により進む方向を場合分け
	if(A < B){　// ABの順でならんでいるとき
	   if(A + V * T <= B + W * T ){
	      System.out.println("Yes");
	   }else{
	      System.out.println("No");

	   }
	  }else if(A >B){ //BAの順で並んでいる時
	   if(A -(V * T) >= B -(W * T) ){
	      System.out.println("Yes");
	   }else{
	      System.out.println("No");
           }

	 /* }else if(A == B){　//両者が同一地点にいるとき
	   if (A + (V * T) <= B + (W * T)){
		System.out.println("Yes");
	   }else{
	      System.out.println("No");
           }
*/
	}

   }
}

Compiler output:
Main.java:17: error: illegal character: '\u3000'
	if(A < B){?// AB???????????
	          ^
1 error
Language: C

#include <stdio.h>
int main(void){
 
 int kyori,hayasa,a,v,b,w,t;
 
 (void)scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);
 
 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}
#include <stdio.h>
int main(void){
 
 int kyori,hayasa,a,v,b,w,t;
 
 (void)scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);
 
 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}

Compiler output:
main.c:32:5: error: redefinition of 'main'
   32 | int main(void){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>
int main(void){
 
 int kyori,hayasa,a,v,b,w,t;
 
 scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);
 
 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}
#include <stdio.h>
int main(void){
 
 int kyori,hayasa,a,v,b,w,t;
 
 (void)scanf("%d %d %d %d %d",&a,&v,&b,&w,&t);

 
if(a>=b){
    kyori=a-b;
    
}else{
    kyori=b-a;
}
 
if(v>=w){
    hayasa=v-w;    
}else{
    hayasa=w-v;   
}
 
if(kyori>hayasa*t){    
    printf("NO\n");   
}else{
    printf("YES\n");   
}
 
 return(0);
    
}
提出情報
提出日時	2020-06-13 22:22:13
問題

Compiler output:
main.c:32:5: error: redefinition of 'main'
   32 | int main(void){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void){
      |     ^~~~
main.c:61:1: error: unknown type name '\U000063d0\U000051fa\U000060c5\U00005831'
   61 | 提出情報
      | ^~~~~~~~
main.c:62:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   62 | 提出日時        2020-06-13 22:22:13
      |                 ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'erease'; did you mean 'erase'?
    6 |    cout << s.erease(2) << endl;
      |              ^~~~~~
      |              erase
Language: Java

import java.util.Scanner;
import java.lang.*;

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

    	//入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
	int A = scan.nextInt();	//Aのいる座標
	int B = scan.nextInt(); //Bがいる座標
	int T = scan.nextInt(); //秒数
	int V = scan.nextInt();	//Aの秒速
	int W = scan.nextInt();	//Bの秒速

	//AとBの位置関係
	if(A < B){
	   if(A + V * T <= B + W * T ){
	      System.out.println("Yes");
	   }else{
	      System.out.println("No");

	   }
	  }else if(A >B){
	   if(A -(V * T) >= B -(W * T) ){
	      System.out.println("Yes");
	   }else{
	      System.out.println("No");
           }

	  }else if(A = B){
	   if (A + (V * T) <= B + (W * T)){
		System.out.println("Yes");
	   }else{
	      System.out.println("No");
           }

	}

   }
}

Compiler output:
Main.java:31: error: incompatible types: int cannot be converted to boolean
	  }else if(A = B){
	             ^
1 error
Language: Java

import java.util.*;
import java.util.Random;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 名前の入力
		String s = sc.next();
                // 名前のサイズ（−3）を取得
                int sLength = s.length() - 3;
                // 文字列取得の開始位置を指定
                Random random = new Random(); 
                int start = random.nextInt(sLength); 
                // 開始位置から3文字取得
                String s1 = s.charAt(start);
                String s2 = s.charAt(start + 1);
                String s3 = s.charAt(start + 2);
		// 三文字結合して出力
		System.out.println(s1 + s2 + s3);
	}
}

Compiler output:
Main.java:14: error: incompatible types: char cannot be converted to String
                String s1 = s.charAt(start);
                                    ^
Main.java:15: error: incompatible types: char cannot be converted to String
                String s2 = s.charAt(start + 1);
                                    ^
Main.java:16: error: incompatible types: char cannot be converted to String
                String s3 = s.charAt(start + 2);
                                    ^
3 errors
Language: C++

#include<iostream>
using namespace std;
bool tagg(int A,int V,int B,int W,int T){
  while(T){
    if(A==B){
      return true;}
    else{
      A=A+V;
      B=B+W;
    }
    T--;
  }
  return false;
  }
  
int main(){
  int A,V;
  cin>>A>>V;
  int B,W;
  cin>>B>>W;
  int T;
  cin>>T;
  if(bool tagg(A,V,B,W,T))
    cout<<"YES";
  else
    cout<<"NO";

}
     


Compiler output:
a.cc: In function 'int main()':
a.cc:23:15: error: expected initializer before '(' token
   23 |   if(bool tagg(A,V,B,W,T))
      |               ^
a.cc:23:15: error: expected ')' before '(' token
   23 |   if(bool tagg(A,V,B,W,T))
      |     ~         ^
      |               )
Language: C++

#include<iostream>
using namespace std;
bool tagg(int A,int V,int B,int W,int T){
  while(T){
    if(A==B){
      return true;
    else{
      A=A+V;
      B=B+W;
    }
    T--;
  }
  return false;
  }
  
int main(){
  int A,V;
  cin>>A>>V;
  int B,W;
  cin>>B>>W;
  int T;
  cin>>T;
  if(bool tagg(A,V,B,W,T))
    cout<<"YES";
  else
    cout<<"NO";

}
     

Compiler output:
a.cc: In function 'bool tagg(int, int, int, int, int)':
a.cc:7:5: error: expected '}' before 'else'
    7 |     else{
      |     ^~~~
a.cc:5:13: note: to match this '{'
    5 |     if(A==B){
      |             ^
a.cc: In function 'int main()':
a.cc:23:15: error: expected initializer before '(' token
   23 |   if(bool tagg(A,V,B,W,T))
      |               ^
a.cc:23:15: error: expected ')' before '(' token
   23 |   if(bool tagg(A,V,B,W,T))
      |     ~         ^
      |               )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A;
  int B;
  int C;
  int D;
  int E;
  cin>>A>>B>>C>>D>>E;
  string S="NO";
  if((((A-B*E)==(C-D*E))||((A-B*E)<(C-D*E)))&&(((C+D*E)==(A+B*E))||((C+D*E)<(A+B*E))){
    S="YES";
  }
  cout<<S<<endl;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:86: error: expected ';' before '{' token
   11 |   if((((A-B*E)==(C-D*E))||((A-B*E)<(C-D*E)))&&(((C+D*E)==(A+B*E))||((C+D*E)<(A+B*E))){
      |                                                                                      ^
      |                                                                                      ;
a.cc:14:16: error: expected ')' before ';' token
   14 |   cout<<S<<endl;
      |                ^
      |                )
a.cc:11:5: note: to match this '('
   11 |   if((((A-B*E)==(C-D*E))||((A-B*E)<(C-D*E)))&&(((C+D*E)==(A+B*E))||((C+D*E)<(A+B*E))){
      |     ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A;
  int B;
  int C;
  int D;
  int E;
  cin>>A>>B>>C>>D>>E;
  string S="NO";
  if(((A-B*E)=<(C-D*E))&&((C+D*E)=<(A+B*E))){
    S="YES";
  }
  cout<<S<<endl;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected primary-expression before '<' token
   11 |   if(((A-B*E)=<(C-D*E))&&((C+D*E)=<(A+B*E))){
      |               ^
a.cc:11:35: error: expected primary-expression before '<' token
   11 |   if(((A-B*E)=<(C-D*E))&&((C+D*E)=<(A+B*E))){
      |                                   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int A;
  int B;
  int C;
  int D;
  int E;
  cin>>A>>B>>C>>D>>E;
  string S="NO";
  if((A-B*E=<C-D*E)&&(A+B*E=>C+D*E)){
    S="YES";
  }
  cout<<S<<endl;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '<' token
   11 |   if((A-B*E=<C-D*E)&&(A+B*E=>C+D*E)){
      |             ^
a.cc:11:29: error: expected primary-expression before '>' token
   11 |   if((A-B*E=<C-D*E)&&(A+B*E=>C+D*E)){
      |                             ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i));
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i));
            ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i));
                  ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i));
                        ^
  symbol:   variable i
  location: class Main
Main.java:7: error: cannot find symbol
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i));
                                                        ^
  symbol:   variable i
  location: class Main
4 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i);
    }
}

Compiler output:
Main.java:7: error: ')' or ',' expected
        for(i = 0;i < 3;i++)System.out.println(s.charAt(i);
                                                          ^
1 error
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
	char c[20];
	cin>>c;
	cout<<c[0]<<c[1]<<c[2];
}

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

#include <stdio.h>

int main(void)
{

    char s[21];
    scanf("%s",s);
 	s = s[3];
    printf("%s.3",s);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: assignment to expression with array type
    8 |         s = s[3];
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define  itn int
using ll=int64_t;
#define rep(i,n) for (int i = 0; i < (int) (n); i++)
using vi = vector<int>;
using vll = vector<ll>;
int main(){
string a;
  cin>>a;
cout<<a.erase(3):
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ';' before ':' token
   11 | cout<<a.erase(3):
      |                 ^
      |                 ;
Language: C++

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

int main() {
int64_t A,V,B,W,T;

cin >> A >> V >> B >> W >> T;

  A = A + V * T;
  B = B + W * T;
  
  if(A == B){
  cout << "YES" << endl;
  }
  
  else if(A < B){
  cout << "NO" << endl;
  }
 rep(i,T)
   else if(A - iV == B){
  cout << "YES" << endl;
  }
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:4: error: expected primary-expression before 'else'
   23 |    else if(A - iV == B){
      |    ^~~~
Language: C++

#include<bits/stdc+.h>
using namespace std;
int main()
{
  string str;
  cin>>str;
  cout<<str[0]<<str[1]<<str[2];
}
  
  

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

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

int main() {
  vector<string> vec(20);
  for(int i=0;i<20;i++){
    cin >> vec[i];
  }
  cout << vec[1] << vec[2] << vec[3] <<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:9:45: error: expected '}' at end of input
    9 |   cout << vec[1] << vec[2] << vec[3] <<endl;
      |                                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

class Name{
	public static void main(Strings[] args){
		Scanner sc = new Scanner(System.in);
		String S = sc.nextString();
		System.out.println(S.substring(-1,-1+3));
	
    }
}


Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(Strings[] args){
	                        ^
  symbol:   class Strings
  location: class Name
Main.java:6: error: cannot find symbol
		String S = sc.nextString();
		             ^
  symbol:   method nextString()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.Scanner;
import java.lang.*;

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

    	//入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int n = scan.nextInt();

	//n秒後にAがBを追い越す、または同地点にいるか
	if(a * n <= b * s ){
	   System.out.println("Yes");
	}else{
	   System.out.println("No");

	}
   }
}

Compiler output:
Main.java:15: error: cannot find symbol
	if(a * n <= b * s ){
	                ^
  symbol:   variable s
  location: class Main
1 error
Language: C++

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

int main() {
  vector<string> vec(20);
  for(i=0;i<20;i++){
    cin >> vec[i];
  }
  cout << vec[1] << vec[2] << vec[3] <<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<20;i++){
      |       ^
a.cc:9:45: error: expected '}' at end of input
    9 |   cout << vec[1] << vec[2] << vec[3] <<endl;
      |                                             ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  tranform(s.begin(),s.end(),s.begin(),::tolower);
  if(s.length()>=3 && s.length()<=20)
  {
  string sub=s.substr(1,3);
  cout<<sub;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'tranform' was not declared in this scope
    6 |   tranform(s.begin(),s.end(),s.begin(),::tolower);
      |   ^~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin>>s;
  string s1=tolower(s);
  if(s1.length()>=3 && s1.length()<=20)
  {
  string sub=s1.substr(1,3);
  cout<<sub;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: no matching function for call to 'tolower(std::string&)'
    7 |   string s1=tolower(s);
      |             ~~~~~~~^~~
In file included from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/locale_facets.h:2693:5: note: candidate: 'template<class _CharT> _CharT std::tolower(_CharT, const locale&)'
 2693 |     tolower(_CharT __c, const locale& __loc)
      |     ^~~~~~~
/usr/include/c++/14/bits/locale_facets.h:2693:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/14/cctype:42,
                 from /usr/include/c++/14/bits/localefwd.h:42,
                 from /usr/include/c++/14/ios:43:
/usr/include/ctype.h:122:12: note: candidate: 'int tolower(int)'
  122 | extern int tolower (int __c) __THROW;
      |            ^~~~~~~
/usr/include/ctype.h:122:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
  122 | extern int tolower (int __c) __THROW;
      |                     ~~~~^~~
Language: C

include <stdio.h>
#include <math.h>

int main(){
  int a,b,v,w,t;
  scanf("%d %d",&a,&v);
  scanf("%d %d",&b,&w);
  scanf("%d",&t);

  int flag=0;
  if(v>w){
    if(abs(a-b)<=(v-w)*t){
      flag=1;
    }
  }

  if(flag=0){
    printf("YES\n");
  }else{
    printf("NO\n");
  }
  return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%d %d",&a,&v);
      |   ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%d %d",&a,&v);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:8: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   12 |     if(abs(a-b)<=(v-w)*t){
      |        ^~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include <math.h>
  +++ |+#include <stdlib.h>
    3 | 
main.c:18:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |     printf("YES\n");
      |     ^~~~~~
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:18:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:18:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |     printf("NO\n");
      |     ^~~~~~
main.c:20:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
#include <string>
#include <random>
using namespace std;
std::random_device rnd;
int main() {
    string S;
    cin >> S;

    int number = rnd() % (S.size - 2);
    for (int i = number; i < number+3; i++) {
        cout << S.at(i);
    }
    cout << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |     int number = rnd() % (S.size - 2);
      |                           ~~^~~~
      |                                 ()
Language: Java

import java.util.*;

public class Nickname{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in); 
	String str = sc.nextLine();
    System.out.println(str.substring(0,3));  
  }      
}

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

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

int main() {
  string S;
  cin >> S;
  
  if(int i = 0; i < 3; i++) {
    cout << S[i];
  }
  cout << endl;
  
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before ';' token
    8 |   if(int i = 0; i < 3; i++) {
      |     ~                ^
      |                      )
a.cc:8:24: error: 'i' was not declared in this scope
    8 |   if(int i = 0; i < 3; i++) {
      |                        ^
Language: C++

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

int main()
{
	char a[20];
	scanf_s("%s",a,20);
	char b[4];
	strncpy(b, a, 3);
	b[3] = '\0';
	printf("%s", &b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%s",a,20);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <string>
#include <random>
using namespace std;
std::random_device rnd;
int main() {
    string S;
  	int number[3]={0,0,0};
    cin >> S;

  	while((number[0]!=number[1])&&(number[1]!=number[2])&&(number[2]!=number[0])&&){
    for(int i=0;i<3;i++){
    	number[i]=rnd()%10;
    }
    }
  	for(int i=0;i<3;i++){
    	cout << S.at(number[i]);
    }
  cout << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:87: error: expected primary-expression before ')' token
   11 |         while((number[0]!=number[1])&&(number[1]!=number[2])&&(number[2]!=number[0])&&){
      |                                                                                       ^
Language: C++

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

int main()
{
	char a[21];
	scanf_s("%s",a,21);
	char b[4];
	strncpy(b, a, 3);
	b[3] = '\0';
	printf("%s", &b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%s",a,21);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

signed main(){

char s[21];

scanf("%s",s);

  do{

printf("%s\n",s[i]);
i++;
}while(s[i]!='\0');




return(0);



}


Compiler output:
main.c: In function 'main':
main.c:11:17: error: 'i' undeclared (first use in this function)
   11 | printf("%s\n",s[i]);
      |                 ^
main.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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


int main() {
  string S;
  cin>>S;
  string &t=S;
   string a=t.at(0);
    string b=t.at(1);
    string c=t.at(2);
  cout<<a<<b<<c<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: 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
    9 |    string a=t.at(0);
      |             ~~~~^~~
a.cc:10:18: 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
   10 |     string b=t.at(1);
      |              ~~~~^~~
a.cc:11:18: 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
   11 |     string c=t.at(2);
      |              ~~~~^~~
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
 
int main(){
     int A, B, V, W, T;
     cin >> A >> B >> V >> W >> T;
     if((B - A) / (V - W) <= T){
          cout << "YES" << endl;
     }
     else{
          cout << "NO" << endl;
     }


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

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

int main() {
  string S;
  cin>>S;
   string a=t.at(0);
    string b=t.at(1);
    string c=t.at(2);
  cout<<a<<b<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 't' was not declared in this scope
    8 |    string a=t.at(0);
      |             ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
 
int main(){
     int A, B, V, W, T;
     cin >> A >> B >> V >> W >> T;
     if((B - A) / (V - W) <= T){
          cout << "YES" << endl;
     }
     else{
          cout << "NO" << else;
     }


Compiler output:
a.cc: In function 'int main()':
a.cc:27:27: error: expected primary-expression before 'else'
   27 |           cout << "NO" << else;
      |                           ^~~~
a.cc:28:7: error: expected '}' at end of input
   28 |      }
      |       ^
a.cc:20:11: note: to match this '{'
   20 | int main(){
      |           ^
Language: Java

import java.util.Scanner;
import java.lang.*;

public class Main{
 
	public static void main(String args[]){
      
    	//入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      
      	String name = str;
          System.out.printLn(name.substring(0,3));    
    }
}	

Compiler output:
Main.java:13: error: cannot find symbol
          System.out.printLn(name.substring(0,3));    
                    ^
  symbol:   method printLn(String)
  location: variable out of type PrintStream
1 error
Language: C++

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

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


import java.util.*;
 
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
			String strS = sc.next();
			String outputS = strS.substring(0,2);
      		System.out.println(outputS);
      

    }

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

#include<bits/stdc++.h>

using namespace std;

int main()
{
    char s[20];
    cin>>s;
    for(int i=0;i<3;i++)
    printf("%c",a[i]);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'a' was not declared in this scope
   10 |     printf("%c",a[i]);
      |                 ^
Language: C

#include<string.h>
int main()
{
  char str[20];
  int i,j;
  scanf("%s",str);
  j=strlen(S);
  for(i=0:i<j;i++)
  {
    if(str[i]>=65&&str[i]<=90)
      str[i]=str[i]+32;
  }
  for(i=0;i<3;i++)
  {
    printf("%s",str[i]);
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |   scanf("%s",str);
      |   ^~~~~
main.c:2:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    1 | #include<string.h>
  +++ |+#include <stdio.h>
    2 | int main()
main.c:6:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |   scanf("%s",str);
      |   ^~~~~
main.c:6:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:12: error: 'S' undeclared (first use in this function)
    7 |   j=strlen(S);
      |            ^
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:10: error: expected ';' before ':' token
    8 |   for(i=0:i<j;i++)
      |          ^
      |          ;
main.c:8:18: error: expected ';' before ')' token
    8 |   for(i=0:i<j;i++)
      |                  ^
      |                  ;
main.c:15:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |     printf("%s",str[i]);
      |     ^~~~~~
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.Scanner;
import java.lang.*;

public class Main{
 
	public static void main(String args[]){
      
    	入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      
      	String name = str;
          System.out.printLn(name.substring(0,3));    
    }
}	

Compiler output:
Main.java:9: error: ';' expected
      	Scanner scan = new Scanner(System.in);
      	       ^
1 error
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char str[];
  int i,j;
  scanf("%s",str);
  j=strlen(S);
  for(i=0:i<j;i++)
  {
    if(str[i]>=65&&str[i]<=90)
      str[i]=str[i]+32;
  }
  for(i=0;i<3;i++)
  {
    printf("%s",str[i]);
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 'str'
    5 |   char str[];
      |        ^~~
main.c:8:12: error: 'S' undeclared (first use in this function)
    8 |   j=strlen(S);
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:10: error: expected ';' before ':' token
    9 |   for(i=0:i<j;i++)
      |          ^
      |          ;
main.c:9:18: error: expected ';' before ')' token
    9 |   for(i=0:i<j;i++)
      |                  ^
      |                  ;
Language: Java

import java.util.Scanner;
import java.lang.*;

public class Main{
 
	public static void main(String args[]){
      
    	入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      
      	String name = str
          System.out.printLn(name.substring(0,3);    
    }
}
                             

Compiler output:
Main.java:9: error: ';' expected
      	Scanner scan = new Scanner(System.in);
      	       ^
Main.java:12: error: ';' expected
      	String name = str
      	                 ^
Main.java:13: error: ')' or ',' expected
          System.out.printLn(name.substring(0,3);    
                                                ^
3 errors
Language: C++

// clang-format off
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using G = vector<vector<ll>>;
#define G(i, j) i, vector<ll>(j)
#define Gv(i, j, k) i, vector<ll>(j, k)
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
#define rrep(i,n) for(ll i=n-1; i>=0; --i)
#define rrep1(i,n) for(ll i=n; i>0; --i)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define SORT_DESC(x) sort((x).rbegin(),(x).rend())
#define pb push_back
#define mp make_pair
#define coutl cout<<fixed<<setprecision(10)
#define ANS(ans) cout<<ans<<endl
#define END(ans) ANS(ans); return
const ll LINF = (1LL << 62) - 1;
const int INF = (1 << 30) - 1;
template<class T>inline bool chmax(T &a, const T &b){if (a<b){a=b;return 1;}return 0;}
template<class T>inline bool chmin(T &a, const T &b){if (b<a){a=b;return 1;}return 0;}
// clang-format on

void solve(std::string S){
  ANS(S.substr(0, 3));
}

// clang-format off
int main() {
  std::string S;
  std::cin >> S;
  solve(S);
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

#include <iostream>
 
int main() {
  char str[128];
  cin >> str;
  cout << str[0] << str[1] << str[2] << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> str;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << str[0] << str[1] << str[2] << std::endl;
      |   ^~~~
      |   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<bits/stdc++.h>
using namespace std;
int main(){
	char a[25];
	gets(a);
	for(int i=0;i<=2;i++) cout<<a[i]; 
	return 0;
} 

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
 
int main(){
     int A, B, V, W, T;
     cin >> A >> B >> V >> W >> T;
     if((B-A)/(V-W) <= T){
          cout << "YES" << endl;
     }
     else{
          cout << "NO" << endl;
     }


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

#include<stdio.h>
#include<string.h>
int main()
{
  char S[20];
  int i;
  scanf("%s",S);
  strlwr(S);
  for(i=0;i<3;i++)
  {
    printf("%s",S[i]);
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'strlwr'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    8 |   strlwr(S);
      |   ^~~~~~
      |   strlen
Language: C++

include<iostream>
using namespace std;
int main(){
  string st, ans;
  cin << st;
  cout >> st[0];
  cout >> st[1];
  cout >> st[2];
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string st, ans;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin << st;
      |   ^~~
a.cc:5:10: error: 'st' was not declared in this scope; did you mean 'std'?
    5 |   cin << st;
      |          ^~
      |          std
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout >> st[0];
      |   ^~~~
Language: C++

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

int main(){
  string s;
  cin >> s; 
  cout << s.at(0) << s.at(1) << s.at(2) << enbl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:44: error: 'enbl' was not declared in this scope
    7 |   cout << s.at(0) << s.at(1) << s.at(2) << enbl;
      |                                            ^~~~
Language: C++

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

int main(){
  string s;
  cin >> s; 
  cout << s.at(0) << s.at(1) << s.at(2) << enbl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'mamespace'
    2 | using mamespace std;
      |       ^~~~~~~~~
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/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;
      |   ^~~
      |   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:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << s.at(0) << s.at(1) << s.at(2) << enbl;
      |   ^~~~
      |   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:44: error: 'enbl' was not declared in this scope
    7 |   cout << s.at(0) << s.at(1) << s.at(2) << enbl;
      |                                            ^~~~
Language: Java

import java.util.Scanner;

	public static void main(String args[]){
      
    	入力するためのオブジェクトを生成
      	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      
      	String name = str
          System.out.printLn(name.substring(0,3);    
    }

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)
Main.java:6: error: ';' expected
      	Scanner scan = new Scanner(System.in);
      	       ^
Main.java:9: error: ';' expected
      	String name = str
      	                 ^
Main.java:10: error: ')' or ',' expected
          System.out.printLn(name.substring(0,3);    
                                                ^
4 errors
Language: C

#include<stdio.h>
int main()
{
  char s[20];
  scanf("%s",s);
  for(i=0;i<3;i++)
  {
    printf("%c",s[i]);
  }
  return 0;
}

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

#include<stdio.h>

signed main(){

int i=0;
char s[21];

do{

scanf("%s",s);


}while(s[i]!='\0');


printf("%s%s%s",s[0],s[1],s[2])

return(0);



}

Compiler output:
main.c: In function 'main':
main.c:16:32: error: expected ';' before 'return'
   16 | printf("%s%s%s",s[0],s[1],s[2])
      |                                ^
      |                                ;
   17 | 
   18 | return(0);
      | ~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
   string S;
   cin >> S;
   S.resize(3);
   cout << S << "\n"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 |    cout << S << "\n"
      |                     ^
      |                     ;
   10 | }
      | ~