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

#include<vector>
#include<cmath>
#include<map>
#include<cstdlib>
#include<iostream>
#include<sstream>
#include<fstream>
#include<string>
#include<algorithm>
#include<cstring>
#include<cstdio>
#include<set>
#include<stack>
#include<bitset>
#include<functional>
#include<ctime>
#include<queue>
#include<deque>
#include<complex>
#include<cassert>
using namespace std;
#define pb push_back
#define pf push_front
typedef long long lint;
typedef complex<double> P;
#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main()
{
int t;
int x;


long a;
a=t/x
cin >>t>>x;
cout<<a<<endl; 

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:6: error: expected ';' before 'cin'
   42 | a=t/x
      |      ^
      |      ;
   43 | cin >>t>>x;
      | ~~~
Language: Java

mport java.util.*;
 class Open {

	public static void main(String[] args) {
	 
	    Scanner s= new Scanner(System.in);
	    int m=s.nextInt();
	    int n=s.nextInt();
	    double mn=m*1.0/n;
	    System.out.printf("%.10f\n",mn);
	    

	}
	}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
Language: Java

//package com.wenli.shixun;
import java.util.*;
public class Open {

	public static void main(String[] args) {
	   String  [] a= new String [9];
	    Scanner s= new Scanner(System.in);
	    int m=s.nextInt();
	    int n=s.nextInt();
	    double mn=m*1.0/n;
	    System.out.printf("%.10f\n",mn);
	    

	}
	}




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

package com.wenli.shixun;
import java.util.*;
public class Open {

	public static void main(String[] args) {
	   String  [] a= new String [9];
	    Scanner s= new Scanner(System.in);
	    int m=s.nextInt();
	    int n=s.nextInt();
	    double mn=m*1.0/n;
	    System.out.printf("%.10f\n",mn);
	    

	}
	}




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

#include <stdio>
int main(void){
  int a=0,b=0;
  scanf(%d,&a);
  scanf(%d,&b);
  int c=a/b;
  printf(c);
  
  return 0:
}

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

package com.test.WYB;
import java.util.Scanner;
public class Test2019_3_8_8_24 {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
//		int[] arr = {1,2,3,4};
//		int[] arr2 = arr;
//		System.out.println(arr[3]);
//		System.out.println(arr2[3]);
//		int[] arr3;
//		arr3 = arr;
//		int[] arr4 = new int[4];
//		int[] arr5 = new int[] {1,2,4,8};
//		System.out.println(arr3[3]);
//		System.out.println(arr4[3]);
//		System.out.println(arr5[3]);
//		System.out.println(arr.length);
//		Scanner in = new Scanner(System.in);
//		int[] arr = new int[10];
//		
//		for(int i=0;i<arr.length;i++)
//		{
//			arr[i] = in.nextInt();
//		}
//		for(int i=0; i<arr.length;i++)
//		{
//			System.out.println(arr[i]);
//		}
		//System.out.println(arr);
		Scanner in = new Scanner(System.in);
		//int[] arr = new int[10];
		double a = in.nextInt();
		double b = in.nextInt();;
		System.out.println(a/b);
	}
}


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

package com.test.WYB;
import java.util.Scanner;
public class Test2019_3_8_8_24 {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
//		int[] arr = {1,2,3,4};
//		int[] arr2 = arr;
//		System.out.println(arr[3]);
//		System.out.println(arr2[3]);
//		int[] arr3;
//		arr3 = arr;
//		int[] arr4 = new int[4];
//		int[] arr5 = new int[] {1,2,4,8};
//		System.out.println(arr3[3]);
//		System.out.println(arr4[3]);
//		System.out.println(arr5[3]);
//		System.out.println(arr.length);
//		Scanner in = new Scanner(System.in);
//		int[] arr = new int[10];
//		
//		for(int i=0;i<arr.length;i++)
//		{
//			arr[i] = in.nextInt();
//		}
//		for(int i=0; i<arr.length;i++)
//		{
//			System.out.println(arr[i]);
//		}
		//System.out.println(arr);
		Scanner in = new Scanner(System.in);
		//int[] arr = new int[10];
		double a = in.nextInt();
		double b = in.nextInt();;
		System.out.println(a/b);
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package com.test.WYB;
      | ^~~~~~~
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Test2019_3_8_8_24 {
      | ^~~~~~
Language: C++

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

int main()
{
    double T, X; cin >> T >> X;
    cout << T / X << endl;
}

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:6:18: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     double T, X; cin >> T >> X;
      |                  ^~~
      |                  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << T / X << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << T / X << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>
#include<stdlib.h>
 
int main(){
	double t;
    t=T/X;
    printf("%f",t);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'T' was not declared in this scope
    6 |     t=T/X;
      |       ^
a.cc:6:9: error: 'X' was not declared in this scope
    6 |     t=T/X;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected '}' at end of input
    6 |    cout<<T/X<<endl;
      |                    ^
a.cc:3:12: note: to match this '{'
    3 |  int main(){
      |            ^
Language: C++

#include<iostream>
using namesapce std;

int main(){
    float t,x;
    cin >> t > x;
    cout << t/x;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> t > x;
      |     ^~~
      |     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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << t/x;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// get a integer
		int T = sc.nextInt();
		// get two integers separated with half-width break
		int C = sc.nextInt();
		
		System.out.println(T/X);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		System.out.println(T/X);
		                     ^
  symbol:   variable X
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before ';' token
    4 |   float t,x,;
      |             ^
Language: C

#include<stdio.h>
int main(){
  int T,X;
  scanf("%d %d",&T,&X);
  printf("%f",(double)T/(double)X));
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:35: error: expected ';' before ')' token
    5 |   printf("%f",(double)T/(double)X));
      |                                   ^
      |                                   ;
main.c:5:35: error: expected statement before ')' token
Language: C++


Copy
Copy
#include<cstdio>
using namespace std;
 
int main(void)
{
  int T, X;
  scanf("%d %d", &T, &X);
  printf("%lf", (float)T / (float)X);
  
  return 0;
}

Compiler output:
a.cc:2:1: error: 'Copy' does not name a type
    2 | Copy
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int T X;
  cin >>T >>X;
  double t = T/X;
  cout <<t <<endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'X'
    5 |   int T X;
      |         ^
a.cc:6:9: error: 'T' was not declared in this scope
    6 |   cin >>T >>X;
      |         ^
a.cc:6:13: error: 'X' was not declared in this scope
    6 |   cin >>T >>X;
      |             ^
Language: C++

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

int x,t;

cin >> x >> t;

double y;

y=x/t

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before 'return'
   13 | y=x/t
      |      ^
      |      ;
   14 | 
   15 | return 0;
      | ~~~~~~
Language: C

#include<stdio.h>
int main(){
  int t,x;
  scanf("%d %d",&t,&x);
  printf("%f\n",double(t / x));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected expression before 'double'
    5 |   printf("%f\n",double(t / x));
      |                 ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  double a,b;
  cin >> a >> b;
  cout << a/b << endl;
  retrurn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'retrurn' was not declared in this scope
    7 |   retrurn 0;
      |   ^~~~~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int T = sc.nextInt()
		int X = sc.nextInt();
      
      	double t = (double)T / X;

		System.out.println(t);

	}

}

Compiler output:
Main.java:9: error: ';' expected
		int T = sc.nextInt()
		                    ^
1 error
Language: Java

import java.util.Scanner;
public class A {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		// 勉強に必要な時間
		double T;
		// B世界での時間が進む速度の倍数
		double X;

		T = sc.nextDouble();
		X = sc.nextDouble();

		double t = T / X;

		System.out.println(t);

	}

}

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

public class A {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		// 勉強に必要な時間
		double T;
		// B世界での時間が進む速度の倍数
		double X;

		T = sc.nextDouble();
		X = sc.nextDouble();

		double t = T / X;

		System.out.println(t);

	}

}

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

T,X=[int(i) for i in input().split(" ")]
print(T/X)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | T,X=[int(i) for i in input().split(" ")]
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'T' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'X' [-Wimplicit-int]
    1 | T,X=[int(i) for i in input().split(" ")]
      |   ^
main.c:1:5: error: expected expression before '[' token
    1 | T,X=[int(i) for i in input().split(" ")]
      |     ^
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print(T/X)
      | ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    float T,X; cin >> T >> K;
    cout << T/X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: 'K' was not declared in this scope
    6 |     float T,X; cin >> T >> K;
      |                            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int T,X; cin >> T >> K;
    cout << T/X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: 'K' was not declared in this scope
    6 |     int T,X; cin >> T >> K;
      |                          ^
Language: C++

#include <bits/stdc++.h>

int main(){
    int T,X; cin >> T >> K;
    cout << T/X << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     int T,X; cin >> T >> K;
      |              ^~~
      |              std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:26: error: 'K' was not declared in this scope
    4 |     int T,X; cin >> T >> K;
      |                          ^
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << T/X << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << T/X << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main{
	int T,X;
	cin >> T >> X;
	double ans = T / 3.0;
	cout << ans << "\n";
	return 0;
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:9: error: expected primary-expression before 'int'
    6 |         int T,X;
      |         ^~~
a.cc:6:9: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> T >> X;
      |         ^~~
a.cc:8:22: error: 'T' was not declared in this scope
    8 |         double ans = T / 3.0;
      |                      ^
a.cc:9:9: error: 'cout' does not name a type
    9 |         cout << ans << "\n";
      |         ^~~~
a.cc:10:9: error: expected unqualified-id before 'return'
   10 |         return 0;
      |         ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<cstdio>
using namespace std;

int main(void)
{
  int T, X;
  scanf("%d %d", &T, &X);
  print((float)T / (float)X);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |   print((float)T / (float)X);
      |   ^~~~~
      |   printf
Language: C

#include<stdio.h>

int main() {
	float t, x;
	float ans;
	scanf_s("%f %f", &t, &x);

	ans = t / x;

	printf("%f", ans);
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%f %f", &t, &x);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

int main() {
	double t, x;
	double ans;
	scanf_s("%lf %lf", &t, &x);

	ans = t / x;

	printf("%lf", ans);
}

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

#include <iostream>

int main(){
 
  	int t x;
  	double a;
  
  	std::cin>> t >> x;
  	a=1.0*t/x;
  
  	std::cout<< a << endl;
  
}

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

import java.util.Scanner;

public class EntranceExamination {

  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int t = in.nextInt();
    int x = in.nextInt();
    System.out.println((double) t / (double) x);
  }
  
}

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

include<iostream>
#include<cstdio>

using namespace std;

int main() {
  double t, x;

  cin >> t >> x;

  printf("%.3lf\n", (t / x));
  // cout << (t / x) << 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:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> t >> x;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<cstdio>
  +++ |+#include <iostream>
    3 |
Language: C

#include <stdio.h>

int main(void)
{
	int n1,n2;
	
	scanf("%d%d",&n1,&n2);
	printf("%lf",(float)n1/n2);	
	return 0
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected ';' before '}' token
    9 |         return 0
      |                 ^
      |                 ;
   10 | }
      | ~
Language: Java

package test;
import java.util.Scanner;

public class Test {


	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int needtime = reader.nextInt();
		int timedBy = reader.nextInt();

		float resultF = (float) (needtime * 1.0 / timedBy);




		System.out.println(resultF);
		reader.close();

	}

}


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

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

        double t = Double.parseDouble(sc.next());
        double x = Double.parseDouble(sc.next());
        System.out.println(t / x);
    }

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

package atCoderA117;

import java.util.Scanner;

public class Ans {

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

        double t = Double.parseDouble(sc.next());
        double x = Double.parseDouble(sc.next());
        System.out.println(t / x);
    }

}


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

#include <cstdio>
using namespace std;

int main() {
  scanf("%d%d", &a, &b);
  printf("%f\n", 1.0*a/b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'a' was not declared in this scope
    5 |   scanf("%d%d", &a, &b);
      |                  ^
a.cc:5:22: error: 'b' was not declared in this scope
    5 |   scanf("%d%d", &a, &b);
      |                      ^
Language: Java

import java.util.*;
public class chef
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int t=sc.nextInt();
        int x=sc.nextInt();
        double d=(1.0*t)/x;
        System.out.println(d);
    }
}

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

#include<bits/stdc++.h>
using namespace std;int main()double a,b;cin>>a>>b;cout<<a/b;

Compiler output:
a.cc:2:31: error: expected initializer before 'double'
    2 | using namespace std;int main()double a,b;cin>>a>>b;cout<<a/b;
      |                               ^~~~~~
a.cc:2:42: error: 'cin' does not name a type
    2 | using namespace std;int main()double a,b;cin>>a>>b;cout<<a/b;
      |                                          ^~~
a.cc:2:52: error: 'cout' does not name a type
    2 | using namespace std;int main()double a,b;cin>>a>>b;cout<<a/b;
      |                                                    ^~~~
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int T = sc.nextInt();
        int X = sc.nextInt();
		System.out.println((float)T/X);
	}
}



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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int T = sc.nextInt();
        int X = sc.nextInt();
		System.out.println(T/X);
	}
}


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

void a()
{
	int t, x;
	std::cin >> t >> x;
	std::cout << (t+0.0)/x << std::endl;
}

int main()
{
	a();
}


Compiler output:
a.cc: In function 'void a()':
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> t >> x;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | void a()
a.cc:5:14: error: 'cout' is not a member of 'std'
    5 |         std::cout << (t+0.0)/x << std::endl;
      |              ^~~~
a.cc:5:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:40: error: 'endl' is not a member of 'std'
    5 |         std::cout << (t+0.0)/x << std::endl;
      |                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | void a()
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double T = sc.nextDouble();
		double X = sc.nextDouble();

		System.out.println(T/X);
	}
}

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

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

public class Main{
	
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in());
	int T=sc.nextInt();
    int X=sc.nextInt();
    System.out.println((double)T/X);
  }
  
}


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

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

public class Main{
	
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in());
	int T=sc.nextInt();
    int X=sc.nextInt();
    System.out.printf("%.6f", (float)(T/X));
  }
  
}


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

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

public class Main{
	
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
	int T=sc.nextInt();
    int X=sc.nextInt();
    System.out.println("%.6f", (float)(T/X));
  }
  
}


Compiler output:
Main.java:10: error: no suitable method found for println(String,float)
    System.out.println("%.6f", (float)(T/X));
              ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

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

public class Main{
	
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in());
	int T=sc.nextInt();
    int X=sc.nextInt();
    System.out.println("%.6f", (float)(T/X));
  }
  
}


Compiler output:
Main.java:7: error: cannot find symbol
    Scanner sc=new Scanner(System.in());
                                 ^
  symbol:   method in()
  location: class System
Main.java:10: error: no suitable method found for println(String,float)
    System.out.println("%.6f", (float)(T/X));
              ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

import java.util.*;

public class Main{
	
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in());
	int T=sc.nextInt();
    int X=sc.nextInt();
    System.out.println("%.6f", (float)(T/X));
  }
  
}

Compiler output:
Main.java:6: error: cannot find symbol
    Scanner sc=new Scanner(System.in());
                                 ^
  symbol:   method in()
  location: class System
Main.java:9: error: no suitable method found for println(String,float)
    System.out.println("%.6f", (float)(T/X));
              ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: C

#include <stdio.h>

int main(void)
{
    int t, x;
	
    scanf("%d%d", t, x)
    printf("%f", (float)t / (float)x)
      
    return 0:
}

Compiler output:
main.c: In function 'main':
main.c:7:24: error: expected ';' before 'printf'
    7 |     scanf("%d%d", t, x)
      |                        ^
      |                        ;
    8 |     printf("%f", (float)t / (float)x)
      |     ~~~~~~
Language: C++

#include <stdio.h>

int main()
{
  int input_T = 0;
  int input_X = 0;
  scanf("%d %d", input_T, input_X);
  
  printf("%08f", (double)T/X);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'T' was not declared in this scope
    9 |   printf("%08f", (double)T/X);
      |                          ^
a.cc:9:28: error: 'X' was not declared in this scope
    9 |   printf("%08f", (double)T/X);
      |                            ^
Language: Java

 

import org.junit.Test;

import javax.swing.tree.TreeNode;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;


public class Main {



    public static void main(String args[])  {

        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        double ans = a * 1.0 / b;
        System.out.println(ans);

    }

}


Compiler output:
Main.java:3: error: package org.junit does not exist
import org.junit.Test;
                ^
1 error
Language: Java

package nowcoder;

import org.junit.Test;

import javax.swing.tree.TreeNode;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;


public class Main {



    public static void main(String args[])  {

        Scanner scanner = new Scanner(System.in);

        int a = scanner.nextInt();
        int b = scanner.nextInt();
        double ans = a * 1.0 / b;
        System.out.println(ans);

    }

}

Compiler output:
Main.java:3: error: package org.junit does not exist
import org.junit.Test;
                ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <math.h>
//#include <gmpxx.h> 


using namespace::std;


long long int get_X(vector<long long int> X, vector<long long int> A, long long int N, long long int K_bit, long long int K) {

	vector<long long int> C(K_bit);

	long long int N_half = 0.5 * N;
	
	for (int k = 0; k < K_bit; k++) {
		for (int n = 0; n < N; n++) {
			if (A[n] % 2 == 1) {
				C[k] += 1;
			}
			A[n] = (long long int) A[n] * 0.5;
//			cout << A[n];
		}
//		cout << endl;
//		cout << "Ck = " << C[k] << endl;

		if (C[k] <= N_half) {
			X[k] = 1;
		}
		else X[k] = 0;

	}

	long long int x = 0;
	long long int multi = 1;
	for (int k = 0; k < K_bit; k++) {
		x += X[k] * multi;
		if (x > K) {
			x = x / multi;
		}
		multi *= 2;
	}

//	cout << "x = " << x << endl;
	return x;

}


int main()
{
	long long int max_bit = 40;

	long long int K;
	long long int N;
	long long int sum = 0;

	cin >> N;
	cin >> K;
	
	long long int K_bit;

	//cout << N << endl;
	if (K == 0) {
	}
	else {
		K_bit = (long long int)(log2(K) + 1);
	}

	//cout << "K_bit = " << K_bit << endl;

	vector<long long int> A(N);
	vector<long long int> B(N);
	

	for (int i = 0; i < N; i++) {
		cin >> A[i];
		B[i] = A[i];
	}

	for (int i = 0; i < N; i++) {
	//	cout << A[i] << endl;
	}

	
	vector<long long int> X(K_bit);

	long long int x = get_X(X, B, N, K_bit);

	for (int i = 0; i < N; i++) {
		sum += x ^ A[i];
	}

	cout << sum << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:89:32: error: too few arguments to function 'long long int get_X(std::vector<long long int>, std::vector<long long int>, long long int, long long int, long long int)'
   89 |         long long int x = get_X(X, B, N, K_bit);
      |                           ~~~~~^~~~~~~~~~~~~~~~
a.cc:11:15: note: declared here
   11 | long long int get_X(vector<long long int> X, vector<long long int> A, long long int N, long long int K_bit, long long int K) {
      |               ^~~~~
Language: C

#include<stdio.h>

void sortChange(int max , int Xm[] , int sort[]){
	int i , l , k;
	sort[0] = Xm[0];
	for( i = 1 ; i != max ; i++){
		for( l = 0 ; l < i ; l++){
			if(sort[l] < Xm[i]){  //自分の方が大きい
				continue;
			}
			for( k = i ; k != l ; k--){
				sort[k] = sort[k-1];
			}
			break;
		}
		sort[l] = Xm[i];
	}
}

int main(){
	int n , m;
	int Xm[100000];  //scanfした順番
	int sort[10000]; //小さい順に並び替えたもの
	int dif[9999];   //差
	
	//関数
	int i;
	int sum = 0;
	
	scanf("%d %d" , &n , &m);
	if(n >= m){
		printf("0\n");
		return 0;
	}
	
	for( i = 0 ; i != m ; i++){
		scanf("%d" , &Xm[i]); 
	}
	
	int Xm[m] , sort[m];
	sortChange(m , Xm , sort);

	
	/*並び替え完了*/
	/*差の比較開始*/
	
	if( n == 1 ){
		printf("%d" , sort[m]-sort[0]);
		return 0;
	}
	
	
	for( i = 0 ; i != (m-1) ; i++){
		dif[i] = sort[i+1] - sort[i];
	}	
	
	sortChange( m , dif , sort);
	for( i = 0 ; i < (m-n+1) ; i++){
		sum += sort[i];
	}
	printf("%d\n" , sum);
		
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:40:13: error: redeclaration of 'Xm' with no linkage
   40 |         int Xm[m] , sort[m];
      |             ^~
main.c:22:13: note: previous declaration of 'Xm' with type 'int[100000]'
   22 |         int Xm[100000];  //scanfした順番
      |             ^~
main.c:40:21: error: redeclaration of 'sort' with no linkage
   40 |         int Xm[m] , sort[m];
      |                     ^~~~
main.c:23:13: note: previous declaration of 'sort' with type 'int[10000]'
   23 |         int sort[10000]; //小さい順に並び替えたもの
      |             ^~~~
Language: C++

int main(){
	int a, b;
    float c;
	cin >> a, b;
	c = float(a / b);
	cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> a, b;
      |         ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << c << endl;
      |         ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |         cout << c << endl;
      |                      ^~~~
Language: C++

//#include<iostream>
#include <utility>
#include<algorithm>

using namespace std;

int main(void){

	int k, m, n, l;

	int x[100000];
	int sa[100000];
	int ans;

	scanf("%d %d",&n,&m);

	for (k = 1; k <= m; k++) {
		if (k != m) {
			scanf("%d ", &x[k]);
		}
		else {
			scanf("%d", &x[k]);
		}
		/*for (l = 1; l < k; l++) {
			if (x[k] < x[l]) {
				swap(x[k], x[l]);
			}
		}*/
	}
	
	sort(x, x + m);

	for (k = 2; k <= m; k++) {
		
		sa[k] = x[k] - x[k - 1];

		/*for (l = 2; l < k; l++) {

			if (sa[k] < sa[l]) {
				swap(sa[k], sa[l]);
			}

		}*/
	}
	sort(sa, sa + m+1);

	ans = x[m] - x[1];

	for (k = 0; k <= n - 2; k++) {
		ans = ans - sa[m - k];
	}

	printf("%d\n\n", ans);

	for (k = 1; k <= m; k++) {
		printf("%d\n", x[k]);
	}

	for (k = 2; k <= m; k++) {
		printf("%d\n",sa[k]);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'scanf' was not declared in this scope
   15 |         scanf("%d %d",&n,&m);
      |         ^~~~~
a.cc:53:9: error: 'printf' was not declared in this scope
   53 |         printf("%d\n\n", ans);
      |         ^~~~~~
a.cc:4:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    3 | #include<algorithm>
  +++ |+#include <cstdio>
    4 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> A >> B;
      |   ^~~
a.cc:7:13: error: 'B' was not declared in this scope
    7 |   cout << A/B << endl;
      |             ^
Language: C++

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

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

    #include<bits/stdc++.h>
    using namespace std;
    int main() 
    {
      intT, X;
      cin  >> T >> X;
      double ans =double(T) / X;
      cout  << fixed  << setprecision (10)  << ans  << endl;
    	return 0;
    }

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

#include<bits/stdc ++.h>
using namespace std;
int main() 
{
  intT, X;
  cin  >> T >> X;
  double ans =double(T) / X;
  cout  << fixed  << setprecision (10)  << ans  << endl;
	return 0;
}

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<stdio.h>
int main(void){
  int T,X;
  double ans
    ans=T/X;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ans'
    5 |     ans=T/X;
      |     ^~~
main.c:5:5: error: 'ans' undeclared (first use in this function)
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int T,X;
  Double ans;
  ans=T/X;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'Double'; did you mean 'double'?
    4 |   Double ans;
      |   ^~~~~~
      |   double
Language: C++

#include<stdio.h>
int main(){
  printf("T/X\n")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ';' before '}' token
    3 |   printf("T/X\n")
      |                  ^
      |                  ;
    4 | }
      | ~
Language: C++

#include<stdio.h>
int main(){
  int T,X
    printf("T/X\n");
  return0
    )

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: expected initializer before 'printf'
    4 |     printf("T/X\n");
      |     ^~~~~~
a.cc:5:3: error: 'return0' was not declared in this scope
    5 |   return0
      |   ^~~~~~~
a.cc:6:6: error: expected '}' at end of input
    6 |     )
      |      ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C

#include <stdio.h>

void main() {
	float x, t;
	scanf_s("%f %f", &t, &x);

	printf("%.10f\n", t/x);
}

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

/*
* Author. Silviase(@silviasetitech)
* For AtCoder
*/

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


public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        
        double t = sc.nextDouble();
        double x = sc.nextDouble();
        System.out.println(t/x);

        sc.close();

    }

    public static void intArrayScan(int[] array) {
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < array.length; i++) {
            array[i] = sc.nextInt();
        }
        sc.close();
    }

    public static void intArrayPrint(int[] array) {
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }

    public static void intSquareArrayScan(int[][] array, int h, int w) {
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < h; i++) {
            for (int j = 0; j < w; j++) {
                array[i][j] = sc.nextInt();
            }
        }
        sc.close();
    }

    public static void intArrayListScan(List<Integer> list, int n) {
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < n; i++) {
            list.add(sc.nextInt());
        }
        sc.close();
    }

    public static void intArrayListPrint(List<Integer> list) {
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));  
        }
    }
}

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

#include <iostream>

int main(){
  float T,X;
  cin>>T;
  cin>>X;
  
  cout<<T / X;
  
 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>>T;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<T / X;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

public class Main {
    public static void main(String[] args){
        if(args.length == 0){
            args = new String[] {"99","1"};    
        }
        int t = Integer.parseInt(args[0]);
        int x = Integer.parseInt(args[1]);
        Double dt = (double)t;
        Double dx = (double)x;
        answer = String.format("%.5f",dt/dx);
        System.out.println(answer);
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        answer = String.format("%.5f",dt/dx);
        ^
  symbol:   variable answer
  location: class Main
Main.java:11: error: cannot find symbol
        System.out.println(answer);
                           ^
  symbol:   variable answer
  location: class Main
2 errors
Language: Java

public class A_EntranceExamination {
    public static void main(String[] args){
        if(args.length == 0){
            args = new String[] {"8","3"};    
        }
        int t = Integer.parseInt(args[0]);
        int x = Integer.parseInt(args[1]);
        double dt = (double)t;
        double dx = (double)x;
        System.out.println(dt/dx);
    }
}

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

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

int main() {
  Double a,b;
  cin >> a >> b;
  cout << a/b <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'Double' was not declared in this scope; did you mean 'double'?
    6 |   Double a,b;
      |   ^~~~~~
      |   double
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a >> b;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin >> a >> b;
      |               ^
Language: C

#include<stdio.h>
int main()
{
  double t,x
  scanf("%lf %lf",&t,&x);
  printf("%lf\n",t / x);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |   scanf("%lf %lf",&t,&x);
      |   ^~~~~
main.c:6:22: error: 'x' undeclared (first use in this function)
    6 |   printf("%lf\n",t / x);
      |                      ^
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:57: error: found ':' in nested-name-specifier, expected '::'
    2 | int main(){ int a,b; std::cin>>a>>b; std::cout<<a/b<<std:endl; }
      |                                                         ^
      |                                                         ::
Language: C++

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

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<iostream>int main(){ int a,b; std::cin>>a>>b; std::cout<<a/b<<std:endl; }
      |                       ^~~~
a.cc:1:9: fatal error: iostream>in: No such file or directory
    1 | #include<iostream>int main(){ int a,b; std::cin>>a>>b; std::cout<<a/b<<std:endl; }
      |         ^~~~~~~~~~~~~
compilation terminated.