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

#include <iostream>
#include <string>

using namespace std;

#define int long long

signed main()
{
    int A;
    cin >> A;
    string S;
    cin >> S;
    reverse(S.begin(),S.end());
    int D = (int)(S[0] - '0');
    D += 10 * (int)(S[1] - '0');
    D += 100 * (int)(S[3] - '0');

    cout << (A * D) / 100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'reverse' was not declared in this scope
   14 |     reverse(S.begin(),S.end());
      |     ^~~~~~~
Language: Java

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main3 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.next();
		String b = sc.next();
		//long[] a = new long[n];
		String s = "";
		BigDecimal bdb = new BigDecimal(String.valueOf(b));
		BigDecimal bda = new BigDecimal(String.valueOf(a));

		BigDecimal bd1 = bda.multiply(bdb).setScale(0, RoundingMode.DOWN);

		s = bd1.toPlainString();


		sc.close();
			System.out.println(s);


	}

}


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

#include <bits/stdc++.h>
using namespace std;
using ll= long long ;
using P = pair<ll,ll>;
#define rep(i,n) for (ll i = 0; i<(ll)(n); i++)
#define mod 1000000007
#define pi 3.141592653589793
typedef vector<ll> vcl;

ll gcd(ll a,ll b){
    if(b>a) swap(a,b);
    if(b==0) return a;
    return gcd(b,a%b);
}
ll lcm(ll a, ll b){
    ll g=gcd(a,b);
    return a/g*b;
}
ll rep_jijo(ll n,ll x){
    if(x==0) return 1;
    if(x%2==0){
        ll t =rep_jijo(n,x/2);
        return t*t%mod;
  }
  return n*rep_jijo(n,x-1)%mod;
}
ll c2(ll n){
    return n*(n-1)/2;
}

int main(){
//    int64_t a,x;
//    long double b;
//    cin >> a >> b;
//    x=a*b;
//    printf("%ld\n",x);
//    return 0;
 ll a;
 double b;
 cin>>a>>b;
 double c=100*b;
 ll d=c;
 a*=d;
 a/=100;
 printf('%d',a);
 return 0;
}


Compiler output:
a.cc:45:9: warning: multi-character character constant [-Wmultichar]
   45 |  printf('%d',a);
      |         ^~~~
a.cc: In function 'int main()':
a.cc:45:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   45 |  printf('%d',a);
      |         ^~~~
      |         |
      |         int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

int main()
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);

    ll A;
    double B;
    cin >> A >> B;

    B *= 100;
    ll res = (ll)(A * B);

    cout << round(res / 100) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout.tie(0);
      |     ^~~~
a.cc:5:5: error: 'ios' has not been declared
    5 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll A;
      |     ^~
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A >> B;
      |            ^
a.cc:12:7: error: expected ';' before 'res'
   12 |     ll res = (ll)(A * B);
      |       ^~~~
      |       ;
a.cc:14:19: error: 'res' was not declared in this scope
   14 |     cout << round(res / 100) << endl;
      |                   ^~~
a.cc:14:13: error: 'round' was not declared in this scope
   14 |     cout << round(res / 100) << endl;
      |             ^~~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |     cout << round(res / 100) << endl;
      |                                 ^~~~
Language: C++

int main()
{
    cin.tie(0);
    cout.tie(0);
    ios::sync_with_stdio(false);

    ll A;
    double B;
    B *= 100;
    ll res = (ll)(A * B);

    cout << round(res / 100) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin.tie(0);
      |     ^~~
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout.tie(0);
      |     ^~~~
a.cc:5:5: error: 'ios' has not been declared
    5 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll A;
      |     ^~
a.cc:10:7: error: expected ';' before 'res'
   10 |     ll res = (ll)(A * B);
      |       ^~~~
      |       ;
a.cc:12:19: error: 'res' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |                   ^~~
a.cc:12:13: error: 'round' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |             ^~~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |     cout << round(res / 100) << endl;
      |                                 ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
int main()
{
    int n;cin >> n;
    vector<ll> a(n);ll ans = 1;
    for(int i = 0;i < n;i++)
    {
        scanf("%lld",&a[i]);
        if(a[i] == 0)
        {
            cout << 0 ;return 0;
        }
        if(1e18 / ans < a[i])
        {
            puts("-1");return 0;
        }
        ans *= a[i];
    }
    if(ans > 1e18)ans = -1;
    cout << ans;


    return 0;
}

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

#include <bits/stdc++.h>
#include <queue>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int main(){
  ll a;
  cin>>a;
  double b;
  cin>>b;
  cout<<ll(a(*b*100)/100)<<endl;
  
 
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid type argument of unary '*' (have 'double')
   13 |   cout<<ll(a(*b*100)/100)<<endl;
      |              ^~
a.cc:13:20: error: 'a' cannot be used as a function
   13 |   cout<<ll(a(*b*100)/100)<<endl;
      |                    ^
Language: C++

#include <bits/stdc++.h>
#include <queue>
#define rep(i,n) for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int main(){
  ll a;
  cin>>a;
  double b;
  cin>>b;
  cout<<lla*(b*100)/100<<endl;
  
 
  

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'lla' was not declared in this scope; did you mean 'll'?
   13 |   cout<<lla*(b*100)/100<<endl;
      |         ^~~
      |         ll
Language: C++

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<((ll)n))
#define SUBS(s,f,t) ((s).substr((f),(t)-(f)))
#define ALL(a) (a).begin(),(a).end()
#define Max(a) (*max_element(ALL(a)))
#define Min(a) (*min_element(ALL(a)))
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll a;cin>>a;
  double b;cin>>b;
  b *= 100;
  ll = b;
  cout<<(a*b)/100<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:6: error: expected unqualified-id before '=' token
   25 |   ll = b;
      |      ^
Language: C++

#include <boost/multiprecision/cpp_int.hpp>
#include <iostream>
namespace mp = boost::multiprecision;
using namespace std;
int main(){
  mp::cpp_int u,w;
  float v;
  cin>>u>>v;
  w = u*v;
  cout<<w;
  return 0;
}


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

#include <boost/multiprecision/cpp_int.hpp>
#include <iostream>
namespace mp = boost::multiprecision;
using namespace std;
int main(){
  mp::cpp_int u;
  float v;
  cout<<mp::cpp_int(u*v);
  return 0;
}


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

#include<iostream>

int main(){
    int a; cin>>a;
    double b; cin>>b;
    // cout << "b=" << b << endl;
    double b1 = b*100+0.5;
    int b2 = int(b1);
    // cout << "b1=" << b1 << endl;
    // cout << "b2=" << b2 << endl;
    int c = (a*b2)/100;
    // cout << a*b2 << endl;
  
  std::cout<<c<<std::endl;
}

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

#include<iostream>
#define ll long long;
int main(){
    ll a; cin>>a;
    double b; cin>>b;
    // cout << "b=" << b << endl;
    double b1 = b*100+0.5;
    int b2 = int(b1);
    // cout << "b1=" << b1 << endl;
    // cout << "b2=" << b2 << endl;
    ll c = (a*b2)/100;
    // cout << a*b2 << endl;
  
  std::cout<<c<<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: declaration does not declare anything [-fpermissive]
    2 | #define ll long long;
      |                 ^~~~
a.cc:4:5: note: in expansion of macro 'll'
    4 |     ll a; cin>>a;
      |     ^~
a.cc:4:8: error: 'a' was not declared in this scope
    4 |     ll a; cin>>a;
      |        ^
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     ll a; cin>>a;
      |           ^~~
      |           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:2:17: error: declaration does not declare anything [-fpermissive]
    2 | #define ll long long;
      |                 ^~~~
a.cc:11:5: note: in expansion of macro 'll'
   11 |     ll c = (a*b2)/100;
      |     ^~
a.cc:11:8: error: 'c' was not declared in this scope
   11 |     ll c = (a*b2)/100;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(i,n); for(long long i = 0;i < (n);i++)
using ll = long long;
using P = pair<long long,long long>;
template <class T> using vec = vector<T>;

int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    ll a; cin >> a;
    double b; cin >> b;
  　b += 0.001
    b *=100;
    ll b100 = (ll)b / 100;
    ll b10 = ((ll)b%100)/10;
    ll b1 = (ll)b % 10;
    cout << b1 * a / 100 + b10 * a/ 10 + b100 * a  + ((b1*a)%100 + (b10*a)%10*10)/100<< endl;  
}


Compiler output:
a.cc:14:3: error: extended character 　 is not valid in an identifier
   14 |   　b += 0.001
      |   ^
a.cc: In function 'int main()':
a.cc:14:3: error: '\U00003000b' was not declared in this scope
   14 |   　b += 0.001
      |   ^~~
Language: C++

        #include <bits/stdc++.h>
        using namespace std;
        int main() {
          long long a,n;
          double b;
            cin >> a >> b;
          n=b*100*a
            cout << n/100 << endl;
          }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before 'cout'
    7 |           n=b*100*a
      |                    ^
      |                    ;
    8 |             cout << n/100 << endl;
      |             ~~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(),x.end()
#define rep(i,n) for(int i=0;i<(n);i++)
#define debug(v) cout<<#v<<":";for(auto x:v){cout<<x<<' ';}cout<<endl;
#define INF 1000000000
#define mod 1000000007
using ll=long long;
const ll LINF=1001002003004005006ll;
int dx[]={1,0,-1,0};
int dy[]={0,1,0,-1};
// ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T &a,const T &b){if(b<a){a=b;return true;}return false;}

signed main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    long double a,b;cin>>a>>b;
    long double res=a*b+0.005;
    ll ans=floorl(res);
    cout<<ans<<endl;
    return 0;
}


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

#include<iostream>

using namespace std;

int main() {
  long long a, c;
  float b;
  cin >> a >> b;
  b *= 100;
  b = round(b);
  c = (long long)b;
  a = a*c;
  a = a/100;
  cout << a << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'round' was not declared in this scope
   10 |   b = round(b);
      |       ^~~~~
Language: C++

#include<iostream>

using namespace std;

int main() {
  long long a, c;
  float b;
  cin >> a >> b;
  b *= 100;
  c = (long long)b;
  a = a*c:;
  a = a/100;
  cout << a << endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before ':' token
   11 |   a = a*c:;
      |          ^
      |          ;
Language: C++

//2020-06-02 
#include <bits/stdc++.h>
using namespace std;
#define loop(v, st, en) for (int v = st; v < en; v++)
#define loopdesc(v, st, en) for (int v = st; v >= en; v--)
#define INF 1E9
#define clr(v, d) memset(v, d, sizeof(v))
#define pb push_back
#define MP make_pair
#define P(x) cout << #x  <<" = { "<< x<<" }\n"
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
const int M=2e5+5;



int main () {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    //freopen("input.txt", "r", stdin);
    ll a, b, c,d;cin>>a>>b;
    char c;cin>>c;
    cin>>d;
    b*=100;
    b+=d;
    c=a*b;
    cout <<c/100<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:10: error: conflicting declaration 'char c'
   25 |     char c;cin>>c;
      |          ^
a.cc:24:14: note: previous declaration as 'll c'
   24 |     ll a, b, c,d;cin>>a>>b;
      |              ^
Language: C

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

#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define debug(a) cerr << #a << ": " << a << endl
#define int long long
#define endl '\n'

const int N = 2005;


int32_t main()
{
      IOS;

      long double a, b;
      cin>>a>>b;
      int ans = round( a * b);
      cout<<ans;

      return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef map<int,int> mii;
typedef map<ll,ll> mll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define fi first
#define se second
#define pi 3.141592653589793
#define mod 1000000007
#define pb push_back
#define all(v) v.begin(),v.end()
#define rall(v) v.begin(), v.end(), greater<ll>()
#define tc int t;cin>>t;while(t--)
#define pqmax priority_queue<int>
#define pqmin priority_queue<int,vi,greater<int>>
#define fast_io ios_base::sync_with_stdio(0), cin.tie(NULL)
#define tc_g int tt;cin>>tt;for(int ti=1;ti<=tt;ti++)
#define case_g "Case #"<<ti<<": "
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_multiset;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
typedef tree<int, int, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_map;
using namespace std;
int main() {
    ll a;
    long double b;
    cin >> a >> b;
    cout << (ll)((a*(b*100))/100));
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:34: error: expected ';' before ')' token
   38 |     cout << (ll)((a*(b*100))/100));
      |                                  ^
      |                                  ;
Language: C++

#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define rep(i, a, b) for(i = a; i < b; i++)
#define per(i, a, b) for(i = a; i >= b; i--)
#define all(x) x.begin(), x.end()
#define trav(x, it) for(auto it = x.begin(); it != x.end(); it++)
#define pr(x) cout << #x << " = " << x << endl
#define fill(x,y) memset(x,y,sizeof(x))
#define endl "\n"
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector< pii > vpii;
typedef vector< pll > vpll;
double eps = 1e-7;
ll mod = 1000000007;
ll N = 998244353;

ll binpow(ll b, ll p){ ll ans = 1; while(p > 0){if(p & 1) ans = (ans * b) % mod; b = (b * b) % mod; p >>= 1;}return ans;}
ll modinv(ll x){return binpow(x, mod - 2);}

void solve()
{
	ll a;
	double b;
	cin >> a >> b;
	ll b2 = b * 100 + 0.5
	ll ans = a * b2 / 100
	cout << ans << endl;

}

signed main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	int t = 1;
	//cin >> t;
	while(t--)
	{
		solve();
	}
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:36:9: error: expected ',' or ';' before 'll'
   36 |         ll ans = a * b2 / 100
      |         ^~
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
signed main() {
  ll a;
  double b;
  cin >> a >> b;
  b = b * 100 + 0.5;
  a *~ b;
  a /= 100;
  cout << a << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: wrong type argument to bit-complement
    9 |   a *~ b;
      |        ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define ld long double
#define pb push_back
#define mp make_pair
#define test long long int t; cin>>t; while(t-->0)
#define fIO ios_base::sync_with_stdio(false); cin.tie(NULL);
#define loop(i,n) for (ll i = 0; i < n; i++)
 
#define sz(x) int(x.size())
#define F first
#define S second
 
#define mii map<ll,ll>
#define vi vector<ll>
#define seti set<ll>
#define pii pair<ll,ll>
 
#define gcd(a,b) __gcd((a),(b))
#define lcm(a,b) (a/gcd(a,b))*b

#define endl '\n'
using namespace std;
const int N=1e6;
    

int main()
    {
        fIO
        ld a,b;
        cin>>a>>b;
        ll x=b*100;
        ld x=(a*x)/100.0;
        ll z=floor(x);
        cout<<z;
        
        
        
        
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:33:12: error: conflicting declaration 'long double x'
   33 |         ld x=(a*x)/100.0;
      |            ^
a.cc:32:12: note: previous declaration as 'long long int x'
   32 |         ll x=b*100;
      |            ^
Language: C++

//#include <math.h>
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<(n);i++)
#include<stdio.h>
#include <iostream>
#include <vector>
using namespace std;
using ll = long long

int main(){
    long long n;
    double m;
    cin >> n >> m;
    long long ans;
    long long m2 = m*100+0.5;
    ans = (int) n*m2/100;
    cout << ans<<endl;
    
}


Compiler output:
a.cc:10:4: error: expected ';' before 'main'
   10 | int main(){
      |    ^~~~~
      |    ;
Language: Java

import java.util.Scanner;


class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   double B = sc.nextDouble();
   long b = (double) B*100;

   System.out.println(A*b/100);
 
 }
}



Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to long
   long b = (double) B*100;
                      ^
1 error
Language: C++

#include<bits/stdc++.h>

#define ull unsigned long long int
#define ll long long
#define vi vector<int>
#define mii map<int,int>
#define all(x) x.begin(),x.end()
#define endl "\n"
#define pb push_back
#define MOD 1e9+7
#define INF 0x3f3f3f3f

using namespace std;
int dx[]={-1,0,1,0};
int dy[]={0,1,0,-1};

int main()
{
 ll A, B; cin >> A >> B;
    char C; cin >> C;
    int D; cin >> D;
    B *= 100; B += D;
    ll X = A*B; X /= 100;
    cout << X << nl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: 'nl' was not declared in this scope; did you mean 'ynl'?
   24 |     cout << X << nl;
      |                  ^~
      |                  ynl
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
    long long a;
    double b;
    scanf("%lld%lf", &a, &b);
    a= a*(int)(b*100);
    printf("%lld\n",a/100;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ')' before ';' token
    9 |     printf("%lld\n",a/100;
      |           ~              ^
      |                          )
Language: C++

#include"bits/stdc++.h"
//#include<boost/multi_array.hpp>
//#include<boost/optional.hpp>
//#include<boost/range/irange.hpp>
//#include<boost/range/algorithm.hpp>
//#include<boost/range/adaptors.hpp>

using namespace std;
//namespace adaptor = boost::adaptors;

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

void Main()
{
	int n;
	cin >> n;
	vector<ll> a(n);
	rep(i, n) {
		cin >> a[i];
	}
	reverse(a.begin(), a.end());
	ll ans = 1;
	if (a[0] == 0) {
		cout << 0 << endl;
		return;
	}

	rep(i, n) {
		ans *= a[i];
		if (a[i] > 1000000000000000000) {
			cout << -1 << endl;
			return;
		}
	}
	cout << ans << endl;
}

void Main2()
{
	long long int a;
	long double b;
	cin >> a >> b;
	cout << long long int((a * (b * 100)) / 100) << endl;
}

int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	//Main();
	Main2();
	return 0;
}

Compiler output:
a.cc: In function 'void Main2()':
a.cc:46:17: error: expected primary-expression before 'long'
   46 |         cout << long long int((a * (b * 100)) / 100) << endl;
      |                 ^~~~
Language: C++

     #include <bits/stdc++.h> 
        using namespace std; 
        #define int long long
        # define pii pair<int,int>
        const int maxn=1e6+5;
        signed main() { 
            #ifndef ONLINE_JUDGE
            freopen("input.txt","r",stdin);
            freopen("output.txt","w",stdout);
            #endif
            ios::sync_with_stdio(0);
            cin.tie(0);
             double int a,b;
             cin>>a>>b;
             cout<<(a*(b*100))/100;
        } 

Compiler output:
a.cc: In function 'int main()':
a.cc:3:26: error: 'long long' specified with 'double'
    3 |         #define int long long
      |                          ^~~~
a.cc:13:21: note: in expansion of macro 'int'
   13 |              double int a,b;
      |                     ^~~
a.cc:3:26: error: 'long long' specified with 'double'
    3 |         #define int long long
      |                          ^~~~
a.cc:13:21: note: in expansion of macro 'int'
   13 |              double int a,b;
      |                     ^~~
Language: C++


//don't go gentle into
// the goodnight.

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

#define int       long long
#define ll        long long
#define fr        first
#define sec       second
#define pi        3.141592653589793
#define M         1000000007
#define mod       998244353
#define maxint    2147483647
#define minint    -2147483648
#define maxll     9223372036854775807
#define minll     -9223372036854775808
#define meme0(a)  memset(a,0,sizeof(a));
#define meme1(a)  memset(a,-1,sizeof(a));
#define i_m_speed ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define open      freopen("input.txt","r",stdin);
#define close     freopen("output.txt","w",stdout);
#define v_int     vector<int >
#define v_ll      vector<long long >
#define pb        push_back
#define mk        make_pair
//upper_bound(begin(),end(),key)
//lower_bound(begin(),.end(),key);

ll expo(ll x , ll n , ll m){
    if(n==0)
        return 1;
    else if(n%2==0)
        return expo((x*x)%m , n/2 , m);
    else
        return (x*expo((x*x)%m,(n-1)/2,m))%m;

}
string toBinary(ll n)
{
    std::string r;
    while(n!=0){
        r=(n%2==0 ?"0":"1")+r;
        n/=2;
    }
    return r;
}
void solve(){
    ll A, B; cin >> A >> B;
    char C; cin >> C;
    int D; cin >> D;
    B *= 100; B += D;
    ll X = A*B; X /= 100;
    cout << X << endl;

    return;

Compiler output:
a.cc: In function 'void solve()':
a.cc:57:12: error: expected '}' at end of input
   57 |     return;
      |            ^
a.cc:49:13: note: to match this '{'
   49 | void solve(){
      |             ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define endl "\n"
using namespace std;

void solve(){
	double a,b
	cin>>a>>b;
	cout<<(int)a*b<<endl;
}
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t=1;
	//cin>>t;
	while(t--)solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:8:9: error: expected initializer before 'cin'
    8 |         cin>>a>>b;
      |         ^~~
a.cc:9:22: error: 'b' was not declared in this scope
    9 |         cout<<(int)a*b<<endl;
      |                      ^
Language: C

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

int main(void){
    long long int a;
    long double b;
    cin >> a >> b;
    cout << (long long int)floor(a * b) << endl;
    return 0;
}

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


#include <iostream>
using namespace std;
#include <vector>
int main(){
long long int a;
  double b;
  cin >> a >> b;
  a=a*b(long long int);
  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before 'long'
    9 |   a=a*b(long long int);
      |         ^~~~
a.cc:9:22: error: 'b' cannot be used as a function
    9 |   a=a*b(long long int);
      |                      ^
Language: C++

#include <iostream>

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

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

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

#include <iostream>
using namespace std;

typedef long long ll;

int main()
{
	ll a;
	double b;

	cin >> a >> b;

	cout << (ll)((a * (ll)round(b * 100)) / 100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: 'round' was not declared in this scope
   13 |         cout << (ll)((a * (ll)round(b * 100)) / 100);
      |                               ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  long long A; float B; cin>>A>>B;
  cout<<floor(A*B);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'floor' was not declared in this scope
    6 |   cout<<floor(A*B);
      |         ^~~~~
Language: C++

#include <iostream>
usinf namespace std;
int main()
{
  int A, B; cin>>A>>B;
  cout<<(int)A*B;
  return 0;
}

Compiler output:
a.cc:2:1: error: 'usinf' does not name a type
    2 | usinf namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int A, B; 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<<(int)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 <stdio.h>

int main()
{long long a,b;
scanf("%ll %ll",&a,&b);
b=100*b;
a=a*b
printf("%ll",a/100);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'printf'
    7 | a=a*b
      |      ^
      |      ;
    8 | printf("%ll",a/100);
      | ~~~~~~
Language: C++

#include<bits/stdc++.h>
#define int long long 
using namespace std;
int32_t main(){
  int a;
  float b;
  cin>>a>>b;
  long long double x = a*b;
   cout<<floor(x);
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:8:8: error: 'long long' specified with 'double'
    8 |   long long double x = a*b;
      |        ^~~~
Language: C++

#include<iostream>
#include<cmath>
 
using namespace std;
 
int main(){
  long long a
  long double b;
  cin >> a >> b;
  cout << (long long)floor(a*b) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'long'
    8 |   long double b;
      |   ^~~~
a.cc:9:10: error: 'a' was not declared in this scope
    9 |   cin >> a >> b;
      |          ^
a.cc:9:15: error: 'b' was not declared in this scope
    9 |   cin >> a >> b;
      |               ^
Language: C

#include <stdio.h>
long long a [100010];
int main (){
int n;
scanf("%d",&n);
for(int i=0;i<n;i++) scanf("%lld",&a[i]);
int zero =0;
2
for(int i=0;i<n;i++)if(a[i]==0) zero ++;
if(zero >0){
// a[i] contains 0
printf("0\n");
return 0;
}
long long prod =1;
for(int i=0;i<n;i++){
if(a[i ] <=1000000000000000000/ prod ){
// This condition is equivalent to
  prod *=a[i];
}else{
printf("-1\n");
return 0;
}
}
printf("%lld\n",prod );
}

Compiler output:
main.c: In function 'main':
main.c:8:2: error: expected ';' before 'for'
    8 | 2
      |  ^
      |  ;
    9 | for(int i=0;i<n;i++)if(a[i]==0) zero ++;
      | ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define lli long long int
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
int main(){
    int A;cin>>A;
    int* B_d,B_f;
    scanf("%d.%d",&B_d,&B_f);
    double res=A*(B_d*100+B_f)/100;
    cout<<(int)res<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: invalid operands of types 'int*' and 'int' to binary 'operator*'
   10 |     double res=A*(B_d*100+B_f)/100;
      |                   ~~~^~~~
      |                   |   |
      |                   |   int
      |                   int*
Language: C++

#include<bits/stdc++.h> 
using namespace std; 
int main(){
  long long a;
  long double b;
  cin>>a>>b; 
  long double m=b*100;
 cout<<(a*((long long)m +0.1)/100;
  
  
  
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ')' before ';' token
    8 |  cout<<(a*((long long)m +0.1)/100;
      |        ~                         ^
      |                                  )
Language: C++

#include<bits/stdc++.h> 
using namespace std; 
int main(){
  long long a;
  long double b;
  cin>>a>>b; 
  long double m=b*100;
 cout<<(a*((long long)m +0.5)/100;
  
  
  
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ')' before ';' token
    8 |  cout<<(a*((long long)m +0.5)/100;
      |        ~                         ^
      |                                  )
Language: C

#include <stdio.h>

int main(){
    long long int a;
    double b;

    scanf("%lld %lf",&a,&b);

    long long int r = a*b;
    (int) num;

    printf("%.lld\n",num - ((int)num));




    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:11: error: 'num' undeclared (first use in this function)
   10 |     (int) num;
      |           ^~~
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i = 0; i < n; ++i)

ll round(double x){
  x += 0.5;
  return (ll)x;
}

int main(){
  ll a; double b; cin >> a >> b;
  cout << round(a*b) << endl;
}

Compiler output:
a.cc:6:4: error: ambiguating new declaration of 'll round(double)'
    6 | ll round(double x){
      |    ^~~~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:334:1: note: old declaration 'double round(double)'
  334 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
Language: C++

#include<bits\stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i = 0; i < n; ++i)

ll round(double x){
  x += 0.5;
  return (ll)x;
}

int main(){
  ll a; double b; cin >> a >> b;
  cout << round(a*b) << endl;
}

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

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

typedef long long ll;

#define PB push_back
#define MP make_pair

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
    long double a; cin >> a;
    long double b; cin >> b;
    ll ans = trunc(a * (b * 100) / 100;
    cout << ans << "\n";
}

/* stuff you should look for
	* int overflow, array bounds
	* special cases (n=1?)
	* do smth instead of nothing and stay organized
	* print new lines
*/



Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected ')' before ';' token
   13 |     ll ans = trunc(a * (b * 100) / 100;
      |                   ~                   ^
      |                                       )
Language: C

#include <stdio.h>


int main() {

    long long a
    long double b; 
    scanf("%lld %llf", &a, &b);

    long long c =a*b;

    printf("%lld", c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before 'long'
    6 |     long long a
      |                ^
      |                ;
    7 |     long double b;
      |     ~~~~        
main.c:8:25: error: 'a' undeclared (first use in this function)
    8 |     scanf("%lld %llf", &a, &b);
      |                         ^
main.c:8:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>


int main() {

    long long a
    long double b; 
    scanf("%lld %lf", &a, &b);

    long long c =a*b;

    printf("%lld", c);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected ';' before 'long'
    6 |     long long a
      |                ^
      |                ;
    7 |     long double b;
      |     ~~~~        
main.c:8:24: error: 'a' undeclared (first use in this function)
    8 |     scanf("%lld %lf", &a, &b);
      |                        ^
main.c:8:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

#define int long long

using namespace std;

const long double EPS = 1e-20;

int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    long double A, B;
    cin >> A >> B;
    A+=EPS;
B+= EPS;
    long double temp = A*B;

int t = temp

    cout << t<< '\n';

    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:23:5: error: expected ',' or ';' before 'cout'
   23 |     cout << t<< '\n';
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

#define int long long

using namespace std;

const long double EPS = 1e-20

int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    long double A, B;
    cin >> A >> B;
    A+=EPS;
B+= EPS;
    int temp = A*B;

    cout << temp << '\n';

    return 0;
}


Compiler output:
a.cc:9:1: error: expected ',' or ';' before 'int32_t'
    9 | int32_t main()
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>

#define int long long

using namespace std;



int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    int A;
long double B;
    cin >> A >> B;
int c = B*100

    int temp = A*B;

    cout << temp/100 << '\n';

    return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:3:13: error: expected ',' or ';' before 'long'
    3 | #define int long long
      |             ^~~~
a.cc:20:5: note: in expansion of macro 'int'
   20 |     int temp = A*B;
      |     ^~~
a.cc:22:13: error: 'temp' was not declared in this scope; did you mean 'tm'?
   22 |     cout << temp/100 << '\n';
      |             ^~~~
      |             tm
Language: C++

#include <bits/stdc++.h>
using namespace::std;
#define int long long

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sax(x) cout << "!!!!!!!!!!! " << #x << " = " << x << '\n'
#define inf (sizeof(int) == 4 ? (int)1E9 : (int)1E18)
#define one(x) x.insert(x.begin(), 0);
#define TCT template <class T>
#define TCT12 template <class T1, class T2>

//#include <ext/pb_ds/assoc_container.hpp>
//using namespace __gnu_pbds;
//typedef tree<int,null_type,less_equal<int>,rb_tree_tag,
//tree_order_statistics_node_update> imsi;

TCT12 istream& operator>>(istream &I, pair<T1,T2>& p) {return I >> p.first >> p.second;}
TCT12 ostream& operator<<(ostream &O, const pair<T1,T2>& p) {return O << '(' << p.first << ' ' << p.second << ')';}
TCT istream& operator>>(istream &I, vector<T>& v) {for (T &e: v) I >> e; return I;}
TCT ostream& operator<<(ostream &O, const vector<T>& v) {for (const T &e: v) O << e << ' '; return O;}
TCT ostream& operator<<(ostream &O, const unordered_set<T>& v) {for (const T &e: v) O << e << ' '; return O;}
TCT ostream& operator<<(ostream &O, const set<T>& v) {for (const T &e: v) O << e << ' '; return O;}
TCT ostream& operator<<(ostream &O, const unordered_multiset<T>& v) {for (const T &e: v) O << e << ' '; return O;}
TCT ostream& operator<<(ostream &O, const multiset<T>& v) {for (const T &e: v) O << e << ' '; return O;}
TCT12 ostream& operator<<(ostream &O, const unordered_map<T1,T2>& v) {for (const auto &e: v) O << e << ' '; return O;}
TCT12 ostream& operator<<(ostream &O, const map<T1,T2>& v) {for (const auto &e: v) O << e << ' '; return O;}
TCT istream& operator>>(istream &I, deque<T>& v) {for (T &e: v) I >> e; return I;}
TCT ostream& operator<<(ostream &O, const deque<T>& v) {for (const T &e: v) O << e << ' '; return O;}
typedef pair<int,int> pii;
typedef vector<int> vi;







void _main() {
        double a, b; cin >> a >> b;
        cout << int(a* b);
}



signed main() {
        ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
        int _t = 1;
//        cin >> _t;
        while (_t--) _main();
        return 0;
}

Compiler output:
a.cc: In function 'void _main()':
a.cc:3:13: error: expected primary-expression before 'long'
    3 | #define int long long
      |             ^~~~
a.cc:41:17: note: in expansion of macro 'int'
   41 |         cout << int(a* b);
      |                 ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	long double A,B; cin>>A>>B;
	cout<<long long(A*B)<<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression before 'long'
    5 |         cout<<long long(A*B)<<"\n";
      |               ^~~~
Language: Java

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

public class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
	long a = sc.nextLong();
	if(a > 1000000000000000L)
	System.exit(1);
	double b = sc.nextDouble();
	if(b > 10000000000)
	System.exit(1);
	sc.close();
	double c = a * b;
	System.out.println((long) c);
    }
}

Compiler output:
Main.java:11: error: integer number too large
	if(b > 10000000000)
	       ^
1 error
Language: C++

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

int main() {
	double a,b;
	cin>>a>>b;
	doube ans = (a*(b*100))/100;
	cout<<(ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'doube' was not declared in this scope; did you mean 'double'?
    8 |         doube ans = (a*(b*100))/100;
      |         ^~~~~
      |         double
a.cc:9:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         cout<<(ans);
      |                ^~~
      |                abs
Language: C++

/***"In the name of Allah(swt), the most gracious, most merciful. Allah(swt) blesses with knowledge whom he wants."***/
/*** "ALHAMDULILLAH for Everything..." ***/
#include<bits/stdc++.h>
using namespace std;
#define  fastt       ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define  ll         long long
#define  debug      printf("Come here!")
#define  inf        1000000000000000000
#define  pb         push_back
#define  mp         make_pair
#define  sz(a)      a.size()
#define  mem(a,b)   memset(a,b,sizeof(a))
#define  clr(x)     x.clear()
#define  ff         first
#define  ss         second
#define  case(x)    cout << "Case " << x <<": "

#define  md         1000000007
#define  pi         acos(-1.0)
#define  cos(a)     cos(a*pi/180)
#define  sin(a)     sin(a*pi/180)
#define  tan(a)     tan(a*pi/180)
#define  cosi(a)    acos(a)/(pi/180)
#define  sini(a)    asin(a)/(pi/180)
#define  tani(a)    atan(a)/(pi/180)

#define  vl         vector <ll>
#define  vs         vector <string>
#define  vc         vector <char>
#define  vpll       vector < pair <ll, ll> >
#define  vpsl       vector < pair <string, ll> >
#define  vpls       vector < pair <ll, string> >
#define  pql        priority_queue<ll>
#define  minpql     priority_queue<ll,vector<ll>,greater<ll> >

#define  setbits(x)     __builtin_popcountll(x)
#define  zerobits(x)    __builtin_ctzll(x)

#define toll(a) atoll(a.c_str())
string tostr(ll a) {stringstream rr;rr<<a;return rr.str();}
ll pow(ll c,ll d){return d==0?:c*pow(c,d-1);}
ll gcd(ll a,ll b) {return b==0? a:gcd(b,a%b);}
ll lcm(ll a,ll b) {return ((a*b)/gcd(a,b));}

/* mpp.max_load_factor(0.25); mpp.reserve(1024); */
/* cout << fixed << setprecision(12);*/

int main()
{


        ll   k, i, j, x, y, p=0, s=0, h, f=0;
        double m;
        cin>>n>>m;
        y=m*100;
        x=n*y;

        x/=100;
        cout<<x<<endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:54:14: error: 'n' was not declared in this scope
   54 |         cin>>n>>m;
      |              ^
Language: Java


import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
  public static void main(String[] args) throws Exception {
    solve(System.in, System.out);
  }

  static void solve(InputStream is, PrintStream os) {
    // Your code here!
    Scanner scan = new Scanner(is);
    long A = scan.nextLong();
    double B = scan.nextDouble();
    long temp = A*(long)(B*100);

    os.println((temp/100);
  }
}


Compiler output:
Main.java:18: error: ')' or ',' expected
    os.println((temp/100);
                         ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int64_t a;
    double b;
    cin >> a >> b;
    double b_1=100*b+0.05
    cout << a*(long long)b_1/ 100;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'cout'
    8 |     cout << a*(long long)b_1/ 100;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,a,b) for(ll i=ll(a);i<ll(b);i++)
#define irep(i,a,b) for(ll i=ll(a);i>=ll(b);i--)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
#define pb push_back
#define mp make_pair
#define F .first
#define S .second 
using ll=long long;
using ld=long double;
const ll INF = 1LL<<60;
const ll mod=1e9+7;
using namespace std;
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }


int main(){
    ld a,b;
    cin>>a>>b;
  b*=100;
  b+=0.5
    b=(ll)b;
    ld c=a*b/100;
    cout<<(ll)c;
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: expected ';' before 'b'
   22 |   b+=0.5
      |         ^
      |         ;
   23 |     b=(ll)b;
      |     ~
Language: C++

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

int main(){
  long long int a;
  double b;
  long long double sol1;
  long long int sol2;
  
  cin >> a>>b;
  
  sol1 = a*b;
  sol2 = (long long int)sol1;
  
  cout << sol2 << endl;
  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'long long' specified with 'double'
    9 |   long long double sol1;
      |        ^~~~
Language: C++

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

int main(){
  long long int a;
  double b;
  long double sol1;
  long long int sol2;
  
  cin >> a>>b;
  
  sol1 = a*b;
  sol2 = (long long int)sol;
  
  cout << sol2 << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'sol' was not declared in this scope; did you mean 'sol2'?
   15 |   sol2 = (long long int)sol;
      |                         ^~~
      |                         sol2
Language: C++

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

int main(){
  long long int a;
  double b;
  long long double sol1;
  long long int sol2;
  
  cin >> a>>b;
  
  sol = a*b;
  sol2 = (long long int)sol;
  
  cout << sol2 << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'long long' specified with 'double'
    9 |   long long double sol1;
      |        ^~~~
a.cc:14:3: error: 'sol' was not declared in this scope; did you mean 'sol2'?
   14 |   sol = a*b;
      |   ^~~
      |   sol2
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int64_t x; cin >> x;
  double y; cin >> double:
  x *=(int)round(y*100);
  cout << x/100 << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before 'double'
    6 |   double y; cin >> double:
      |                    ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a;
  string bb;
  cin >> a >> b;
  b.erase(1, 1);
  cout << a * stoi(b) / 100 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'b' was not declared in this scope; did you mean 'bb'?
    6 |   cin >> a >> b;
      |               ^
      |               bb