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

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

int main() {
	int N = 0, max = 0, sum = 0;
	cin >> N;
	vector<int> L(N + 1);
	for (int a = 0; a < N; a++) {
		cin >> L[a];
	}
	for (int a = 0; a < N; a++) {
		if (max < L[a]) {
			max = L[a];
		}
	}
	for(int a = 0; a < N; a++) {
		if (max == L[a]) {
			L[a] = 0;
            a = N + 1;
		}
      dmy++:
	}
	for (int a = 0; a <= N - 1; a++) {
		sum += L[a];
	}
	if (max < sum) {
		cout << "Yes";
	}
	else
		cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:7: error: 'dmy' was not declared in this scope
   23 |       dmy++:
      |       ^~~
Language: C++

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

int main() {
	int N = 0, max = 0, sum = 0;
	cin >> N;
	vector<int> L(N + 1);
	for (int a = 0; a < N; a++) {
		cin >> L[a];
	}
	for (int a = 0; a < N; a++) {
		if (max < L[a]) {
			max = L[a];
		}
	}
	while(int dmy < N) {
		if (max == L[a]) {
			L[a] = 0;
            dmy = N + 2;
		}
      dmy++:
	}
	for (int a = 0; a <= N - 1; a++) {
		sum += L[a];
	}
	if (max < sum) {
		cout << "Yes";
	}
	else
		cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: expected initializer before '<' token
   18 |         while(int dmy < N) {
      |                       ^
a.cc:18:22: error: expected ')' before '<' token
   18 |         while(int dmy < N) {
      |              ~       ^~
      |                      )
a.cc:18:23: error: expected primary-expression before '<' token
   18 |         while(int dmy < N) {
      |                       ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    
    int t = scanner.nextInt();
    int x = scanner.nextInt();
    
    if(0 < t < 101 && 0 < x < 101){
      
    double answer = 0;
    
    answer = t / x;
    
    System.out.println(answer);
    }
  }
}

Compiler output:
Main.java:10: error: bad operand types for binary operator '<'
    if(0 < t < 101 && 0 < x < 101){
             ^
  first type:  boolean
  second type: int
Main.java:10: error: bad operand types for binary operator '<'
    if(0 < t < 101 && 0 < x < 101){
                            ^
  first type:  boolean
  second type: int
2 errors
Language: Java

import java.io.*;
public class Main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    
    int t = scanner.nextInt();
    int x = scanner.nextInt();
    
    double answer = 0;
    
    answer = t / x;
    
    System.out.println(answer);
  }
}
    
    
    

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

#include <iomanip>
#include <iostream>

int main()
{
  unsigned double a, b;
  std::cin >> a >> b;
  std::cout << std::setprecision(10) << a / b << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'unsigned' specified with 'double'
    6 |   unsigned double a, b;
      |   ^~~~~~~~
a.cc:6:3: error: 'unsigned' specified with 'double'
Language: Java

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
 
public class Main {
  public static void main(String... args) {
  	Scanner sc = new Scanner(System.in);
    int lines = new int[sc.nextInt()];
    
    for(int i = 0; sc.hasNext(); i++) {
      lines[i] = sc.nextInt();
    }
    
    List<Integer> list = Arrays.asList(lines);
    
    if(Collections.max(list) >= sum(list)) {
    	System.out.println("Yes");
    } else {
    	System.out.println("No");
    }
  }
  
  public static int sum(List<Integer> values) {
    int sun = 0;
    
    for(int value : values) {
      sum += value;
    }
    
    return sum - Collections.max(values);
  }
}

Compiler output:
Main.java:9: error: incompatible types: int[] cannot be converted to int
    int lines = new int[sc.nextInt()];
                ^
Main.java:12: error: array required, but int found
      lines[i] = sc.nextInt();
           ^
Main.java:28: error: cannot find symbol
      sum += value;
      ^
  symbol:   variable sum
  location: class Main
Main.java:31: error: cannot find symbol
    return sum - Collections.max(values);
           ^
  symbol:   variable sum
  location: class Main
4 errors
Language: C

#include <stdio.h>
int X;
int T;
double A_time;
  
int main(void)[
 
  scanf("%d %d",&T,&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:8:23: error: expected ']' before ';' token
    8 |   scanf("%d %d",&T,&X);
      |                       ^
      |                       ]
Language: C

#include <stdio.h>
int X;
int T;
double A_time;
  
int main(void)[
 
  scanf("%d %d",&T,%X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:8:20: error: expected expression before '%' token
    8 |   scanf("%d %d",&T,%X);
      |                    ^
main.c:8:23: error: expected ']' before ';' token
    8 |   scanf("%d %d",&T,%X);
      |                       ^
      |                       ]
Language: C

#include <stdio.h>
int X;
int T;
double A_time;

int main(void)[
 
  scanf("%d" "%d",&T,&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:8:25: error: expected ']' before ';' token
    8 |   scanf("%d" "%d",&T,&X);
      |                         ^
      |                         ]
Language: C

#include <stdio.h>
int X;
int T;
double A_time;
  
int main(void)[
 
  scanf("%d" "%d",&T,%X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:8:22: error: expected expression before '%' token
    8 |   scanf("%d" "%d",&T,%X);
      |                      ^
main.c:8:25: error: expected ']' before ';' token
    8 |   scanf("%d" "%d",&T,%X);
      |                         ^
      |                         ]
Language: C

#include <stdio.h>
   int X;
  int T;
  double A_time;
  
int main(void)[

  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:8:17: error: expected ']' before ';' token
    8 |   scanf("%d",&T);
      |                 ^
      |                 ]
Language: C++

#include <iostream>

#include <vector>

#include <algorithm>

using namespace std;

int main(){
     int n,m;
     cin>>n>>m;
     vector<int> x(m);
     for(int i=0;i<m;++i){
          cin>>x[i];
     }
     sort(x.begin(),x.end());

     array<int,100000>dis;
  
     
     for(int i=0;i<m;++i){
          dis[i]=abs(x[i+1]-x[i]);
     }
     sort(dis.begin(),dis.end());
     int ans=0;
     for(int i=0;i<=n;++i){
          ans+=dis[i];
     }

     cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:23: error: aggregate 'std::array<int, 100000> dis' has incomplete type and cannot be defined
   18 |      array<int,100000>dis;
      |                       ^~~
a.cc:6:1: note: 'std::array' is defined in header '<array>'; this is probably fixable by adding '#include <array>'
    5 | #include <algorithm>
  +++ |+#include <array>
    6 |
Language: C++

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

int main(){
  int T,X;
  cin >> T >> X;
  
  int jikan, soutai, zettai
  jikan = X / T;
  soutai = (X / T) / 0.001;
  zettai = (X / T) - 0.001
  if(soutai <= 0.001 || zettai <= 0.001)
  cout << jikan << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'jikan'
    9 |   jikan = X / T;
      |   ^~~~~
a.cc:11:3: error: 'zettai' was not declared in this scope
   11 |   zettai = (X / T) - 0.001
      |   ^~~~~~
Language: C

#include <stdio.h>
 
int main(void)[
  int x;
  int t;
  double A_time;
  
  scanf("%d",&t);
  scanf("%d",&x);
  
  A_time = t / x;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int x;
      |   ^~~
Language: C

#include<stdio.h>
int main(void){
  
 int t,x,T;
  scanf("%d",&t);
  scanf("%d",&x);
  T=t/x
  printf("%d",T);
  
return 0;
} 


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

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

int main(){
  int T,X;
  cin >> T >> X;
  
  int soutai, zettai
  jikan = X / T;
  soutai = (X / T) / 0.001;
  zettai = (X / T) - 0.001
  if(soutai <= 0.001 || zettai <= 0.001)
  cout << jikan << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'jikan'
    9 |   jikan = X / T;
      |   ^~~~~
a.cc:11:3: error: 'zettai' was not declared in this scope
   11 |   zettai = (X / T) - 0.001
      |   ^~~~~~
Language: C++

#include<stdio.h>
int main(void){
  
 int t,x;
  scanf("%d",&t);
  scanf("%d",&x);
  T=t/x
  printf("%d",T);
  
return 0;
} 


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

#include <iostream>
#include <array>
#include <vector>
#include <iomanip>
#include <string>
#include <cmath>
#include <array>
#include <algorithm>
#include <queue>
#include <map>
using namespace std;
const int  INF=10e7;

typedef  pair<int,int> P;


int main(){
     int n,m;
     cin>>n>>m;
     vector<int> x(m);
     for(int i=0;i<m;++i){
          cin>>x[i];
     }
     sort(x.begin(),x.end());

     int dis[100000];
  
     
     for(int i=0;i<m;++i){
          dis[i]=abs(x[i+1]-x[i]);
     }
     sort(dis.begin(),dis.end());
     int ans=0;
     for(int i=0;i<=n;++i){
          ans+=dis[i];
     }

     cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:15: error: request for member 'begin' in 'dis', which is of non-class type 'int [100000]'
   32 |      sort(dis.begin(),dis.end());
      |               ^~~~~
a.cc:32:27: error: request for member 'end' in 'dis', which is of non-class type 'int [100000]'
   32 |      sort(dis.begin(),dis.end());
      |                           ^~~
Language: C

#include <stdio.h>
 
int main(void)[
  int X = 0;
  int T = 0;
  double A_time = 0.0;
  
  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int X = 0;
      |   ^~~
Language: C


#include <stdio.h>
 
int main(void)[
  double X;
  double T;
  double A_time;
  
  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:5:3: error: expected expression before 'double'
    5 |   double X;
      |   ^~~~~~
Language: C

#include<stdio.h>


int main(void)
{
  int k, j, tmp, total, i, ans;

  int number[10];

  int total;
  scanf("%d", &total);

  for (k=0; k<total; ++k){
    scanf("%d", &number[k]);
  }

  for (k=0; k<total; ++k) {
    for (j=k+1; j<total; ++j) {
      if (number[k] > number[j]) {
        tmp = number[k];
        number[k] = number[j];
        number[j] = tmp;
      }
    }
  }
  ans = number - number[total]

  if (number[total] < ans){
    printf("Yes");
  }else if (number[total] >= ans){
    printf("No");
  }

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: redeclaration of 'total' with no linkage
   10 |   int total;
      |       ^~~~~
main.c:6:18: note: previous declaration of 'total' with type 'int'
    6 |   int k, j, tmp, total, i, ans;
      |                  ^~~~~
main.c:26:7: error: assignment to 'int' from 'int *' makes integer from pointer without a cast [-Wint-conversion]
   26 |   ans = number - number[total]
      |       ^
main.c:26:31: error: expected ';' before 'if'
   26 |   ans = number - number[total]
      |                               ^
      |                               ;
   27 | 
   28 |   if (number[total] < ans){
      |   ~~
Language: C

#include <stdio.h>
 
int main(void)[
  int X;
  int T;
  double A_time;
  
  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int X;
      |   ^~~
Language: C

#include <stdio.h>
 
int main(void)[
  int X, T;
  double A_time;
  
  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int X, T;
      |   ^~~
Language: C

#include <stdio.h>

int main(void)[
  int X, Y;
  double A_time;
  
  scanf("%d",&T);
  scanf("%d",&X);
  
  A_time = T / X;
  
  printf("%lf",A_time);
  
  return 0;
  
  ]

Compiler output:
main.c:4:3: error: expected expression before 'int'
    4 |   int X, Y;
      |   ^~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  float T, X;
  cin >> T >> X;
  count << T/X << "\n";
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'count' was not declared in this scope
    8 |   count << T/X << "\n";
      |   ^~~~~
Language: C++

#include<stdio.h>
int main(void){
  
 int t,x,T;
  scanf("%d",&t);
  scanf("%d",&x);
  T=t*x
  printf("%d",T);
  
return 0;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'printf'
    7 |   T=t*x
      |        ^
      |        ;
    8 |   printf("%d",T);
      |   ~~~~~~
Language: C++

#include <bits/stdc++.h>

int main(){
  	
  doulble t , x;
  cin>>t>>x;
  printf("%0.5lf\n",t/x);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'doulble' was not declared in this scope; did you mean 'double'?
    5 |   doulble t , x;
      |   ^~~~~~~
      |   double
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:6:8: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |   cin>>t>>x;
      |        ^
      |        tm
a.cc:6:11: error: 'x' was not declared in this scope
    6 |   cin>>t>>x;
      |           ^
Language: C++

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


int main() {
  int N;
  int max;
  int sum;  
  max =0;
  vector<int> L(N);
  cin>>N;
  
  for(int i =0; i<N;i++){
    cin>>L.at(i);
    sum = sum+L.at(i);
    if (max < l.at(i)){
      max=L.at(i)
    }
  }
  if(sum>max*2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'l' was not declared in this scope
   16 |     if (max < l.at(i)){
      |               ^
a.cc:17:18: error: expected ';' before '}' token
   17 |       max=L.at(i)
      |                  ^
      |                  ;
   18 |     }
      |     ~
Language: C++

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


int main() {
  int N;
  int max;
  int sum;  
  max =0;
  vector<int> L(N)+
  cin>>N;
  
  for(int i =0; i<N;i++){
    cin>>L.at(i);
    sum = sum+L.at(i);
    if (max < l.at(i)){
      max=L.at(i)
    }
  }
  if(sum>max*2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ',' or ';' before '+' token
   10 |   vector<int> L(N)+
      |                   ^
a.cc:16:15: error: 'l' was not declared in this scope
   16 |     if (max < l.at(i)){
      |               ^
a.cc:17:18: error: expected ';' before '}' token
   17 |       max=L.at(i)
      |                  ^
      |                  ;
   18 |     }
      |     ~
Language: C++

#include <iostream>
usinge namespace std;

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

Compiler output:
a.cc:2:1: error: 'usinge' does not name a type; did you mean 'unsigned'?
    2 | usinge namespace std;
      | ^~~~~~
      | unsigned
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << a / b << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << a / b << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


int main() {
  int N;
  int max;
  int sum;  
  max =0;
  int L;
  cin>>N;
  
  for(int i =0; i<N;i++){
    cin>>L.at(i);
    sum = sum+L.at(i);
    if (max < l.at(i)){
      max=L.at(i)
    }
  }
  if(sum>max*2){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: request for member 'at' in 'L', which is of non-class type 'int'
   14 |     cin>>L.at(i);
      |            ^~
a.cc:15:17: error: request for member 'at' in 'L', which is of non-class type 'int'
   15 |     sum = sum+L.at(i);
      |                 ^~
a.cc:16:15: error: 'l' was not declared in this scope
   16 |     if (max < l.at(i)){
      |               ^
a.cc:17:13: error: request for member 'at' in 'L', which is of non-class type 'int'
   17 |       max=L.at(i)
      |             ^~
a.cc:25:4: error: expected '}' at end of input
   25 |   }
      |    ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iomanip>
#include <iostream>

int main()
{
  unsigned double a, b;
  std::cin >> a >> b;
  std::cout << fixed << std::setprecision(10) << a / b << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'unsigned' specified with 'double'
    6 |   unsigned double a, b;
      |   ^~~~~~~~
a.cc:6:3: error: 'unsigned' specified with 'double'
a.cc:8:16: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
    8 |   std::cout << fixed << std::setprecision(10) << a / b << std::endl;
      |                ^~~~~
      |                std::fixed
In file included from /usr/include/c++/14/iomanip:42,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
Language: C

nclude<stdio.h>

int main(){
  double time,times;
  scanf("%lf %lf",&time,&times);
  printf("%lf\n",time/times);
  return 0;
}


Compiler output:
main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | nclude<stdio.h>
      |       ^
Language: C

#include <stdio.h>

int main(void)
{
  double x,y;
  double result;
  
  scanf("%lf %lf", &x, &y);
  
  result = x * y;
  
  print("%lf", result);
  
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   print("%lf", result);
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>

int main(void)
{
  double x,y;
  double result;
  
  scanf("%lf %lf", &x, &y);
  
  result = x * y;
  
  print("%lf", result);
  
  return (0)
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   print("%lf", result);
      |   ^~~~~
      |   printf
main.c:14:13: error: expected ';' before '}' token
   14 |   return (0)
      |             ^
      |             ;
   15 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:7:16: error: extended character 　 is not valid in an identifier
    7 |         cin >> T　>> X;
      |                ^
a.cc: In function 'int main()':
a.cc:7:16: error: 'T\U00003000' was not declared in this scope
    7 |         cin >> T　>> X;
      |                ^~~
Language: C++

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

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

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

#include<stdio.h>
int main(){
  int T,X;
  long ans;
  scanf("%d %d",&T,&X);
  ans=long(T/X);
  printf("%lf",ans);
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected expression before 'long'
    6 |   ans=long(T/X);
      |       ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <numeric>
             
using namespace std;

int main(){

	int N;
	cin >> N;
	vector<int> L(N);
	for(int i=0;i<N;i++){
		int x;
		cin >> x;
		L.push_back(x);		
	}

	std::sort(L.begin(), L.end(), std::greater<int>() );
	

	int max = L[0];

	L.erase(L.begin() + 0);

	int sum = std::accumulate(L.begin(), L.end(), 0)

	if(max<sum){
		cout << "YES" << endl;
	}else{
		cout << "NO" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   18 |         std::sort(L.begin(), L.end(), std::greater<int>() );
      |              ^~~~
      |              qsort
a.cc:27:9: error: expected ',' or ';' before 'if'
   27 |         if(max<sum){
      |         ^~
a.cc:29:10: error: 'else' without a previous 'if'
   29 |         }else{
      |          ^~~~
Language: C

#include<stdio.h>
#define MAX 100
 
int main(){
int T,X;
scanf("%d%d",&T,&X);
sum = T/X;
printf("%ld",sum);
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: 'sum' undeclared (first use in this function)
    7 | sum = T/X;
      | ^~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>
#define MAX 100

int main(){
int T,X;
scanf("%d%d",&T,&X);
sum = T/X;
printf("%ld",sum);

return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include <iostream>
using namespace std;

int main(){
int max;
int all;
int N;
cin >> N;
int A[100];
for(int i =1;i < N+1;i++){
  cin >> A[i];
  max = max(max,A[i]);
  all += A[i];
}   
           
if(max < all- max)cout << "Yes";
else cout << "No";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'max' cannot be used as a function
   12 |   max = max(max,A[i]);
      |         ~~~^~~~~~~~~~
Language: C++

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

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

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

t main(void)
{
	float  t, x;
	float ans;
	scanf("%f", &t);
	scanf("%f", &x);
	ans = t / x;
	printf("%.10f", ans);
	return 0;

}

Compiler output:
a.cc:1:1: error: 't' does not name a type
    1 | t main(void)
      | ^
Language: C++

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

Compiler output:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main(void){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void){
      |     ^~~~
Language: C++

#include "pch.h"
#include<iostream>
using namespace std;

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

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
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 b = sc.nextInt();
 
        double c = (double)a/b;
 
        System.out.println(c);
 
 
 
    }
}
import java.util.*;

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

        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        double c = (double)a/b;

        System.out.println(c);



    }
}
提出情報

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:35: error: reached end of file while parsing
????
^
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();
		double t=T/X
		System.out.println(t);
	}
}

Compiler output:
Main.java:9: error: ';' expected
		double t=T/X
		            ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

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


public class Main {
	
	public static void main(String[] args){
		String[] arg = readLine().split(" ");
		if(arg.length<2){return;}
		try{
			int T = Integer.parseInt(arg[0]);
			int X = Integer.parseInt(arg[1]);
			double t = (double)T/X;
			System.out.print(String.format("%.7f", t));
		}catch(Exception e){
			e.printStackTrace();
		}
		return;
	}

	private static String readLine(){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			return reader.readLine();
		}catch(Exception e){
			return e.getMessage();
		}
	}
}


Compiler output:
Main.java:19: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:19: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:19: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                                               ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: C

#include<stdio.h>

int main(){
int n,sum,temp,i;
int l[100];
  int max=0;
 scanf("%d",&n);
  for(i=0;i<n;i++){
   scanf("%d",&temp);
    if(temp>max){
      max =temp;
      l[i]=temp;
  }else{
     l[i]=temp;
    }
  
 }
  for(i=0;i<n;i++){
  sum = sum+l[i]
  }
  sum= sum-max;
 if(max<sum){
printf("yes");
 }else{
   printf("no");
 }

}

Compiler output:
main.c: In function 'main':
main.c:19:17: error: expected ';' before '}' token
   19 |   sum = sum+l[i]
      |                 ^
      |                 ;
   20 |   }
      |   ~
Language: Java

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

}

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

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  vector<int> v(n);
  for(int i = 0; i < n; i++){
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  int sum = 0;
  for(int i = 0; i < n - 1; i++){
    sum += v[i];
  }
  if(sum > v[n - 1]){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
int main(void){

    char str[3000];
    char *tok;
    int m,n;
    int i1,i2,i3,i4,i44;
    int gn,gm,sn,sm;
    int fin=0;
    int nn,nm;
    int a[1000][1000];
    int b[8000][2]; //searching list
    int c[8000][2]; //next searching list
    
    fgets(str, sizeof(str), stdin);
    tok=strtok(str," ");
    m=strtol(tok,NULL,10);
    tok=strtok(NULL," ");
    n=strtol(tok,NULL,10);
    //printf("m=%d,n=%d",m,n);
  
	printf("%f",float(m)/float(n));
}

Compiler output:
main.c: In function 'main':
main.c:26:21: error: expected expression before 'float'
   26 |         printf("%f",float(m)/float(n));
      |                     ^~~~~
Language: C

#include<stdio.h>

main(){
        i
nt T,X;
        float time;

        scanf("%d",&T);
        scanf("%d",&X);

        time = ((float)T/X);

        printf("%f",time);
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:9: error: unknown type name 'i'
    4 |         i
      |         ^
main.c:5:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'T'
    5 | nt T,X;
      |    ^
main.c:8:21: error: 'T' undeclared (first use in this function)
    8 |         scanf("%d",&T);
      |                     ^
main.c:8:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: 'X' undeclared (first use in this function)
    9 |         scanf("%d",&X);
      |                     ^
Language: C++

#include<cstdiO>
using namespace std;

double x, t;
int main() {
    scanf("%lf%lf", &t, &x);
    printf("%lf", (double)t / x);
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>T>>X;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<A<<endl;
      |   ^~~~
a.cc:7:12: error: 'endl' was not declared in this scope
    7 |   cout<<A<<endl;
      |            ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int t,x;doucle s;
  cin >>t>>x;
  s=t/x;
  cout<<s<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'doucle' was not declared in this scope; did you mean 'double'?
    4 |   int t,x;doucle s;
      |           ^~~~~~
      |           double
a.cc:6:3: error: 's' was not declared in this scope
    6 |   s=t/x;
      |   ^
Language: C

#include <stdio.h>

int main(void){
	int T,X;
	scanf("%d %d,",&T.&X);
	printf("%lf\n",(double)T/X );
}

Compiler output:
main.c: In function 'main':
main.c:5:27: error: expected identifier before '&' token
    5 |         scanf("%d %d,",&T.&X);
      |                           ^
Language: C++

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

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


Compiler output:
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 |   cin >>　T >> X;
      |         ^
a.cc: In function 'int main()':
a.cc:6:9: error: '\U00003000T' was not declared in this scope
    6 |   cin >>　T >> X;
      |         ^~~
a.cc:7:3: error: 'A' was not declared in this scope
    7 |   A=T/X;
      |   ^
Language: C++

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

  
  }
 


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before 'cout'
   10 |   a = T/X
      |          ^
      |          ;
   11 |   cout << a << endl;
      |   ~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:35: error: expected ';' before 'return'
    6 |   printf("%f",(double)t/(double)x)
      |                                   ^
      |                                   ;
    7 |   return 0;
      |   ~~~~~~
Language: C++

    #include<iostream>
     
    namespace std;
     
    int main(){
      double T,X;
      cin << T << X;
      cout >> T/X << endl;
    	return 0;
    }

Compiler output:
a.cc:3:18: error: expected '{' before ';' token
    3 |     namespace std;
      |                  ^
a.cc: In function 'int main()':
a.cc:7:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |       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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       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:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout >> T/X << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#inclide<iostream>

namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<iostream>
      |  ^~~~~~~
      |  include
a.cc:3:14: error: expected '{' before ';' token
    3 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin << T << X;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout >> T/X << endl;
      |   ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |   cout >> T/X << endl;
      |                  ^~~~
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 b = sc.nextInt();

        double c = (double)a/b;

        System.out.println(c);



    }
}

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

#include <iostream>

using namespace std;

int main()

{

float a,b,c;

cin >> a >> b;
c=a/b
cout << c <<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected ';' before 'cout'
   12 | c=a/b
      |      ^
      |      ;
   13 | cout << c <<endl;
      | ~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main(){
  int T,x;
  scanf("%ld %ld\n",$T,$X);
  printf("%ld",T*X);
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: '$T' undeclared (first use in this function); did you mean 'T'?
    5 |   scanf("%ld %ld\n",$T,$X);
      |                     ^~
      |                     T
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:24: error: '$X' undeclared (first use in this function)
    5 |   scanf("%ld %ld\n",$T,$X);
      |                        ^~
main.c:6:18: error: 'X' undeclared (first use in this function)
    6 |   printf("%ld",T*X);
      |                  ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     int  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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << ((double)t / (double)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:6:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << ((double)t / (double)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 <bis/stdc++.h>
using namespace std;


int main(){

int X,t;
cin >> X >> t;
cout << t/X <<endl;
}

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

#using <iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #using
    1 | #using <iostream>
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> X >> T;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #using <iostream>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout << ans << endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:16: error: 'endl' was not declared in this scope
   10 | cout << ans << endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #using <iostream>
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int T , X;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>T>>X;
      |   ^~~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout<<T/X<<endl;
      |   ^~~~
a.cc:10:3: error: expected declaration before '}' token
   10 |   }
      |   ^
Language: C++

#include<iostream>
using namespace std;

int main(void){
    int t,x;
    cin >> t >> x;
    float ans;
    
    ans = (float)t/(float)x

    cout << ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before 'cout'
    9 |     ans = (float)t/(float)x
      |                            ^
      |                            ;
   10 | 
   11 |     cout << ans;
      |     ~~~~
Language: C++

#include <stdio.h>
#include <math.h>
#include <string>
using namespace std;
int main(void){

    int T = 0;
    int X = 0;
    double ans = 0
    cin >> T >> X;

    ans = (double)T/X;

    cout << ans << endl;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'cin'
   10 |     cin >> T >> X;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << ans << endl;
      |     ^~~~
a.cc:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <string>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |     cout << ans << endl;
      |                    ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <string>
  +++ |+#include <ostream>
    4 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std ;
int main () {
  
  double T , X ;
  cin >> T >> X ;
  printf("%.12ld\n",T/X);
  
  return 0 ;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected '}' at end of input
    9 |   return 0 ;
      |             ^
a.cc:3:13: note: to match this '{'
    3 | int main () {
      |             ^
Language: C++

#N = int(input())
T,X = list(map(float,input().split()))
print(T/X)




Compiler output:
a.cc:1:2: error: invalid preprocessing directive #N
    1 | #N = int(input())
      |  ^
a.cc:2:1: error: 'T' does not name a type
    2 | T,X = list(map(float,input().split()))
      | ^
Language: Java

public class Main {

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

}


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

#include <stdio.h>
 
int main(void){
int t,x;
  float d;
scanf("%d %d",&t,&c);
  d= t/x;
      printf("%d",d);
    
return 0;
}

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

#include<stdio.h>
int main(void)
{
  int a, b, ans;

  scanf("%d", &a);
  scanf("%d", &b);

  a * b = ans;

  printf("%d", ans);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: lvalue required as left operand of assignment
    9 |   a * b = ans;
      |         ^
Language: C

#include <bits/stdc++.h>

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


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++

#[allow(unused_imports)]
use std::cmp;

// Input macro from https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
  (source = $s:expr, $($r:tt)*) => {
    let mut iter = $s.split_whitespace();
    input_inner!{iter, $($r)*}
  };
  ($($r:tt)*) => {
    #[allow(unused_mut)]
    let mut s = {
      use std::io::Read;
      let mut s = String::new();
      std::io::stdin().read_to_string(&mut s).unwrap();
      s
    };
    let mut iter = s.split_whitespace();
    input_inner!{iter, $($r)*}
  };
}

macro_rules! input_inner {
  ($iter:expr) => {};
  ($iter:expr, ) => {};

  ($iter:expr, $var:ident : $t:tt $($r:tt)*) => {
    let $var = read_value!($iter, $t);
    input_inner!{$iter $($r)*}
  };
}

macro_rules! read_value {
  ($iter:expr, ( $($t:tt),* )) => {
    ( $(read_value!($iter, $t)),* )
  };

  ($iter:expr, [ $t:tt ; $len:expr ]) => {
    (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
  };

  ($iter:expr, chars) => {
    read_value!($iter, String).chars().collect::<Vec<char>>()
  };

  ($iter:expr, usize1) => {
    read_value!($iter, usize) - 1
  };

  ($iter:expr, $t:ty) => {
    $iter.next().unwrap().parse::<$t>().expect("Parse error")
  };
}

fn main() {
  input! {
    t: f64,
    x: f64
  }
  println!("{}", t / x)
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #[
    1 | #[allow(unused_imports)]
      |  ^
a.cc:11:6: error: invalid preprocessing directive #[
   11 |     #[allow(unused_mut)]
      |      ^
a.cc:39:6: error: too many decimal points in number
   39 |     (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
      |      ^~~~~~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::cmp;
      | ^~~
a.cc:5:1: error: 'macro_rules' does not name a type
    5 | macro_rules! input {
      | ^~~~~~~~~~~
a.cc:23:1: error: 'macro_rules' does not name a type
   23 | macro_rules! input_inner {
      | ^~~~~~~~~~~
a.cc:33:1: error: 'macro_rules' does not name a type
   33 | macro_rules! read_value {
      | ^~~~~~~~~~~
a.cc:55:1: error: 'fn' does not name a type
   55 | fn main() {
      | ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'cin' is not a member of 'std'
    3 |     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 | int main() {
a.cc:4:10: error: 'cout' is not a member of 'std'
    4 |     std::cout << T / X << std::endl;
      |          ^~~~
a.cc:4:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:4:32: error: 'endl' is not a member of 'std'
    4 |     std::cout << T / 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 | int main() {