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

#include <iostream>

int main() {
  char str[128];
  cin >> str;
  cout << str[0] << str[1] << str[2];
  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::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 mamespace std;

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

Compiler output:
a.cc:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008bits
    1 | #include〈bits/stdc++.h〉
      |  ^~~~~~~~~~~~~
a.cc:1:23: error: extended character 〉 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |                       ^
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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
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
    7 |   cout << s.at(0) << s.at(1) << s.at(2) << enbl;
      |   ^~~~
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

inport java.util.*;
class Main{
	public static void main(String[] args){
    	String sc = new Scanner(System.in);
      	System.out.println(sc.substring(0,3))
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.*;
^
Main.java:5: error: ';' expected
      	System.out.println(sc.substring(0,3))
      	                                     ^
2 errors
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
  char S[];
  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:5:8: error: array size missing in 'S'
    5 |   char S[];
      |        ^
main.c:8:3: error: implicit declaration of function 'strlwr'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    8 |   strlwr(S);
      |   ^~~~~~
      |   strlen
Language: C

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

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

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

int main(){
  string S;
  cin >> S;
  cout << S.substr(0,3) << endi;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 'endi' was not declared in this scope
    7 |   cout << S.substr(0,3) << endi;
      |                            ^~~~
Language: C

#include<studio.h>
#include<string.h>

int main(){

  char s[30];
  
  scanf("%s",s);
  int i;
  for(i=0;i<3;i++)printf("%c",&s[i]);
  printf("¥n");
  
  
  return 0;
}

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

import java.util.*;

public class Main {

	public static void main(String[] args) {

		// 入力
		Scanner sc = new Scanner(System.in);
		String tmp = sc.next();

		System.out.println(tmp.substring(0, 3));

	}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main {
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main {
      |              ^~~~
Language: C

#include<studio.h>
#include<string.h>

int main(){

  char s[30];
  
  scanf("%s",s);
  int i;
  for(i=0;i<3;i++)printf("%c",s[i]);
  printf("¥n");
  
  
  return 0;
}

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

#include<stdio.h>

int main(void){
int i;
scanf("%s",c);

printf("%c%c%c",c[0],c[1],c[2]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: 'c' undeclared (first use in this function)
    5 | scanf("%s",c);
      |            ^
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

typedef long long ll;
typedef long double ld;
// use unique(x) - removec consecutive items, returns vec.begin() + number of items
// for vector: sort(all(vec)); vec.erase(unique(all(vec)), vec.end());
// use iota(all(vec), 0) for filling a vector with 0,1,2...
// use fill(all(vec), 1) for filling a vector with 1,1,1...
// use rotate(vec.begin(), vec.begin() + 1, vec.end()) to rotate a vector | middle arg becomes first
// use merge(all(vec1), all(vec2), vec3.begin()) to merge 2 vectors, use vec3.resize(vec1.size() + vec2.size()) first
// ll pos = partition_point(all(vec), pred) - vec.begin(); bool pred(ll a){return a<3};
// print number in binary -> cout << bitset<20>(n);

int main(){
	string s;cin>>s
	cout<<s[0]<<s[1]<<s[2]<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected ';' before 'cout'
   17 |         string s;cin>>s
      |                        ^
      |                        ;
   18 |         cout<<s[0]<<s[1]<<s[2]<<endl;
      |         ~~~~
Language: C

#include<stdio.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:7:3: error: implicit declaration of function 'strlwr' [-Wimplicit-function-declaration]
    7 |   strlwr(S);
      |   ^~~~~~
Language: C

#include<stdio.h>

int main(void){
int i;
scanf("%s,c");

printf("%c%c%c",c[0],c[1],c[2]);

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'c' undeclared (first use in this function)
    7 | printf("%c%c%c",c[0],c[1],c[2]);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{
  char S[];
  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:4:8: error: array size missing in 'S'
    4 |   char S[];
      |        ^
main.c:7:3: error: implicit declaration of function 'strlwr' [-Wimplicit-function-declaration]
    7 |   strlwr(S);
      |   ^~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main() {
  string S;
  cin>>S;
  cout<<S.at(0)<<S.at(1).S.at(2)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: request for member 'S' in 'S.std::__cxx11::basic_string<char>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 |   cout<<S.at(0)<<S.at(1).S.at(2)<<endl;
      |                          ^
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) endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:38: error: expected ';' before 'endl'
    8 | cout << S.at(0) << S.at(1) << S.at(2) endl;
      |                                      ^~~~~
      |                                      ;
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:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈bits/stdc.h++〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008bits
    1 | #include〈bits/stdc.h++〉
      |  ^~~~~~~~~~~~~
a.cc:1:24: error: extended character 〉 is not valid in an identifier
    1 | #include〈bits/stdc.h++〉
      |                        ^
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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
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
    7 |   cout << s.at(0) << s.at(1) << s.at(2) << enbl;
      |   ^~~~
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 namespace std;

int main() {
  int str;
  cin >> str;
  cout << str.at(0)+str.at(1)+str.at(2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: request for member 'at' in 'str', which is of non-class type 'int'
    7 |   cout << str.at(0)+str.at(1)+str.at(2) << endl;
      |               ^~
a.cc:7:25: error: request for member 'at' in 'str', which is of non-class type 'int'
    7 |   cout << str.at(0)+str.at(1)+str.at(2) << endl;
      |                         ^~
a.cc:7:35: error: request for member 'at' in 'str', which is of non-class type 'int'
    7 |   cout << str.at(0)+str.at(1)+str.at(2) << endl;
      |                                   ^~
Language: C++

#include <iostream>
#include string
using namespace std;
int main();
	char x;
	for (int i = 0; i < 3; i ++) {
      cin >> x;
      cout << x;
	}
}


Compiler output:
a.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include string
      |          ^~~~~~
a.cc:6:9: error: expected unqualified-id before 'for'
    6 |         for (int i = 0; i < 3; i ++) {
      |         ^~~
a.cc:6:25: error: 'i' does not name a type
    6 |         for (int i = 0; i < 3; i ++) {
      |                         ^
a.cc:6:32: error: 'i' does not name a type
    6 |         for (int i = 0; i < 3; i ++) {
      |                                ^
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C

#include<stdio.h>

int main(void){
int i;
scanf("%s,c");

printf("%c%c%c",c[0],c[1],c[2]);

return 0;


Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'c' undeclared (first use in this function)
    7 | printf("%c%c%c",c[0],c[1],c[2]);
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:1: error: expected declaration or statement at end of input
    9 | return 0;
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    cin >> s;
    cout << s[0] << s[1] << s[2]
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before 'return'
    9 |     cout << s[0] << s[1] << s[2]
      |                                 ^
      |                                 ;
   10 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include string
using namespace std;
int main();
	char x;
	for (i = 0; i < 3; i ++) {
      cin >> x;
      cout << x;
	}
}


Compiler output:
a.cc:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include string
      |          ^~~~~~
a.cc:6:9: error: expected unqualified-id before 'for'
    6 |         for (i = 0; i < 3; i ++) {
      |         ^~~
a.cc:6:21: error: 'i' does not name a type
    6 |         for (i = 0; i < 3; i ++) {
      |                     ^
a.cc:6:28: error: 'i' does not name a type
    6 |         for (i = 0; i < 3; i ++) {
      |                            ^
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
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)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: request for member 'S' in 'S.std::__cxx11::basic_string<char>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 |   cout<<S.at(0)<<S.at(1).S.at(2)<<endl;
      |                          ^
Language: C++

#include <vector>
#include <algorithm>
#include<stack>
#include<string>
using namespace std;
int main(){
	string s;
	cin>>s;
	string z=s[0]+s[1]+s[2];
	cout<<z;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin>>s;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<string>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:9:27: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |         string z=s[0]+s[1]+s[2];
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<z;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iosrtream>
#include<string>
using namespace std;
int main(){
  string S;
  cin >> S;
  cout << S.at(0) << S.at(1) << S.at(2) << endl;
}

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

#include<bits/stdc++.h>  
using namespace std;
int main()
{
  string s;
  cin>>s;
  string ans=s.substring(0,3);
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
    7 |   string ans=s.substring(0,3);
      |                ^~~~~~~~~
      |                substr
Language: C++

#include<iostream>
using namespace std;

void main() {
	char name1;
	cin >> name1;
	char* name;
	*name = name1;
	for (int i = 0; i < 3; i++) {
		cout << *(name + i);
	}
}

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

#include<bits/stdc++.h> 
using namespace std;
int main() 
{
	string s;
	cin>>s;
	for(int i=0;i<3;i++)
	cout<<s[i];
	return 0;
}

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 c;
int i;
scanf("%s,c");

printf("%c%c%c",c[0],c[1],c[2]);

return 0;


Compiler output:
main.c: In function 'main':
main.c:8:18: error: subscripted value is neither array nor pointer nor vector
    8 | printf("%c%c%c",c[0],c[1],c[2]);
      |                  ^
main.c:8:23: error: subscripted value is neither array nor pointer nor vector
    8 | printf("%c%c%c",c[0],c[1],c[2]);
      |                       ^
main.c:8:28: error: subscripted value is neither array nor pointer nor vector
    8 | printf("%c%c%c",c[0],c[1],c[2]);
      |                            ^
main.c:10:1: error: expected declaration or statement at end of input
   10 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>
using namespace std;

int main(int argc, char** argv)
{
	putchar(getchar());
	putchar(getchar());
	putchar(getchar());
	return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C++

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

int main() {
  int strS;
  cin >> strS;
  cout << strS.at(0)+strS.at(1)+strS.at(2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: request for member 'at' in 'strS', which is of non-class type 'int'
    7 |   cout << strS.at(0)+strS.at(1)+strS.at(2) << endl;
      |                ^~
a.cc:7:27: error: request for member 'at' in 'strS', which is of non-class type 'int'
    7 |   cout << strS.at(0)+strS.at(1)+strS.at(2) << endl;
      |                           ^~
a.cc:7:38: error: request for member 'at' in 'strS', which is of non-class type 'int'
    7 |   cout << strS.at(0)+strS.at(1)+strS.at(2) << endl;
      |                                      ^~
Language: Java

//package ARC12020;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.*;
import java.lang.*;
import java.util.*;

public class A {

	public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        Scanner sc =new Scanner(System.in);
        String s=sc.next();
        
        System.out.println(s.substring(0,3));
        
	
	
	
	}

}


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

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

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

#include <bits/stdc++.h>
using namespace std;
#define int         long long
#define pb          push_back
#define pii         pair<int,int>
#define vi          vector<int>
#define vii         vector<pii>
#define mi          map<int,int>
#define mii         map<pii,int>
#define all(a)      (a).begin(),(a).end()
#define x           first
#define y           second
#define sz(x)       (int)x.size()
#define endl        '\n'
#define sd(t)       scanf("%d",&(t))
#define rep(i,a,b)  for(int i=a;i<b;i++)
#define hii         cout << "hii" << endl
#define okay        cout << "okay" << endl
#define hey         cout << "hey" << endl
const int INF = 1e16;
const int MOD = 998244353;
const ld PI = 3.14159265359;
const int mod = 1e9+7;
inline int mul(int a, int b, int m = mod) { return (a * b) % m; }
inline int add(int a, int b, int m = mod) { return (a + b) % m; }
inline int sub(int a, int b, int m = mod) { return (a - b + m) % m; }

const int N = 2e5+5;

void solve()
{
    string s;
    cin >> s;
    string ans = s.substr(0, 3);

    cout << ans << endl;
}                            

int32_t main(){

    int t = 1;
    // cin>> t;
    for(int i=1; i<=t; i++){
        // cout << "Case #" << i << ": ";
        solve();
    }
}

Compiler output:
a.cc:22:7: error: 'ld' does not name a type; did you mean 'sd'?
   22 | const ld PI = 3.14159265359;
      |       ^~
      |       sd
Language: C++

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

int main() {
  string str;
  cin >> str;
  ans = str.at(0) +str.at(1) + str.at(2);

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = str.at(0) +str.at(1) + str.at(2);
      |   ^~~
      |   abs
Language: C++

//Weakness disgust me
#include<bits/stdc++.h>                   
#pragma GCC optimize("O3")
#define rep(i, n)    for(int i = 0; i < (n); ++i)
#define repA(i, a, n)  for(int i = a; i < (n); ++i)
#define repB(i, a, n)  for(int i = a; i <=(n); ++i)
#define repD(i, a, n)  for(int i = a; i >= (n); --i)
#define vec(i, a)  for( auto i=a.begin();i != a.end(); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
#define fill(a)  memset(a, 0, sizeof (a))
#define time cout<<"\nTime Elapsed: " << 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
#define fst first
#define snd second
#define mp make_pair
#define pb push_back
#define PI 3.14159265358979
typedef long double ld;
typedef long long ll;
typedef std::pair<ll, ll> pii;
typedef std::vector<ll> vi;

const ll MOD = 1e9 + 7;
using namespace std;
ll n_bits(ll n ) { ll x= __builtin_popcount(n) ;return x ;}
#define in  freopen("input.txt","r",stdin);
#define out freopen("output.txt","w",stdout);
#define dark_lord in out 
#define fast  ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int main()
{    
    #ifndef ONLINE_JUDGE
    dark_lord
    #endif
    fast
    ll t=1;
    cin>>t;
    while(t--)
    {    
    	string s,ans;
    	cin>>s;
    	ans=s.substring(0,3)
    	cout<<s;

    }


    #ifndef ONLINE_JUDGE
	time
	#endif
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   43 |         ans=s.substring(0,3)
      |               ^~~~~~~~~
      |               substr
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
    6 |         cout<<s.substr(s,3);
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
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;
  
  char a = S.at(0);
  char b = S.at(1);
  char c = S.at(2);
  
  cout << abc <<endl;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
pair<ll,ll>p[1000];
int main(){
	char a[100];
	gets(a);
	cout<<a[0]<<a[1]<<a[2];
}

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

#include<iostream>
using namespace std;

void main() {
	char* name;
	cin >> *name;
	for (int i = 0; i < 3; i++) {
		cout << *(name + i);
	}
}

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

#include<string>
#include<iostream>
using namespace std;
int main(){
  string s;
   getline(cin, str);
  cout<<s.substr(0, 4);
  
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected unqualified-id before '[' token
    6 |   cout << S.[0] << S.[1] << S.[2] << endl;
      |             ^
a.cc:6:22: error: expected unqualified-id before '[' token
    6 |   cout << S.[0] << S.[1] << S.[2] << endl;
      |                      ^
a.cc:6:31: error: expected unqualified-id before '[' token
    6 |   cout << S.[0] << S.[1] << S.[2] << endl;
      |                               ^
Language: C++

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

int main(){
  string s;
  cin >> s;
  s = s[0] + s[1] + s[2];
  cout << s << endl;
}

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

#include <stdio.h>
int main(void){
  char str[30]
  scanf("%s",str);
  print("%c%c%c",str[0],str[1],str[2]);
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |   scanf("%s",str);
      |   ^~~~~
main.c:4:14: error: 'str' undeclared (first use in this function)
    4 |   scanf("%s",str);
      |              ^~~
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   print("%c%c%c",str[0],str[1],str[2]);
      |   ^~~~~
      |   printf
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int         long long
#define pb          push_back
#define pii         pair<int,int>
#define vi          vector<int>
#define vii         vector<pii>
#define mi          map<int,int>
#define mii         map<pii,int>
#define all(a)      (a).begin(),(a).end()
#define x           first
#define y           second
#define sz(x)       (int)x.size()
#define endl        '\n'
#define sd(t)       scanf("%d",&(t))
#define rep(i,a,b)  for(int i=a;i<b;i++)
#define hii         cout << "hii" << endl
#define okay        cout << "okay" << endl
#define hey         cout << "hey" << endl
const int INF = 1e16;
const int MOD = 998244353;
const ld PI = 3.14159265359;
const int mod = 1e9+7;

void fast()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
} 

inline int mul(int a, int b, int m = mod) { return (a * b) % m; }
inline int add(int a, int b, int m = mod) { return (a + b) % m; }
inline int sub(int a, int b, int m = mod) { return (a - b + m) % m; }

const int N = 2e5+5;

void solve()
{
    string s;
    cin >> s;
    string ans = s.substr(0, 3);

    cout << ans << endl;
}                            

int32_t main(){
    fast();
    int t = 1;
    // cin>> t;
    for(int i=1; i<=t; i++){
        // cout << "Case #" << i << ": ";
        solve();
    }
 
}

Compiler output:
a.cc:22:7: error: 'ld' does not name a type; did you mean 'sd'?
   22 | const ld PI = 3.14159265359;
      |       ^~
      |       sd
Language: C++

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

int main()
{
  string s;
  cin>>s;
  cout<<s.substr(0,3)
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,l;
  string s;
  cin>>s;
  l=s.length()
    for(i=0;i<3;i++)
      cout<<s[i];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'for'
    8 |   l=s.length()
      |               ^
      |               ;
    9 |     for(i=0;i<3;i++)
      |     ~~~        
a.cc:9:20: error: expected ';' before ')' token
    9 |     for(i=0;i<3;i++)
      |                    ^
      |                    ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define int ll
#define tests int t;cin>>t;while(t--)
void start()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
#endif
}
void solve()
{
	string s;
	cin>>s;
	cout<<(s.sunstr(0,3))<<"\n";
}
signed main()
{
	start();
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:20:18: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sunstr'; did you mean 'substr'?
   20 |         cout<<(s.sunstr(0,3))<<"\n";
      |                  ^~~~~~
      |                  substr
Language: C

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
using namespace std;
int main(){
 char s[21];
 scanf("%s",s);
  
 printf("%c%c%c\n",s[0],s[1],s[2]);
  
return 0;}


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

#include <bits/stdc++.h> //全てのヘッダファイルをインクルード

//ループ
#define REP(i, n) for(int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for(int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for(int i = m; i < n; i++) //最初の数値を指定したループ

//型名省略
typedef long long ll;
//配列要素数
static const int MAX = 200000;
//値
static const ll MX = 1e18;

using namespace std;

#include "./lib/generic/search.h"

#define M 1064527

int main(){
    string s;
    cin >> s;
    
    cout << s.substr(0, 3) << endl;

    return 0;
}

Compiler output:
a.cc:17:10: fatal error: ./lib/generic/search.h: No such file or directory
   17 | #include "./lib/generic/search.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<algorithm>
#include<bitset>
#include<cmath>
#include<complex>
#include<cstdlib>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<set>
#include<string>
#include<utility>
#include<vector>

using namespace std;

#define ll long long
#define pal pair<long,long>
#define pad pair<double,double>
#define PB push_back
#define MP make_pair
#define F first
#define S second

const ll MOD = 1e9+7;
const ll INF = 1e18;
const double EPS = 1e-8;

long long pow(long long x, long long n) {
    long long ret = 1;
    while (n > 0) {
        if (n & 1) ret = ret * x % MOD;
        x = x * x % MOD;
        n >>= 1;
    }
    return ret;
}

template<typename T,typename U>
bool chmax(T& max, const U& x){
	if(max<x){
		max = x;
		return true;
	}
	return false;
}

template<typename T,typename U>
bool chmin(T& min, const U& x){
	if(min>x){
		min = x;
		return true;
	}
	return false;
}
int main(){
    string s;
    cin >> s;
    cout << s.substr(0,3); << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:28: error: expected primary-expression before '<<' token
   59 |     cout << s.substr(0,3); << endl;
      |                            ^~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)  for(ll i=0; i<n; i++)
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF 1e9
using ll = long long;
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main(){
  string s; cin >> s;
  cout << s.substr(s,3);
  cout << "\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   13 |   cout << s.substr(s,3);
      |                    ^
      |                    |
      |                    std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/string:54,
                 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/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
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)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: request for member 'S' in 'S.std::__cxx11::basic_string<char>::at(1)', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
    7 |   cout<<S.at(0)<<S.at(1).S.at(2)<<endl;
      |                          ^
Language: Java

import java.util.*;
public class Main3 {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        String s = sc.next();
        System.out.println(s.substring(0,3));
    }
}

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

#include <bits/stdc++.h>
using namespace std;
#define int         long long
#define pb          push_back
#define pii         pair<int,int>
#define vi          vector<int>
#define vii         vector<pii>
#define mi          map<int,int>
#define mii         map<pii,int>
#define all(a)      (a).begin(),(a).end()
#define x           first
#define y           second
#define sz(x)       (int)x.size()
#define endl        '\n'
#define sd(t)       scanf("%d",&(t))
#define rep(i,a,b)  for(int i=a;i<b;i++)
#define hii         cout << "hii" << endl
#define okay        cout << "okay" << endl
#define hey         cout << "hey" << endl
const int INF = 1e16;
const int MOD = 998244353;
const ld PI = 3.14159265359;
const int mod = 1e9+7;


template <class T> ostream& operator << (ostream &os, const vector<T> &v) { for (T i : v) os << i << ' '; return os; }
template <class T> ostream& operator << (ostream &os, const set<T> &v) { for (T i : v) os << i << ' '; return os; }
template <class T, class S> ostream& operator << (ostream &os, const pair<T, S> &v) { os << v.x << ' ' << v.y; return os; }
template <class T, class S> ostream& operator << (ostream &os, const unordered_map<T, S> &v) { for (auto i : v) os << '(' << i.x << "=>" << i.y << ')' << ' '; return os; } 
 
 
#ifndef ONLINE_JUDGE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
    template <class Arg1> void __f(const char* name, Arg1&& arg1) { cerr << name << " : " << arg1 << endl; }
    template <class Arg1, class... Args>
    void __f(const char* names, Arg1&& arg1, Args&&... args) {
        const char* sep = strchr(names + 1, ',');
        cerr.write(names, sep - names) << " : " << arg1 << "  ";
        __f(sep + 1, args...);
    }
#else
#define trace(...) 
#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
#pragma GCC target("avx2,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define _CRT_SECURE_NO_WARNINGS
#endif // ifndef ONLINE_JUDGE


void fast()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("jjj.txt", "w", stdout);
    #endif
} 

inline int mul(int a, int b, int m = mod) { return (a * b) % m; }
inline int add(int a, int b, int m = mod) { return (a + b) % m; }
inline int sub(int a, int b, int m = mod) { return (a - b + m) % m; }

const int N = 2e5+5;

void solve()
{
    string s;
    cin >> s;
    string ans = s.substr(0, 3);

    cout << ans << endl;
}                            

int32_t main(){
    fast();
    int t = 1;
    // cin>> t;
    for(int i=1; i<=t; i++){
        // cout << "Case #" << i << ": ";
        solve();
    }
}

Compiler output:
a.cc:22:7: error: 'ld' does not name a type; did you mean 'sd'?
   22 | const ld PI = 3.14159265359;
      |       ^~
      |       sd
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:7: error: ')' or ',' expected
	System.out.println(s.substring(0,3);
	                                   ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// スペース区切りの整数の入力
		String name = sc.nextString();
        System.out.println(name.subString(0,2));
}
}

Compiler output:
Main.java:6: error: cannot find symbol
		String name = sc.nextString();
		                ^
  symbol:   method nextString()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
        System.out.println(name.subString(0,2));
                               ^
  symbol:   method subString(int,int)
  location: variable name of type String
2 errors
Language: C++

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

int main(){
    string a;
    cin >> a;
    cout << a.at(0) << a.out(1) << a.out(2) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'out'
    7 |     cout << a.at(0) << a.out(1) << a.out(2) <<endl;
      |                          ^~~
a.cc:7:38: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'out'
    7 |     cout << a.at(0) << a.out(1) << a.out(2) <<endl;
      |                                      ^~~
Language: C++

//raja1999

//#pragma comment(linker, "/stack:200000000")
//#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,avx,avx2")

#include <bits/stdc++.h>
#include <vector>
#include <set>
#include <map>
#include <string> 
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <utility>
#include <algorithm>
#include <cmath>
#include <queue>
#include <stack>
#include <iomanip> 
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp> 
//setbase - cout << setbase (16)a; cout << 100 << endl; Prints 64
//setfill -   cout << setfill ('x') << setw (5); cout << 77 <<endl;prints xxx77
//setprecision - cout << setprecision (14) << f << endl; Prints x.xxxx
//cout.precision(x)  cout<<fixed<<val;  // prints x digits after decimal in val

using namespace std;
using namespace __gnu_pbds;
#define f(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) f(i,0,n)
#define fd(i,a,b) for(i=a;i>=b;i--)
#define pb push_back
#define mp make_pair
#define vi vector< int >
#define vl vector< ll >
#define ss second
#define ff first
#define ll long long
#define pii pair< int,int >
#define pll pair< ll,ll >
#define sz(a) a.size()
#define inf (1000*1000*1000+5)
#define all(a) a.begin(),a.end()
#define tri pair<int,pii>
#define vii vector<pii>
#define vll vector<pll>
#define viii vector<tri>
#define mod (1000*1000*1000+7)
#define pqueue priority_queue< int >
#define pdqueue priority_queue< int,vi ,greater< int > >
#define int ll

typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;


//std::ios::sync_with_stdio(false);

main(){
	std::ios::sync_with_stdio(false); cin.tie(NULL);
	string s;
  	cin>>s;
  	string ans=""
    ans+=s[0];
  	ans+=s[1];
  ans+=s[2];
  	cout<<ans<<endl;
	return 0;
} 


Compiler output:
a.cc:65:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   65 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:70:5: error: expected ',' or ';' before 'ans'
   70 |     ans+=s[0];
      |     ^~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <iomanip>
#include <queue>
#include <climits> 
#include <time.h>

int main(void){
    std::string S;
    std::cin >> S;
    for(long i=0; i<3; i++){
        std::cout << S[i];
    }
    std::cout << std::endl;
    return 0;
}#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <iomanip>
#include <queue>
#include <climits> 
#include <time.h>

int main(void){
    std::string S;
    std::cin >> S;
    for(long i=0; i<3; i++){
        std::cout << S[i];
    }
    std::cout << std::endl;
    return 0;
}

Compiler output:
a.cc:19:2: error: stray '#' in program
   19 | }#include <iostream>
      |  ^
a.cc:19:3: error: 'include' does not name a type
   19 | }#include <iostream>
      |   ^~~~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int,int> pii;
typedef long long ll;
const long long MOD=1000000007;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep2(i,m,n) for(int i=m;i<n;i++)
#define ALL(v) v.begin(), v.end()
#define pb push_back





int main(){

    string s;
    cin>>s;
    cout<<s.at(0)<<s.at(1)<<s.at(2)<<endl;
    






}

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef pair<int, int> P;
ll Mod = 1000000007;
int main() {
  string S;
  cin >> S;
  string ans = S[0] + S[1] + S[2];
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string ans = S[0] + S[1] + S[2];
Language: C++

#include<bits/stdc++.h>
#define rep(i,n)  for(ll i=0; i<n; i++)
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF 1e9
using ll = long long;
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main()[
  string s; cin >> s;
  cout << s.substr(s,3);
]


Compiler output:
a.cc:12:10: error: expected primary-expression before 's'
   12 |   string s; cin >> s;
      |          ^
a.cc:12:9: error: expected ']' before 's'
   12 |   string s; cin >> s;
      |         ^~
      |         ]
a.cc:12:13: error: 'cin' does not name a type
   12 |   string s; cin >> s;
      |             ^~~
a.cc:13:3: error: 'cout' does not name a type
   13 |   cout << s.substr(s,3);
      |   ^~~~
a.cc:14:1: error: expected unqualified-id before ']' token
   14 | ]
      | ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
int keta(int a){
  double b=a;
  b=log10(b);
  int c=b;
  return c+1;
}
int kurai(int a,int b){
  int m=pow(10,b),n=pow(10,b-1);
  return (a%m)/n;
}
int ketawa(int a){
  int k=0;
  rep(i,keta(a)){
  k+=kurai(a,i+1);
  }
  return k;
}
int gcd(int a,int b){
  if(a%b==0)
    return b;
  return gcd(b,a%b);
}
int lcm(int a,int b){
    return a/gcd(a,b)*b;
}
int mid(int a,int b,int c){
  vector<int> k(3);
  k[0]=a;k[1]=b;k[2]=c;
  sort(all(k));
  return k[1];
}
bool sosuu(int a){
  bool b=1;
  if(a<=1)
    return 0;
  else{
  rep1(i,sqrt(a)-1){
  if(a%(i+1)==0)
  b=0;
  }
  return b;
  }
}
int modpow(int a,int b,int m=MOD){
 if(!b)return 1; if(b&1)return modpow(a,b-1,m)*a%m;
 int memo = modpow(a,b>>1,m);
 return memo*memo%m;
}
int fact_mod(int n) {
    int f=1; 
for(int i=2;i<n+1;i++) f=f*(i%MOD)% MOD;
    return f;
}
int mod_pow(int x,int n) {
    int res=1;
    while(n>0){
        if(n&1) res=(res*x)%MOD; 
        x=(x*x)%MOD;        
n>>=1; 
    }
    return res;
}
int c_mod(int n, int r) {
    if(r>n-r) r=n-r;
    if(r==0) return 1;
    int a=1;
    rep(i,r) 
a=a*((n-i)%MOD)%MOD;
    int b=mod_pow(fact_mod(r), MOD-2);
    return (a%MOD)*(b%MOD)%MOD;
}
signed main(){
  string a;
  cin>>a
    cout<<a[0]<<a[1]<<a[2];
}

Compiler output:
a.cc: In function 'int main()':
a.cc:97:9: error: expected ';' before 'cout'
   97 |   cin>>a
      |         ^
      |         ;
   98 |     cout<<a[0]<<a[1]<<a[2];
      |     ~~~~
Language: Java

import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int v = sc.nextInt();
        int b = sc.nextInt();
        int w = sc.nextInt();
        int t = sc.nextInt();
        int dist = b-a;
        
        for(int i=0; i<t; i++){
            dist = dist-v+w;
          if(dist<0){
            break;
        }
        
        if(dist<=0){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
   }
}


Compiler output:
Main.java:26: error: reached end of file while parsing
}
 ^
1 error
Language: Java

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int a_speed = sc.nextInt();
    int b = sc.nextInt();
    int b_speed = sc.nextInt();
    int time = sc.nextInt();
    if(a_speed < b_speed){
      System.out.println("NO");
    }
    else{
      int dis = b - a;
      if((a_speed - b_speed) * time >= dis){
        System.out.println("YES");
      }
      else{
        System.out.println("NO");
      }
    }
  }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
  public static void main(String[] args){
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:21: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
typedef pair<int, int> pii;
/* constant */
const int INF = 1 << 30;
const ll LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
/* global variables */
/* function */
/* main */
int main(){
    ll a, b, v, w, t;
    cin >> a >> v >> b >> w >> t;
    if (v <= w) cout << "NO" << '\n';
    else if (abs(a - b) <= (t * (v - w)) cout << "YES" << '\n';
    else cout << "NO" << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:41: error: expected ';' before 'cout'
   20 |     else if (abs(a - b) <= (t * (v - w)) cout << "YES" << '\n';
      |                                         ^~~~~
      |                                         ;
a.cc:21:5: error: expected primary-expression before 'else'
   21 |     else cout << "NO" << '\n';
      |     ^~~~
a.cc:20:64: error: expected ')' before 'else'
   20 |     else if (abs(a - b) <= (t * (v - w)) cout << "YES" << '\n';
      |             ~                                                  ^
      |                                                                )
   21 |     else cout << "NO" << '\n';
      |     ~~~~