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

#define rep(i,n) for(int i = 0;i < (n);++i)
#define reps(i,n) for(int i = 1;i <= (n);++i)
using namespace std;
int main(){
  double t,x;
  cin >> t >> x;
  cout << fixed << t / x << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #define rep(i,n) for(int i = 0;i < (n);++i)
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << fixed << t / x << '\n';
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:11: error: 'fixed' was not declared in this scope
    7 |   cout << fixed << t / x << '\n';
      |           ^~~~~
a.cc:1:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
  +++ |+#include <ios>
    1 | #define rep(i,n) for(int i = 0;i < (n);++i)
Language: C++

t, x = map(int, input().split())
print('{:.10f}'.format(t / x))

Compiler output:
a.cc:2:7: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
    2 | print('{:.10f}'.format(t / x))
      |       ^~~~~~~~~
a.cc:1:1: error: 't' does not name a type
    1 | t, x = map(int, input().split())
      | ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'setpresision' was not declared in this scope
    7 |     cout << setpresision(10) << (T/X << endl;
      |             ^~~~~~~~~~~~
a.cc:7:38: error: invalid operands of types 'float' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << setpresision(10) << (T/X << endl;
      |                                  ~~~~^~~~~~~
a.cc:7:45: error: expected ')' before ';' token
    7 |     cout << setpresision(10) << (T/X << endl;
      |                                 ~           ^
      |                                             )
Language: C++

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


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

#include <iostream>

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

/*

Compiler output:
a.cc:9:1: error: unterminated comment
    9 | /*
      | ^
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main() {
      | ^~~~
Language: C

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

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

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

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

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

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

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

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

int main(){
    int t, x;
    cin >> x >> t;
    cout << x * t << endl;
    return 0;
}

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

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

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

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

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

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: expected primary-expression before '<<' token
   34 |   cout << << fixed << setprecision(5) << ans << endl;
      |           ^~
Language: C++

#include<bits/stdc++.h>   
using namespace std;    
int main
  cout<<fixed<<setprecision(10); 
  int t,x;
  cin>>t>>x;
  double ans=t/x;
  
  cout<<ans<<endl;
}


  
  

Compiler output:
a.cc:4:3: error: expected initializer before 'cout'
    4 |   cout<<fixed<<setprecision(10);
      |   ^~~~
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin>>t>>x;
      |   ^~~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout<<ans<<endl;
      |   ^~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

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


  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'doubl' was not declared in this scope; did you mean 'dsubl'?
    6 |   doubl ans=t/x;
      |   ^~~~~
      |   dsubl
a.cc:7:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#include<bits/stdc++.h>
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout<<fixed;
  cout<<setprecision(10);
  double x,t;
  cout<<x/t<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'ios' has not been declared
    3 |   ios::sync_with_stdio(0);
      |   ^~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin.tie(0);
      |   ^~~
      |   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.tie(0);
      |   ^~~~
      |   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:9: error: 'fixed' was not declared in this scope
    6 |   cout<<fixed;
      |         ^~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/ios_base.h:1104:3: note:   'std::fixed'
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:198:
/usr/include/c++/14/charconv:622:21: note:   'std::chars_format::fixed'
  622 |     scientific = 1, fixed = 2, hex = 4, general = fixed | scientific
      |                     ^~~~~
a.cc:7:9: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    7 |   cout<<setprecision(10);
      |         ^~~~~~~~~~~~
      |         std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
a.cc:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<x/t<<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 <bits/stdc++.h>
using namespace std;
int main(){
  double X,T;
  cin >> X >> T;
  cout << T / X << setprecision(10)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: expected ';' before '}' token
    6 |   cout << T / X << setprecision(10)
      |                                    ^
      |                                    ;
    7 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int a, b;
double ans;
cin >> a >> b;
ans = a/b;
cout << ans;
return 0;
}


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a >> b;
      | ^~~
a.cc:6:1: error: 'ans' does not name a type
    6 | ans = a/b;
      | ^~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout << ans;
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'return'
    8 | return 0;
      | ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include<iosttream>
using namespace std;

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

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

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

int main(void)
{
  int a,b;
  cin>>a>>b;
  double c=a/b;
  printf("%.10f",c)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '}' token
    9 |   printf("%.10f",c)
      |                    ^
      |                    ;
   10 | }
      | ~
Language: Java

import java.util.Scanner;

public class EntranceExamination {

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long double x,y;
  cin>>x>>y;
  cout<<setprecision(10)<<fixed<<x/y;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'long long' specified with 'double'
    5 |   long long double x,y;
      |        ^~~~
a.cc:5:8: error: 'long long' specified with 'double'
Language: C

#include<stdio.h>
 
int main(void){
  int a,b;
  float c;
  scanf("%d%d",&a,&b);
  c=(float)a/(float)b;
  printf("%f",c);
  return 0;
  ]

Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected statement before ']' token
   10 |   ]
      |   ^
main.c:10:3: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>
 
int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  float c=a/b;
  printf("%f",c);
  return 0;
  ]

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected statement before ']' token
    9 |   ]
      |   ^
main.c:9:3: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  float c=a/b;
  printf("%f",c);
  return 0;
  ]

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected statement before ']' token
    9 |   ]
      |   ^
main.c:9:3: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  float c=a/b;
  printf("%d",c);
  return 0;
  ]

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected statement before ']' token
    9 |   ]
      |   ^
main.c:9:3: error: expected declaration or statement at end of input
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	
	double t, x;
	cin >> t >> x;
	cout << t / x << endl;

	system("pause");
	return 0;

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

#include <bits/stdc++.h>
#include <iostream>	
#define pb push_back
#define mp make_pair
#define Red ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define F first
#define S second
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for(int i = 0; i < n; ++i)
#define repr(i,n) for(int i = n - 1; i >= 0; --i)
#define Rep(i, a, n) for(int i = (a); i <=(n); ++i)
#define repst(i, n) for(auto it = n.begin(); it != n.end(); ++it)
#define Repr(i, a, n) for(int i = (n); i >= (a); --i)
typedef long long ll;

const int inf = int(2e9);
const int mod = inf + 7;
using namespace std;

const int N = 100000;

void solve(){
	long double t, x;
	cin >> t >> x;
	cout << fixed << setprecison(3) << t / x;
}

int main() {
	Red;
	solve();
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:26:26: error: 'setprecison' was not declared in this scope
   26 |         cout << fixed << setprecison(3) << t / x;
      |                          ^~~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'doublea' was not declared in this scope; did you mean 'double'?
    5 |    doublea,b,c;
      |    ^~~~~~~
      |    double
a.cc:5:12: error: 'b' was not declared in this scope
    5 |    doublea,b,c;
      |            ^
a.cc:5:14: error: 'c' was not declared in this scope
    5 |    doublea,b,c;
      |              ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before '=' token
    5 |    double=a,b,c;
      |          ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b;
      |           ^
a.cc:8:3: error: 'c' was not declared in this scope
    8 |   c=a/b;
      |   ^
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before '=' token
    5 |   double=a,b,c;
      |         ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a,b;
      |        ^
a.cc:6:10: error: 'b' was not declared in this scope
    6 |   cin>>a,b;
      |          ^
a.cc:8:3: error: 'c' was not declared in this scope
    8 |   c=a/b;
      |   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected unqualified-id before '=' token
    6 |   int=T,X;
      |      ^
a.cc:7:9: error: expected unqualified-id before '=' token
    7 |   double=t;
      |         ^
a.cc:8:8: error: 'T' was not declared in this scope
    8 |   cin>>T,X;
      |        ^
a.cc:8:10: error: 'X' was not declared in this scope
    8 |   cin>>T,X;
      |          ^
a.cc:9:3: error: 't' was not declared in this scope; did you mean 'tm'?
    9 |   t=T/X;
      |   ^
      |   tm
Language: C++

#include <iostream>

using namespace std;

typedef long long int ll;

int main()
{
  ll T, X;
  cin >> T >> X;
  
  cout << fixed << setprecision(8) << (float)T/(float)X << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: 'setprecision' was not declared in this scope
   12 |   cout << fixed << setprecision(8) << (float)T/(float)X << 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 |
Language: C++

#include< stdio.h >

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


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

#include< stdio.h >

int main(){
	int T;
    int X;
  scanf("%d",T);
  scanf("%d",X);
  printf("%d",T/X);
  return 0;
}


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

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


Compiler output:
a.cc:3:6: error: 'cout' in namespace 'std' does not name a type
    3 | std::cout<<std::fixed<<std;;setprecision(10);
      |      ^~~~
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:3:41: error: expected constructor, destructor, or type conversion before '(' token
    3 | std::cout<<std::fixed<<std;;setprecision(10);
      |                                         ^
Language: C++

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


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

import java.util.*;

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


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

#include <iostream>

using namespace std; 
int mian(){
  int a, b;
  cin >> a >> b;
  cout << (double)a / b;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <ctsdio>
using namespace std;
 
int mian(){
  float a, b;
  cin >> a >> b;
  
  cout << a / b;
  
}

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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;
int mian(){
  float a, b;
  cin >> a >> b;
  cout << a / b;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int mian()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
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: In function 'int main()':
a.cc:7:9: error: 't' was not declared in this scope
    7 |   cout<<t/X<<endl;
      |         ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>

#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))

using namespace std;
int a,b;

int main(){
  cin >> a >> b;
  cout << fixed << setprecision(10) << (double)a / b << endl;
  return 0;
}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 'setprecision' was not declared in this scope
   17 |   cout << fixed << setprecision(10) << (double)a / b << endl;
      |                    ^~~~~~~~~~~~
a.cc:9:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    8 | #include<set>
  +++ |+#include <iomanip>
    9 | 
a.cc: At global scope:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> t >> x;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << t/x;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> t >> x;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << t/x
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:38: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 | cout << fixed << setprecision(10) << ans << endl;
      |                                      ^~~
      |                                      abs
Language: C++

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

int main() {
  int a,b;
 double c;
  cin >> a>>b;
  c=a/b

  cout << c <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'cout'
    8 |   c=a/b
      |        ^
      |        ;
    9 | 
   10 |   cout << c <<endl;
      |   ~~~~
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: In function 'int main()':
a.cc:6:6: error: expected ';' before 'T'
    6 |   cin T,X;
      |      ^~
      |      ;
Language: Java


import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		new Main().solve();
	}

	public void solve() {
		solveA();
		//		solveB();
		//		solveC();
		//		solveD();
	}

	private void solveA() {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = 0;
			n = scanner.nextInt();
			int[] wk = new int[n];
			for (int i = 0; i < n; i++) {
				wk[i] = scanner.nextInt();
			}
			Arrays.sort(wk);

			int count = 0;
			for (int i = 0; i < wk.length - 1; i++) {
				count += wk[i];
			}

			System.out.println(count <= wk[wk.length - 1] ? "No" : "Yes");

		}
	}

	boolean isExit = false;
	int res = 0;
	int[] wk;
	int[] wkH;
	int n = 0;

	private void solveB() {

		try (Scanner scanner = new Scanner(System.in)) {
			n = scanner.nextInt();
			wk = new int[n];
			for (int i = 0; i < n; i++) {
				wk[i] = scanner.nextInt();
			}
			wkH = wk;

			while (!isExit()) {
				res++;
				mizu();
			}

			System.out.println(res);
		}
	}

	private boolean isExit() {
		boolean res = true;

		for (int i = 0; i < wkH.length; i++) {
			if (wkH[i] != 0) {
				res = false;
			}
		}
		return res;
	}

	private void mizu() {

		for (int i = 0; i < wkH.length; i++) {

			if (wkH[i] == 0) {
				continue;
			} else if (wkH[i] > 0) {
				wkH[i]--;
				if (i + 1 < wkH.length && wkH[i + 1] == 0) {
					return;
				}
			}

		}
	}

	private void solveC() {

		try (Scanner scanner = new Scanner(System.in)) {
			a		int numN = 0;
			int numM = 0;
			numN = scanner.nextInt();
			numM = scanner.nextInt();

			int[] wk = new int[numM];

			for (int i = 0; i < wk.length; i++) {
				wk[i] = scanner.nextInt();
			}

			Arrays.sort(wk);

			int[] distArray = new int[numM - 1];

			for (int i = 0; i < distArray.length; i++) {
				distArray[i] = wk[i + 1] - wk[i];
			}

			Arrays.sort(distArray);

			int res = 0;
			for (int i = 0; i < numM - numN; i++) {
				res += distArray[i];
			}

			System.out.println(res);

		}
	}

	private void solveD() {

		try (Scanner scanner = new Scanner(System.in)) {
			int lineAB = 0;
			int lineBC = 0;
			int lineCA = 0;
			lineAB = scanner.nextInt();

			System.out.println("");

		}
	}
}

Compiler output:
Main.java:93: error: not a statement
			a		int numN = 0;
			^
Main.java:93: error: ';' expected
			a		int numN = 0;
			 ^
2 errors
Language: Java


import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
				new Main().solveA();
		//		new Main().solveB();
//		new Main().solveC();
		// new Main().solveD();
	}

	private void solveA() {
		try (Scanner scanner = new Scanner(System.in)) {
			int n = 0;
			n = scanner.nextInt();
			int[] wk = new int[n];
			for (int i = 0; i < n; i++) {
				wk[i] = scanner.nextInt();
			}
			Arrays.sort(wk);

			int count = 0;
			for (int i = 0; i < wk.length - 1; i++) {
				count += wk[i];
			}

			System.out.println(count <= wk[wk.length - 1] ? "No" : "Yes");

		}
	}

	boolean isExit = false;
	int res = 0;
	int[] wk;
	int[] wkH;
	int n = 0;

	private void solveB() {

		try (Scanner scanner = new Scanner(System.in)) {
			n = scanner.nextInt();
			wk = new int[n];
			for (int i = 0; i < n; i++) {
				wk[i] = scanner.nextInt();
			}
			wkH = wk;

			while (!isExit()) {
				res++;
				mizu();
			}

			System.out.println(res);
		}
	}

	private boolean isExit() {
		boolean res = true;

		for (int i = 0; i < wkH.length; i++) {
			if (wkH[i] != 0) {
				res = false;
			}
		}
		return res;
	}

	private void mizu() {

		for (int i = 0; i < wkH.length; i++) {

			if (wkH[i] == 0) {
				continue;
			} else if (wkH[i] > 0) {
				wkH[i]--;
				if (i + 1 < wkH.length && wkH[i + 1] == 0) {
					return;
				}
			}

		}
	}

	private void solveC() {

		try (Scanner scanner = new Scanner(System.in)) {
			a		int numN = 0;
			int numM = 0;
			numN = scanner.nextInt();
			numM = scanner.nextInt();

			int[] wk = new int[numM];

			for (int i = 0; i < wk.length; i++) {
				wk[i] = scanner.nextInt();
			}

			Arrays.sort(wk);

			int[] distArray = new int[numM - 1];

			for (int i = 0; i < distArray.length; i++) {
				distArray[i] = wk[i + 1] - wk[i];
			}

			Arrays.sort(distArray);

			int res = 0;
			for (int i = 0; i < numM - numN; i++) {
				res += distArray[i];
			}

			System.out.println(res);

		}
	}

	private void solveD() {

		try (Scanner scanner = new Scanner(System.in)) {
			int lineAB = 0;
			int lineBC = 0;
			int lineCA = 0;
			lineAB = scanner.nextInt();

			System.out.println("");

		}
	}
}

Compiler output:
Main.java:89: error: not a statement
			a		int numN = 0;
			^
Main.java:89: error: ';' expected
			a		int numN = 0;
			 ^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: Java

import java.util.*;

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

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

#include <stdio.h>
#include <stdlib.h>
int main(void) {
  char* m=malloc(8);
  if(! scanf("%d%d", (int*)m, (int*)(m+4)) ) exit(0);
  *(double*)m= (double) *(int*)m / *(int*)(m+4);
  printf("%f\n", *(double*)m);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
    4 |   char* m=malloc(8);
      |           ~~~~~~^~~
      |                 |
      |                 void*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> T >> X;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << T / (double)X << endl;
      |   ^~~~
a.cc:6:28: error: 'endl' was not declared in this scope
    6 |   cout << T / (double)X << endl;
      |                            ^~~~
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before numeric constant
    8 |   cout << T.0 / X.0 << endl;
      |            ^~
      |            ;
Language: C++

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

int main() {
  int T,X;
  cin >> T >> X;
  
  cout << T.0 / X.0 << end;
}
  
  



Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before numeric constant
    8 |   cout << T.0 / X.0 << end;
      |            ^~
      |            ;
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'ednl' was not declared in this scope
    7 |     cout<<T/X<<ednl;
      |                ^~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '>>' token
    6 |     cin>>>>X;
      |          ^~
a.cc:7:16: error: 'ednl' was not declared in this scope
    7 |     cout<<T/X<<ednl;
      |                ^~~~
Language: C++

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

#define ll long long
#define ld long double
#define ALL(a)  (a).begin(),(a).end()
#define spa << " " <<

int main(){
  ll t, x;
  cin >> t >> x;
  ld t2, x2;
  t2 = long double(t);
  x2 = long double(x);
  ld result = t2 / x2;
  cout << result << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected primary-expression before 'long'
   13 |   t2 = long double(t);
      |        ^~~~
a.cc:14:8: error: expected primary-expression before 'long'
   14 |   x2 = long double(x);
      |        ^~~~
Language: Java

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

public class Main{
  public static void main(String[] args) throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String s = br.readLine().split(" ");
    double ans = Double.parseDouble(s[0]) / Double.parseDouble(s[1]);
    System.out.println(ans);
  }
}

Compiler output:
Main.java:7: error: incompatible types: String[] cannot be converted to String
    String s = br.readLine().split(" ");
                                  ^
Main.java:8: error: array required, but String found
    double ans = Double.parseDouble(s[0]) / Double.parseDouble(s[1]);
                                     ^
Main.java:8: error: array required, but String found
    double ans = Double.parseDouble(s[0]) / Double.parseDouble(s[1]);
                                                                ^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'a' undeclared (first use in this function)
    5 | printf ("%lf",t/a);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: 'a' undeclared (first use in this function)
    5 | printf ("%f",t/a);
      |                ^
main.c:5:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected identifier or '(' before string constant
    5 | double ("%f",t/a);
      |         ^~~~
Language: C++

#include<bits/stdc++.h> using namespace std;using int32=int_fast32_t;using uint32=uint_fast32_t;using int64=int_fast64_t;using uint64=uint_fast64_t;using pi=pair<int32,int32>;using pll=pair<int64,int64>;using vi=vector<int32>;using vvi=vector<vector<int32>>;using vll=vector<int64>;using ll=int64;using ull=uint64;constexpr int32 INF=1<<30;constexpr ll INFLL=1LL<<62;#define all(x)x.begin(),x.end()#define LB(V,x)lower_bound(all(V),x)-V.begin()#define uint uint32
void Main(){
    int T, X;
    cin >> T >> X;
    cout << (float)T/X << endl;
}
int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h> using namespace std;using int32=int_fast32_t;using uint32=uint_fast32_t;using int64=int_fast64_t;using uint64=uint_fast64_t;using pi=pair<int32,int32>;using pll=pair<int64,int64>;using vi=vector<int32>;using vvi=vector<vector<int32>>;using vll=vector<int64>;using ll=int64;using ull=uint64;constexpr int32 INF=1<<30;constexpr ll INFLL=1LL<<62;#define all(x)x.begin(),x.end()#define LB(V,x)lower_bound(all(V),x)-V.begin()#define uint uint32
      |                         ^~~~~
a.cc: In function 'void Main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     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:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << (float)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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << (float)T/X << endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}
      |            ^~~
      |            std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:23: error: 'ios' has not been declared
    7 | int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}
      |                       ^~~
Language: C++

#include<bits/stdc++.h>using namespace std;using int32=int_fast32_t;using uint32=uint_fast32_t;using int64=int_fast64_t;using uint64=uint_fast64_t;using pi=pair<int32,int32>;using pll=pair<int64,int64>;using vi=vector<int32>;using vvi=vector<vector<int32>>;using vll=vector<int64>;using ll=int64;using ull=uint64;constexpr int32 INF=1<<30;constexpr ll INFLL=1LL<<62;#define all(x)x.begin(),x.end()#define LB(V,x)lower_bound(all(V),x)-V.begin()#define uint uint32
void Main(){
    int T, X;
    cin >> T >> X;
    cout << (float)T/X << endl;
}
int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}

Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;using int32=int_fast32_t;using uint32=uint_fast32_t;using int64=int_fast64_t;using uint64=uint_fast64_t;using pi=pair<int32,int32>;using pll=pair<int64,int64>;using vi=vector<int32>;using vvi=vector<vector<int32>>;using vll=vector<int64>;using ll=int64;using ull=uint64;constexpr int32 INF=1<<30;constexpr ll INFLL=1LL<<62;#define all(x)x.begin(),x.end()#define LB(V,x)lower_bound(all(V),x)-V.begin()#define uint uint32
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;using int32=int_fast32_t;using uint32=uint_fast32_t;using int64=int_fast64_t;using uint64=uint_fast64_t;using pi=pair<int32,int32>;using pll=pair<int64,int64>;using vi=vector<int32>;using vvi=vector<vector<int32>>;using vll=vector<int64>;using ll=int64;using ull=uint64;constexpr int32 INF=1<<30;constexpr ll INFLL=1LL<<62;#define all(x)x.begin(),x.end()#define LB(V,x)lower_bound(all(V),x)-V.begin()#define uint uint32
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'setprecicion' was not declared in this scope
   10 |   cout << fixed << setprecicion(10) << ans << endl;
      |                    ^~~~~~~~~~~~
Language: C++

        #include <iostream>
         
        int main()
        {
          int t, x;
          cin >> x >> t;
          
          cout << ((double) x / (double) t) << endl;
          return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |           cin >> x >> t;
      |           ^~~
      |           std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |           cout << ((double) x / (double) t) << 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:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |           cout << ((double) x / (double) t) << 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 <iostream>
     
    int main()
    {
      int t, x;
      cin >> x >> t;
      
      cout << ((double) x / (double)) t << endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |       cin >> x >> t;
      |       ^~~
      |       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << ((double) x / (double)) t << 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:30: error: expected primary-expression before 'double'
    8 |       cout << ((double) x / (double)) t << endl;
      |                              ^~~~~~
a.cc:8:30: error: expected ')' before 'double'
    8 |       cout << ((double) x / (double)) t << endl;
      |                             ~^~~~~~
      |                              )
a.cc:8:48: error: expected ')' before ';' token
    8 |       cout << ((double) x / (double)) t << endl;
      |               ~                                ^
      |                                                )
Language: C++

#include <iostream>

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


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 << x << t << endl;
      |   ^~~
      |   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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cin << x << t << 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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << ((double) x / (double)) t << 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:26: error: expected primary-expression before 'double'
    8 |   cout << ((double) x / (double)) t << endl;
      |                          ^~~~~~
a.cc:8:26: error: expected ')' before 'double'
    8 |   cout << ((double) x / (double)) t << endl;
      |                         ~^~~~~~
      |                          )
a.cc:8:44: error: expected ')' before ';' token
    8 |   cout << ((double) x / (double)) t << endl;
      |           ~                                ^
      |                                            )
Language: C

#include<atdio.h>
int main(){
  float a,b;
  scanf("%f %f",&a,&b);
  printf("%f\n",a / b);
  return 0;
}

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

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

#define INF_LL (int64)1e18
#define INF (int32)1e9
#define all(x) x.begin(),x.end()

using int32 = int_fast32_t;
using uint32 = uint_fast32_t;
using int64 = int_fast64_t;
using uint64 = uint_fast64_t;
using pi = pair<int32, int32>;
using pll = pair<int64, int64>;
using vi = vector<int32>;
using vll = vector<int64>;
using int = int32;
using ll = int64;

void Main(){
    int N;
    ll K;
    cin >> N >> K;
    vll A(N);
    for(auto &a:A) cin >> a;
    ll X = 0;
    for(int i=40;i>=0;i--){
        int c = 0;
        for(auto a:A) if((a>>i)&1) c++;
        if(c*2 < N && X+(1LL<<i) <= K) X += 1LL<<i;
    }
    for(auto &a:A) a ^= X;
    cout << accumulate(all(A), 0LL) << endl;
}

int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}

Compiler output:
a.cc:16:7: error: expected nested-name-specifier before 'int'
   16 | using int = int32;
      |       ^~~
Language: C++

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

#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for(i64 i = 0;i < (n);i++)
#define FOR(i, a, b) for(i64 i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second

using i32 = int_fast32_t;
using ui32 = uint_fast32_t;
using i64 = int_fast64_t;
using ui64 = uint_fast64_t;
using ll = i64;
using pi = pair<i32, i32>;
using pll = pair<i64, i64>;
using vi = vector<i32>;
using vll = vector<i64>;

int Main(){
    ll N, K;
    cin >> N >> K;
    vll A(N);
    for(auto &a:A) cin >> a;
    ll X = 0;
    for(int i=40;i>=0;i++){
        c = 0;
        for(auto &a:A) if((a>>i)&1) c++;
        if(c*2 > N && X+(1LL<<i) <= K) X += 1LL<<i;
    }
    for(auto &a:A) a ^= X;
    cout << accumulate(all(x), 0LL) << endl;
}

int main(){cin.tie(0);ios::sync_with_stdio(false);Main();return 0;}

Compiler output:
a.cc: In function 'int Main()':
a.cc:29:9: error: 'c' was not declared in this scope
   29 |         c = 0;
      |         ^
a.cc:34:28: error: 'x' was not declared in this scope
   34 |     cout << accumulate(all(x), 0LL) << endl;
      |                            ^
a.cc:8:16: note: in definition of macro 'all'
    8 | #define all(x) x.begin(),x.end()
      |                ^
a.cc:35:1: warning: no return statement in function returning non-void [-Wreturn-type]
   35 | }
      | ^