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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: 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:3: 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:20: 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++

#include "../../lib/template/template.cpp"

template <typename T> vector<T> table(int n, T v) { return vector<T>(n, v); }

template <class... Args> auto table(int n, Args... args) {
  auto val = table(args...);
  return vector<decltype(val)>(n, move(val));
}

void solve(long long T, long long X) {
  cout << 1.0 * T / X << endl;
}

int main() {
  long long T;
  scanf("%lld", &T);
  long long X;
  scanf("%lld", &X);
  solve(T, X);
  return 0;
}


Compiler output:
a.cc:1:10: fatal error: ../../lib/template/template.cpp: No such file or directory
    1 | #include "../../lib/template/template.cpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputStr = br.readLine();
        String[] inputNumbers = inputStr.split(" ");
        double T = Double.parseDouble(inputNumbers[0]);
        double X = Double.parseDouble(inputNumbers[1]);
        if (1<=T && T<=100 && 1<=X && X<= 100) {
            double result = T/X;
            System.out.println(result);
        } else {
            System.exit(1);
        }
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   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: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 't'
    5 |   cin t >> x;
      |      ^~
      |      ;
Language: C++

#include <iostream>

int main()
{
    int T,X = 0;
    std::cin >> T >> X;
    std::count << T / X;    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'count' is not a member of 'std'; did you mean 'cout'?
    7 |     std::count << T / X;
      |          ^~~~~
      |          cout
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;
int X;
int T;
double t;
int main(){
  cin >> X >> T;
  t=X/T;
    cout <<　fixed <<setprecision(10)<< t <<endl;
}
  
  
  

Compiler output:
a.cc:10:12: error: extended character 　 is not valid in an identifier
   10 |     cout <<　fixed <<setprecision(10)<< t <<endl;
      |            ^
a.cc: In function 'int main()':
a.cc:10:12: error: '\U00003000fixed' was not declared in this scope
   10 |     cout <<　fixed <<setprecision(10)<< t <<endl;
      |            ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int X;
int T;
double t;
int main(){
  cin >> X >> T;
  t=X/T;
    cout <<setprecision(10)<< t <<endl;
}
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'setprecision' was not declared in this scope
    9 |     cout <<setprecision(10)<< t <<endl;
      |            ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args){
      Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();
      if(1 > a || a > 100){
		throw NumberFormatException;
      }
      int b = scan.nextInt();
      if(1 > b || b > 100){
		throw NumberFormatException;
      }
      System.out.print((double)(a / b));
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
		throw NumberFormatException;
		      ^
  symbol:   variable NumberFormatException
  location: class Main
Main.java:12: error: cannot find symbol
		throw NumberFormatException;
		      ^
  symbol:   variable NumberFormatException
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args){
      Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();
      if(1 > a || a > 100){
        break;
      }
      int b = scan.nextInt();
      if(1 > b || b > 100){
        break;
      }
      System.out.print((double)(a / b));
    }
}

Compiler output:
Main.java:8: error: break outside switch or loop
        break;
        ^
Main.java:12: error: break outside switch or loop
        break;
        ^
2 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:11: error: cannot find symbol
    System.out.pritnln(time);
              ^
  symbol:   method pritnln(double)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int t = scan.nextInt();
    int x = scan.nextInt();
    
    int time = t / x;
    
    System.out.pritnln(time);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    System.out.pritnln(time);
              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
      Scanner scan = new Scanner(System.in);
      int a = scan.nextInt();
      int b = scan.nextInt();
      System.out.print((double)(a / b));
}

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

import java.util.*;

public class Main{
  public static void mian(Stirng[] args){
    int t = 0;
    int x = 0;
    
    Scanner scan = new Scanner(System.in);
    t = scan.nextInt();
    x = scan.nextInt();
    
    int time = x / t;
    
    System.out.println(time);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  public static void mian(Stirng[] args){
                          ^
  symbol:   class Stirng
  location: class Main
1 error
Language: C++

import java.util.Scanner;

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

        sc.close();
    }
}

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

#include<iostream>
using namespace std;
float main()
{
  int t, x;
  cin >> t >> x;
 
  float a;
 
  a = t / x;
 
  return a;
}

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

#include <stdio.h>
#include <stdlib.h>

int main() {
  int t,x;
  assert(2==scanf("%d %d", &t, &x));
  printf("%f¥n", (double)t / x);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
    6 |   assert(2==scanf("%d %d", &t, &x));
      |   ^~~~~~
main.c:3:1: note: 'assert' is defined in header '<assert.h>'; this is probably fixable by adding '#include <assert.h>'
    2 | #include <stdlib.h>
  +++ |+#include <assert.h>
    3 |
Language: C++

a,b=map(int,input().split());print(a/b)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(int,input().split());print(a/b)
      | ^
a.cc:1:35: error: expected constructor, destructor, or type conversion before '(' token
    1 | a,b=map(int,input().split());print(a/b)
      |                                   ^
Language: Java

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

class Main {
	public static void main(String args[]) {
    	Scanner sc = new Scanner(System.in);	
	    int t = sc.nextInt();
      	int x = sc.nextInt();
      	BigDecimal res = new BigDecimal(t/x);
      	System.out.println(res.setScale(10));
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      	BigDecimal res = new BigDecimal(t/x);
      	^
  symbol:   class BigDecimal
  location: class Main
Main.java:9: error: cannot find symbol
      	BigDecimal res = new BigDecimal(t/x);
      	                     ^
  symbol:   class BigDecimal
  location: class Main
2 errors
Language: Java

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

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


Compiler output:
Main.java:9: error: incompatible types: int cannot be converted to Double
      	Double res = (Double)(t/x);
      	                     ^
1 error
Language: Java

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

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


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: incompatible types: int cannot be converted to Double
      	Double res = t/x;
      	              ^
2 errors
Language: Java

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

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


Compiler output:
Main.java:4: error: class, interface, enum, or record expected
Class Main {
^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args[]) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:12: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

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

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

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

#include<iostream>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	cout<<fixed<<setprecision(3)<<a/b<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'setprecision' was not declared in this scope
    7 |         cout<<fixed<<setprecision(3)<<a/b<<endl;
      |                      ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C

#include<stdio.h>

	int main(){
      double t,x;
      
      scanf("%d",%t);
      scanf("%d",%x);
      double diff = t / x;
      
      printf("%d",diff);
      return 0;
	}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before '%' token
    6 |       scanf("%d",%t);
      |                  ^
main.c:7:18: error: expected expression before '%' token
    7 |       scanf("%d",%x);
      |                  ^
Language: Java

import io.*;

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

Compiler output:
Main.java:1: error: package io does not exist
import io.*;
^
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: no suitable method found for split(no arguments)
    String[] lines = line.split();
                         ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
4 errors
Language: C++

#include <iostream>

int main()
{
  int a, b;
  cin << a << b;
  cout << (double) a / b;
}


Compiler output:
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 << (double) a / b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main(){
	double A_time, B_time;
  	std::cin >> A_time >> B_time;
  	std::cout << A_time/B_time << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'cin' is not a member of 'std'
    3 |         std::cin >> A_time >> B_time;
      |              ^~~
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:14: error: 'cout' is not a member of 'std'
    4 |         std::cout << A_time/B_time << '\n';
      |              ^~~~
a.cc:4:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:3: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:3: error: 'retuen' was not declared in this scope
    6 |   retuen 0;
      |   ^~~~~~
Language: C++

#include <iostream>
int main(){
  int A, B;
  cin >> A >> B;
  cout << (double)(A/B) << endl;
}
  

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

int main(){
  int A, B;
  cin >> A >> B;
  cout << (double)(A/B) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << (double)(A/B) << endl;
      |   ^~~~
a.cc:4:28: error: 'endl' was not declared in this scope
    4 |   cout << (double)(A/B) << endl;
      |                            ^~~~
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Double> lst = new ArrayList<>();
		while (sc.hasNext()) {
			lst.add(Double.parseDouble(sc.next()));
		}
		double T = lst.get(0);
		double X = lst.get(1);

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

}

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

#include <bits/stdc++.h>

using namespace std;

int main() {
	int T, X;
	cin >> T >> X;
    double ans = double(T) /X
    cout << fixed << setprecision(10) << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'cout'
    9 |     cout << fixed << setprecision(10) << ans << endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
	int T, X;
	cin >> T >> X;
    double ans = T/X
    cout << fixed << setprecision(10) << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'cout'
    9 |     cout << fixed << setprecision(10) << ans << endl;
      |     ^~~~
Language: C

#inclde<stdio.h>

int main(){
  int T, X;
  float R;
  
  scanf("%d %d", &T, &X);
  
  R = T/X;
  
  printf("%f\n", R);
  
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d %d", &T, &X);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inclde<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d %d", &T, &X);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%f\n", R);
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected expression before 'double'
    8 |   ans = t/x(double);
      |             ^~~~~~
main.c:8:11: error: called object 'x' is not a function or function pointer
    8 |   ans = t/x(double);
      |           ^
main.c:4:10: note: declared here
    4 |   int t, x;
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected expression before 'double'
    8 |   ans = t/x(double)
      |             ^~~~~~
main.c:8:11: error: called object 'x' is not a function or function pointer
    8 |   ans = t/x(double)
      |           ^
main.c:4:10: note: declared here
    4 |   int t, x;
      |          ^
main.c:8:20: error: expected ';' before 'printf'
    8 |   ans = t/x(double)
      |                    ^
      |                    ;
    9 |   printf("%f", ans);
      |   ~~~~~~
Language: C

#include<stdio.h>

int main(void){
  int t, x;
  double ans;
  
  scanf("%d %d", &t, &x);
  ans = t/x(double)
  prinf("%f", ans);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected expression before 'double'
    8 |   ans = t/x(double)
      |             ^~~~~~
main.c:8:11: error: called object 'x' is not a function or function pointer
    8 |   ans = t/x(double)
      |           ^
main.c:4:10: note: declared here
    4 |   int t, x;
      |          ^
main.c:8:20: error: expected ';' before 'prinf'
    8 |   ans = t/x(double)
      |                    ^
      |                    ;
    9 |   prinf("%f", ans);
      |   ~~~~~
Language: C

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

typedef struct BinaryTree{
    char *data;
    struct BinaryTree *left, *right; //lt, gt
}BinaryTree;

BinaryTree* new(char *S){
    BinaryTree *p = (BinaryTree*)malloc(sizeof(BinaryTree));
    p->data = (char *)malloc(strlen(S) + 1);
    strcpy(p->data, S);
    p->left = p->right = NULL;
    
    return p;
}

BinaryTree* add(BinaryTree **node, char *S){
    BinaryTree *p = new(S);
    if (*node == NULL)
        return *node = p;
    BinaryTree *n = *node;
    while(1){
        BinaryTree **tmp = NULL;
        if (strcmp(S, n->data) > 0)
            tmp = &(n->right);
        else
            tmp = &(n->left);
        if (*tmp == NULL){
            *tmp = p;
            break;
        }
        n = *tmp;
    }

    return p;
}

void show(BinaryTree *node){
    if (node == NULL)
        return;
    show(node->left);
    printf("%s\n", node->data);
    show(node->right);
}

void del(BinaryTree *node){
    if (node == NULL)
        return;
    del(node->left);
    del(node->right);
    free(node->data);
    free(node);
}

int main(){
    char S[31];
    BinaryTree *root = NULL;
    scanf("%s", S);
    do{
        add(&root, S);
        show(root);
    }while(scanf("%s", S) != EOF && puts(""));

    del(root);
    return 0;
}

Compiler output:
main.c:1:3: error: expected ';' before 'typedef'
    1 | CE
      |   ^
      |   ;
Language: C++

#include <iostream>

int main() {
  double A, B;
  cin >> A >> B;
  cout << A/B << "\n";
}

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 >> 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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << A/B << "\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
int main(){
  double a,b;
  cin>>a>>b;
  cout<<a/b;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<a/b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>z

using namespace std;

int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
#ifdef sweety_candy
	freopen("input.txt","rt",stdin);
	freopen("ouput.txt","w",stdout);
#endif	
	double a, b;
	cin >> a >> b;
	double ans = (double) (a/b);
	cout << fixed << setprecision(10) << ans;			
#ifdef sweety_candy
	cout << " Time elapsed: " << 1.0*clock() / CLOCKS_PER_SEC << " s.\n";
#endif
	return 0;
}


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

#include <iostream>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;

ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;

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


Compiler output:
a.cc:9:6: error: 'long long' specified with 'double'
    9 | long long double T,X;
      |      ^~~~
a.cc:9:6: error: 'long long' specified with 'double'
Language: C++

#include <iostream>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;

ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;

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


Compiler output:
a.cc:9:6: error: 'long long' specified with 'double'
    9 | long long double t,x;
      |      ^~~~
a.cc:9:18: error: conflicting declaration 'double t'
    9 | long long double t,x;
      |                  ^
a.cc:7:42: note: previous declaration as 'll t'
    7 | ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
      |                                          ^
a.cc:9:6: error: 'long long' specified with 'double'
    9 | long long double t,x;
      |      ^~~~
a.cc:9:20: error: conflicting declaration 'double x'
    9 | long long double t,x;
      |                    ^
a.cc:7:50: note: previous declaration as 'll x'
    7 | ll a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
      |                                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int n, m, x[100000], d[99999], i;
	cin >> n, m;
	for(i = 0; i < m; i++) cin >> x[i];
	sort(a, a+m);
	for(i = 1; i < m; i++){
		d[i - 1] = x[i] - x[i - 1];
	}
	sort(d, d+m-1);
	int result = x[m - 1] - x[0];
	for(i = 0; i < n - 1; i++){
		result -= d[i];
	}
 
	cout << result << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'a' was not declared in this scope
    8 |         sort(a, a+m);
      |              ^
Language: C++

#include <iostream>
 
int main(){
	int n, m, x[100000], d[99999], i;
	cin >> n, m;
	for(i = 0; i < m; i++) cin >> x[i];
	sort(a, a+m);
	for(i = 1; i < m; i++){
		d[i - 1] = x[i] - x[i - 1];
	}
	sort(d, d+m-1);
	int result = x[m - 1] - x[0];
	for(i = 0; i < n - 1; i++){
		result -= d[i];
	}
 
	cout << result << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n, m;
      |         ^~~
      |         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:14: error: 'a' was not declared in this scope
    7 |         sort(a, a+m);
      |              ^
a.cc:7:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |         sort(a, a+m);
      |         ^~~~
      |         short
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         cout << result << 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:17:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |         cout << result << 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 T, X;
  cin >> T >> X;
  double ans = double T / X;
  cout << fixed << setprecision(10) << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before 'double'
    7 |   double ans = double T / X;
      |                ^~~~~~
Language: C++

// need
#include <iostream>
#include <algorithm>
// data structure
#include <bitset>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#include <complex>
//#include <deque>
#include <valarray>
#include <unordered_map>
#include <array>
// stream
//#include <istream>
#include <sstream>
//#include <ostream>
#include <fstream>
// etc
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
//#include <chrono>
#include <random>
#include <numeric>
using namespace std;
 
int main()
{
  long N, K, k2;
  int kd = 0;
  long sum = 0;
  cin >> N >> K;
  k2 = K;
  long mask = 0;
  while(k2 > 0){
    K /= 2;
    kd++;
  }
  vector<int> b(kd);  
  vector<long> a(N);
  for(int i = 0; i < N; i++){
	cin >> a[i];
    for(int j = 0; j < kd; j++){
      if((a[i] & (1 << (kd -1))) != 0)
        b[i]++;
    }
  }
  for(int j = 0; j < kd; j++){
    if((N-1)/2 >= b[j]){
      mask |= (1 << j);
    }
  }
  if(mask >= K)
    mask &= (1 << (kd -1 ));
  
  for(int j = 0; j < N; j++){
    a[i] ^= mask;
    sum += a[i];
  }
  cout << sum << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:63:7: error: 'i' was not declared in this scope
   63 |     a[i] ^= mask;
      |       ^
Language: C

#include <stdio.h>
 int main(void){
   
   int i,j;
   int input_num;
   
   scanf("%d",&input_num);
   
   int L[input_num];
   
   for(i = 0;i < input_num ; i++)
     scanf("%d",&L[i});
    
   int L_max = 0;
   int L_sum;
                   for(j = 0; j < input_num; j++){
                     if(L_max <= L[j]);
                     L_max = L[j];
                     
                     L_sum += L[j];
                   }
   if(L_sum >= (L_sum - L_max))
                   printf("Yes");
                   
                   else 
                   printf("No");
              return 0;
                   }

Compiler output:
main.c: In function 'main':
main.c:12:21: error: expected ']' before '}' token
   12 |      scanf("%d",&L[i});
      |                     ^
      |                     ]
main.c:12:21: error: expected ')' before '}' token
   12 |      scanf("%d",&L[i});
      |           ~         ^
      |                     )
main.c:12:21: error: expected ';' before '}' token
   12 |      scanf("%d",&L[i});
      |                     ^
      |                     ;
main.c: At top level:
main.c:12:22: error: expected identifier or '(' before ')' token
   12 |      scanf("%d",&L[i});
      |                      ^
main.c:16:20: error: expected identifier or '(' before 'for'
   16 |                    for(j = 0; j < input_num; j++){
      |                    ^~~
main.c:16:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   16 |                    for(j = 0; j < input_num; j++){
      |                                 ^
main.c:16:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   16 |                    for(j = 0; j < input_num; j++){
      |                                               ^~
main.c:22:4: error: expected identifier or '(' before 'if'
   22 |    if(L_sum >= (L_sum - L_max))
      |    ^~
main.c:25:20: error: expected identifier or '(' before 'else'
   25 |                    else
      |                    ^~~~
main.c:27:15: error: expected identifier or '(' before 'return'
   27 |               return 0;
      |               ^~~~~~
main.c:28:20: error: expected identifier or '(' before '}' token
   28 |                    }
      |                    ^
Language: C

#include <stdio.h>
 int main(void){
   int input_num;
   
   scanf("%d",&input_num);
   
   int L[input_num];
   
   for(i = 0;i < input_num ; i++)
     scanf("%d",&L[i});
    
   int L_max = 0;
   int L_sum;
                   for(j = 0; j < input_num; j++){
                     if(L_max <= L[j]);
                     L_max = L[j];
                     
                     L_sum += L[j];
                   }
   if(L_sum >= (L_sum - L_max))
                   printf("Yes");
                   
                   else 
                   printf("No");
              return 0;
                   }

Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'i' undeclared (first use in this function)
    9 |    for(i = 0;i < input_num ; i++)
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:21: error: expected ']' before '}' token
   10 |      scanf("%d",&L[i});
      |                     ^
      |                     ]
main.c:10:21: error: expected ')' before '}' token
   10 |      scanf("%d",&L[i});
      |           ~         ^
      |                     )
main.c:10:21: error: expected ';' before '}' token
   10 |      scanf("%d",&L[i});
      |                     ^
      |                     ;
main.c: At top level:
main.c:10:22: error: expected identifier or '(' before ')' token
   10 |      scanf("%d",&L[i});
      |                      ^
main.c:14:20: error: expected identifier or '(' before 'for'
   14 |                    for(j = 0; j < input_num; j++){
      |                    ^~~
main.c:14:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   14 |                    for(j = 0; j < input_num; j++){
      |                                 ^
main.c:14:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   14 |                    for(j = 0; j < input_num; j++){
      |                                               ^~
main.c:20:4: error: expected identifier or '(' before 'if'
   20 |    if(L_sum >= (L_sum - L_max))
      |    ^~
main.c:23:20: error: expected identifier or '(' before 'else'
   23 |                    else
      |                    ^~~~
main.c:25:15: error: expected identifier or '(' before 'return'
   25 |               return 0;
      |               ^~~~~~
main.c:26:20: error: expected identifier or '(' before '}' token
   26 |                    }
      |                    ^
Language: C

#include <stdio.h>
 int main(void){
   int input_num;
   
   scanf("%d"&input_num);
   
   int L[input_num];
   
   for(i = 0;i < input_num ; i++)
     scanf("%d",&L[i});
    
   int L_max = 0;
   int L_sum;
                   for(j = 0; j < input_num; j++){
                     if(L_max <= L[j]);
                     L_max = L[j];
                     
                     L_sum += L[j];
                   }
   if(L_sum >= (L_sum - L_max))
                   printf("Yes");
                   
                   else 
                   printf("No");
              return 0;
                   }

Compiler output:
main.c: In function 'main':
main.c:5:14: error: invalid operands to binary & (have 'char *' and 'int')
    5 |    scanf("%d"&input_num);
      |          ~~~~^
      |          |
      |          char *
main.c:9:8: error: 'i' undeclared (first use in this function)
    9 |    for(i = 0;i < input_num ; i++)
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:21: error: expected ']' before '}' token
   10 |      scanf("%d",&L[i});
      |                     ^
      |                     ]
main.c:10:21: error: expected ')' before '}' token
   10 |      scanf("%d",&L[i});
      |           ~         ^
      |                     )
main.c:10:21: error: expected ';' before '}' token
   10 |      scanf("%d",&L[i});
      |                     ^
      |                     ;
main.c: At top level:
main.c:10:22: error: expected identifier or '(' before ')' token
   10 |      scanf("%d",&L[i});
      |                      ^
main.c:14:20: error: expected identifier or '(' before 'for'
   14 |                    for(j = 0; j < input_num; j++){
      |                    ^~~
main.c:14:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   14 |                    for(j = 0; j < input_num; j++){
      |                                 ^
main.c:14:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   14 |                    for(j = 0; j < input_num; j++){
      |                                               ^~
main.c:20:4: error: expected identifier or '(' before 'if'
   20 |    if(L_sum >= (L_sum - L_max))
      |    ^~
main.c:23:20: error: expected identifier or '(' before 'else'
   23 |                    else
      |                    ^~~~
main.c:25:15: error: expected identifier or '(' before 'return'
   25 |               return 0;
      |               ^~~~~~
main.c:26:20: error: expected identifier or '(' before '}' token
   26 |                    }
      |                    ^
Language: C

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


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

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


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

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

Compiler output:
Main.java:7: error: ';' expected
    double scanner.nextInt();
                  ^
Main.java:8: error: ';' expected
    double scanner.nextInt();
                  ^
2 errors
Language: C++

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

typedef long long ll;
typedef pair<int,int> pii;
const int INF=2e9+10;
#define fi first
#define se second
#define pb push_back
#define mp make_pair

ll read() {
	ll xx=0,ww=1;
	char ch=getchar();
	while(ch>'9'||ch<'0') {
		if(ch=='-') ww=-ww;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9') {
		xx=10*xx+ch-48;
		ch=getchar();
	}
	return xx*ww;
}

ll n,a[100010];
ll k;
ll now,ans=-INF;
ll b[60],c[60];

ll f(ll x) {
	ll sum=0;
	for(int i=1; i<=n; i++) sum+=x^a[i];
	return sum;
}

ll Power(int x){
	if(x==0) return 1;
	ll tmp=1;
	for(int i=1;i<=x;i++) tmp*=(ll)2;
	return tmp;
}

int main() {
	n=read();
	k=read();
	for(int i=1; i<=n; i++) a[i]=read();
	ans=f(0);
	for(int i=0;i<=50;i++) b[i]=Power(i),c[i]=b[i]-1;
	for(int i=0;i<=50;i++){
		if(b[i]>k) b[i]=b[i]%k;
		ans=max(f(b[i]),ans);
	}
	for(int i=1;i<=50;i++){
		if()
	}
	printf("%lld\n",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:20: error: expected primary-expression before ')' token
   55 |                 if()
      |                    ^
a.cc:56:9: error: expected primary-expression before '}' token
   56 |         }
      |         ^
Language: Java

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

Compiler output:
Main.java:7: error: ';' expected
    double scanner.nextDouble();
                  ^
Main.java:8: error: ';' expected
    double scanner.nextDouble();
                  ^
2 errors
Language: C++

#include <bits/stdc++.h>
#include <climits>
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
#define srep(i, begin, end) for (__typeof(end) i = begin; i != end; i++)
#define si(x) int x = scanInt();
#define sll(x) LL x = scanLong();
#define sci(x) int x; scanf("%d", &x);
#define scll(x) LL x; scanf("%lld", &x);
#define pi(x) printf("%d ", x)
#define pll(x) printf("%lld ", x)
#define nl printf("\n")
#define clr(a) memset(a, 0, sizeof(a))
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned int UI; // 32 bit integer
typedef long int LI; // 32 bit integer
typedef unsigned long int ULI; // 32 bit unsigned integer
typedef long long int LL; // 64 bit integer
typedef unsigned long long int  ULL; // 64 bit unsigned integer
typedef long double LD;
typedef vector<int> VI;
typedef vector<LL> VLL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
LL mod = 1e9+7;

/* Fast I/O */
inline int scanInt() {
	int n = 0;
	char ch = getchar();
	int sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(int)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

inline LL scanLong() {
	LL n = 0;
	char ch = getchar();
	LL sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(LL)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

int main() {
	LL n; cin >> n;
	LL arr[n], sum = 0, maxl = 0;
	rep(i, 0, n) {
		arr[i] = scanLong();
		sum += arr[i];
		maxl = max(arr[i], maxl);
	}
	if(2*max < sum)	cout << "Yes" << endl;
	else	cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:67:14: error: parse error in template argument list
   67 |         if(2*max < sum) cout << "Yes" << endl;
      |              ^~~~~~~~~
a.cc:67:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator*'
   67 |         if(2*max < sum) cout << "Yes" << endl;
      |            ~^~~~~~~~~~
      |            | |
      |            | <unresolved overloaded function type>
      |            int
Language: C++

#include <bits/stdc++.h>
#include <climits>
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
#define srep(i, begin, end) for (__typeof(end) i = begin; i != end; i++)
#define si(x) int x = scanInt();
#define sll(x) LL x = scanLong();
#define sci(x) int x; scanf("%d", &x);
#define scll(x) LL x; scanf("%lld", &x);
#define pi(x) printf("%d ", x)
#define pll(x) printf("%lld ", x)
#define nl printf("\n")
#define clr(a) memset(a, 0, sizeof(a))
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned int UI; // 32 bit integer
typedef long int LI; // 32 bit integer
typedef unsigned long int ULI; // 32 bit unsigned integer
typedef long long int LL; // 64 bit integer
typedef unsigned long long int  ULL; // 64 bit unsigned integer
typedef long double LD;
typedef vector<int> VI;
typedef vector<LL> VLL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
LL mod = 1e9+7;

/* Fast I/O */
inline int scanInt() {
	int n = 0;
	char ch = getchar();
	int sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(int)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

inline LL scanLong() {
	LL n = 0;
	char ch = getchar();
	LL sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(LL)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

int main() {
#ifndef ONLINE_JUDGE
	freopen("inp.txt", "r", stdin);
#endif
	LL n; cin >> n;
	LL arr[n], sum = 0, maxl = 0;
	rep(i, 0, n) {
		arr[i] = scanLong();
		sum += arr[i];
		maxl = max(arr[i], maxl);
	}
	if(2*max < sum)	cout << "Yes" << endl;
	else	cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:70:14: error: parse error in template argument list
   70 |         if(2*max < sum) cout << "Yes" << endl;
      |              ^~~~~~~~~
a.cc:70:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator*'
   70 |         if(2*max < sum) cout << "Yes" << endl;
      |            ~^~~~~~~~~~
      |            | |
      |            | <unresolved overloaded function type>
      |            int