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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'q' was not declared in this scope
   10 |   q=p/100
      |   ^
Language: C++

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

int main(){
  long a;
  long double b;
  cin >> a >> b;
  long c = floor(b);

  long double r = b - long double(c); //b = c + r

  long a1 = a / 100;
  long a2 = a % 100; // a = a1*100 + a2


  long s1 = a*c + floor(a1*(r*100.0)) + floor(a2*r);
  cout << s1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected primary-expression before 'long'
   10 |   long double r = b - long double(c); //b = c + r
      |                       ^~~~
Language: C++

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

int main(){
    ll a;
    long double b;
    cin>>a>>b;
    
    int kake = b*100;
    long long tmp = kake;
    ll ans = a*tmp;
    ans /= 100;

    cout<<ans<<endl;

    return 0;
}

Compiler output:
a.cc:1:1: error: extended character ¥ is not valid in an identifier
    1 | ¥#include <bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | ¥#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: '\U000000a5' does not name a type
    1 | ¥#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>a>>b;
      |     ^~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<ans<<endl;
      |     ^~~~
a.cc:15:16: error: 'endl' was not declared in this scope
   15 |     cout<<ans<<endl;
      |                ^~~~
Language: C++

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

int main() {
    unsigned long long A;
    double B;
    cin>>A>>B;
    double C=B*100
    unsigned long long ans=A*C;
    unsigned long long realans=ans/100
    cout<<realans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'unsigned'
   11 |     unsigned long long ans=A*C;
      |     ^~~~~~~~
a.cc:12:32: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     unsigned long long realans=ans/100
      |                                ^~~
      |                                abs
Language: C++

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

int64_t aa[100010];
int main()
{
  int64_t a,x;
  double b;
  
  cin >> a >> b;
  
  x = (int64_t)(b * 100)
  int64_t c= a*x;
  
  cout << c / 100 << endl;
  
    
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before 'int64_t'
   15 |   x = (int64_t)(b * 100)
      |                         ^
      |                         ;
   16 |   int64_t c= a*x;
      |   ~~~~~~~                
a.cc:18:11: error: 'c' was not declared in this scope
   18 |   cout << c / 100 << endl;
      |           ^
Language: Java

import java.util.Scanner;
 
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		long a = Long.parseLong(sc.next());
		double b = Double.parseDouble(sc.next());
		long c = (long)Math.round(b*100);
		a = a * c;
		a /= 100;
		System.out.println(a);
		
	}
 

Compiler output:
Main.java:14: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
 
#include <fstream>
#include <vector>
#include <algorithm>
 
using namespace std;
 
int main(void)
{
 
    
    double a, b;
    
    cin >> a >> b;
  
  b *= 100;
  floor(b);
  b /= 100;
    
    cout << fixed << setprecision(0) << floor(a*b) << endl;
    
}
#include <iostream>
#include <string>
#include <stack>
#include <queue>
#include <cmath>
#include <iomanip>
 
#include <fstream>
#include <vector>
#include <algorithm>
 
using namespace std;
 
int main(void)
{
 
    
    double a, b;
    
    cin >> a >> b;
  
  b *= 10000;
  floor(b);
  b /= 10000;
    
    cout << fixed << setprecision(0) << floor(a*b) << endl;
    
}

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

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

int main()
{
  ll a;
  long double b;
  cin>>a>>b;
  ll ans;
  ans=a*b;
  cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'll' was not declared in this scope
    6 |   ll a;
      |   ^~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b;
      |        ^
a.cc:9:5: error: expected ';' before 'ans'
    9 |   ll ans;
      |     ^~~~
      |     ;
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans=a*b;
      |   ^~~
      |   abs
Language: C++


#include <bits/stdc++.h>

#define ll int64_t
using namespace std;
#include <cstdlib> 
#include <math.h>
#include<cstdio>
#include<cstring>
#define FOR(I, A, B) for (int I = (A); I <= (B); I++)
#define fo(i,n) for(int i=0;i<n;i++)
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(),(c).end()
#define dbg(x) cout << #x << " = " << x << endl
#define dbg2(x,y) cout << #x << " = " << x << ", " << #y << " = " << y << endl
#define dbg3(x,y,z) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << endl
#define dbg4(x,y,z,q) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << ", " << #q << " = " << q << endl
#define scan(char_array) scanf("%[^\n]s",&char_array)
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

int main(){
    IOS

    ll a;
    long long double b;
    cin>>a>>b;

    long long double ans=(double)b*a;
     ll real=ans;
    cout<<real<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:10: error: 'long long' specified with 'double'
   26 |     long long double b;
      |          ^~~~
a.cc:29:10: error: 'long long' specified with 'double'
   29 |     long long double ans=(double)b*a;
      |          ^~~~
Language: C++

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

  cout << (long long) c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'cout'
    8 |   c = a * c
      |            ^
      |            ;
    9 | 
   10 |   cout << (long long) c << endl;
      |   ~~~~
Language: C

#include <algorithm>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <regex>
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <type_traits>
#include <vector>

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

int main() {
    ios::sync_with_stdio(false);
  
  	long double a,b;
	cin>>a>>b;
	long long temp=floor(a*b);
	cout<<temp;

    return 0;
}


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

#include<iostream>
using namespace std;
int main(){
 long int a;
  cin>>a;
  float b;
  cin>>b;
  if(b==(floorf(b*100)/100)){
   long int res=a*b;
    cout<<res;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'floorf' was not declared in this scope
    8 |   if(b==(floorf(b*100)/100)){
      |          ^~~~~~
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define rep(i,N) for(int i=0; i<N; i++){    ;
int main() {
  int64_t A;
double B;
cin>>A>>B;
cout << fixed << setprecision(0);
cout<<long double(B*A)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before 'long'
   10 | cout<<long double(B*A)<<endl;
      |       ^~~~
Language: C++


#include <bits/stdc++.h>

#define ll int64_t
using namespace std;
#include <cstdlib> 
#include <math.h>
#include<cstdio>
#include<cstring>
#define FOR(I, A, B) for (int I = (A); I <= (B); I++)
#define fo(i,n) for(int i=0;i<n;i++)
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(),(c).end()
#define dbg(x) cout << #x << " = " << x << endl
#define dbg2(x,y) cout << #x << " = " << x << ", " << #y << " = " << y << endl
#define dbg3(x,y,z) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << endl
#define dbg4(x,y,z,q) cout << #x << " = " << x << ", " << #y << " = " << y << ", " << #z << " = " << z << ", " << #q << " = " << q << endl
#define scan(char_array) scanf("%[^\n]s",&char_array)
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

int main(){
    IOS

    ll a;
    double b;
    cin>>a>>b;

    double ans=(double)bb*a;
   
    cout<<ll(ans)<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:24: error: 'bb' was not declared in this scope; did you mean 'b'?
   29 |     double ans=(double)bb*a;
      |                        ^~
      |                        b
Language: C++

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

typedef long long int ll;
#define pb push_back
#define ff first
#define ss second
#define INF 1999999999
#define MODA 1000000007
#define PI 3.1415926535897932384626433
//cout << fixed << setprecision(2);
#define ans 10e18;

int main()
{
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll a, ans;
    long double b;
    cin >> a >> b;
    ans = a * b;
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected unqualified-id before numeric constant
   12 | #define ans 10e18;
      |             ^~~~~
a.cc:21:11: note: in expansion of macro 'ans'
   21 |     ll a, ans;
      |           ^~~
a.cc:24:9: error: expected primary-expression before '=' token
   24 |     ans = a * b;
      |         ^
a.cc:25:17: error: expected primary-expression before '<<' token
   25 |     cout << ans << endl;
      |                 ^~
Language: C++

#include<bits/stdc++.h>
 
#define rep(i,n) for(ll i = 0;i < n;++i)
#define all(v) v.begin(),v.end()
using namespace std;
using ll = long long;
typedef pair<int,int> P;
 
const int INF = 1001001001;
const long double PI = (acos(-1));
const int mod = 1e9+7;
const int vx[4] = {0,1,0,-1};
const int vy[4] = {1,0,-1,0};


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

    long long double b;
    ll a;
    cin >> a >> b;
    ll a2 = a;
    ll a3 = a;

    ll b2,b3;
    b2 = b*10;
    b2 %= 10;
    b3 = b*100;
    b3 %= 10;

    ll sum = 0;
    a *= (ll)b;
    a2 *= b2;
    a3 *= b3;
    a3 /= 10;
    ll tmp;
    tmp = a2 + a3;
    tmp /= 10;

    sum = a+tmp;
    cout << sum << endl;


    cout << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: 'long long' specified with 'double'
   20 |     long long double b;
      |          ^~~~
Language: Java

import java.util.Scanner;

public class ABC169C {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
      	long A = sc.nextLong();
      	double B = sc.nextDouble();
		
      	int b = B * 100;
      
      	long result =(long) Math.floor(A * b);
		
		System.out.println(result/100);

	}
}

Compiler output:
Main.java:3: error: class ABC169C is public, should be declared in a file named ABC169C.java
public class ABC169C {
       ^
Main.java:9: error: incompatible types: possible lossy conversion from double to int
      	int b = B * 100;
      	          ^
2 errors
Language: C++

#include<algorithm>
#include<iostream>
#include<stdio.h>
typedef long long ll;
using namespace std;

long double a, b;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'floor' was not declared in this scope
   11 |         cout << (long long)floor(a*b) << endl;
      |                            ^~~~~
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    BigIntegre A = new BigInteger(scanner.next());
    float B = Float.parseFloat(scanner.next());
    scanner.close();

    BigInteger B2 = new BigInteger(String.valueOf(B*100));
    System.out.println((A.multiply(B2).divide(new BigInteger("100"))).toString());
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    BigIntegre A = new BigInteger(scanner.next());
    ^
  symbol:   class BigIntegre
  location: class Main
Main.java:6: error: cannot find symbol
    BigIntegre A = new BigInteger(scanner.next());
                       ^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
    BigInteger B2 = new BigInteger(String.valueOf(B*100));
    ^
  symbol:   class BigInteger
  location: class Main
Main.java:10: error: cannot find symbol
    BigInteger B2 = new BigInteger(String.valueOf(B*100));
                        ^
  symbol:   class BigInteger
  location: class Main
Main.java:11: error: cannot find symbol
    System.out.println((A.multiply(B2).divide(new BigInteger("100"))).toString());
                                                  ^
  symbol:   class BigInteger
  location: class Main
5 errors
Language: C++

#include <bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define SP << " " 
#define LLi long long int

using namespace std;

int imax=2147483647;
long long int llimax=9223372036854775807;

//int型vectorを出力
void PV(vector<int> pvv) {
	rep(i, pvv.size()) cout << pvv[i] SP;
	cout << endl;
}

//LLi型vectorを出力
void PVL(vector<LLi> pvv) {
	rep(i, pvv.size()) cout << pvv[i] SP;
	cout << endl;
}

int main(){

	LLi a, ans=0;
	double b;

	cin>> a >> b;

	LLi tmp=(LLi)(b[0]-'0');
	ans+=(LLi)(a*tmp)*100;

	if(1){
		tmp=(LLi)(b[2]-'0');
		ans+=(LLi)(a*tmp)*10;
	}

	if(1){
		tmp=(LLi)(b[3]-'0');
		ans+=(LLi)(a*tmp);
	}

	cout<< ans/100 <<endl;
 
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:24: error: invalid types 'double[int]' for array subscript
   32 |         LLi tmp=(LLi)(b[0]-'0');
      |                        ^
a.cc:36:28: error: invalid types 'double[int]' for array subscript
   36 |                 tmp=(LLi)(b[2]-'0');
      |                            ^
a.cc:41:28: error: invalid types 'double[int]' for array subscript
   41 |                 tmp=(LLi)(b[3]-'0');
      |                            ^
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
#define fi first
#define endl "\n"
#define se second
#define ll long long
#define inf 0x3f3f3f3f
#define fast    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int N = 3e5+10;
const ll mod =   1e9+7;

int main()
{  fast
//ll a,b,cx;
long double a,b;
cin>>a>>b;
cout<<ll(a*b);

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before 'long'
    6 | #define ll long long
      |            ^~~~
a.cc:17:7: note: in expansion of macro 'll'
   17 | cout<<ll(a*b);
      |       ^~
Language: C++

// 5/10 リアルタイム参加
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;

int main() {
    ll A;
    double B;
    // cin >> A >> B;
    // cin >> A;
    // cin >> B;

    scanf("%l")

    if (A == 0 || B == 0.0) {
        cout << 0 << endl;
        return 0;
    }

    // ll A, B;
    // double b;
    // cin >> A >> b;
    // B = (ll)(b * 100.0);
    // cout << A * B / 100 << endl;

    double ansd = (double)A * B;
    // ll ansl = (ll)floor(ansd);
    ll ansl = (ll)ansd;

    // cout << (ll)floor((double)A * B) << endl;
    cout << ansl << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before 'if'
   16 |     scanf("%l")
      |                ^
      |                ;
   17 | 
   18 |     if (A == 0 || B == 0.0) {
      |     ~~
Language: Java

import java.util.Scanner;

public class ABC169C {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
      	long A = sc.nextLong();
      	double B = sc.nextDouble();

      	long result = Math.floor((long)A * B);

		System.out.println(result);

	}
}

Compiler output:
Main.java:3: error: class ABC169C is public, should be declared in a file named ABC169C.java
public class ABC169C {
       ^
Main.java:9: error: incompatible types: possible lossy conversion from double to long
      	long result = Math.floor((long)A * B);
      	                        ^
2 errors
Language: C++

// 5/10 リアルタイム参加
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Graph = vector<vector<int>>;

int main() {
    ll A;
    long double B;
    // cin >> A >> B;
    // cin >> A;
    // cin >> B;

    scanf("%l")

    if (A == 0 || B == 0.0) {
        cout << 0 << endl;
        return 0;
    }

    // ll A, B;
    // double b;
    // cin >> A >> b;
    // B = (ll)(b * 100.0);
    // cout << A * B / 100 << endl;

    double ansd = (double)A * B;
    // ll ansl = (ll)floor(ansd);
    ll ansl = (ll)ansd;

    // cout << (ll)floor((double)A * B) << endl;
    cout << ansl << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected ';' before 'if'
   16 |     scanf("%l")
      |                ^
      |                ;
   17 | 
   18 |     if (A == 0 || B == 0.0) {
      |     ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const double pi=acos(-1.0);
const double eps=1e-8;
typedef long long ll;
#define equ(a,b) ((fabs((a)-(b)))<(eps))
#define more(a,b) (((a)-(b))>(eps))
#define less(a,b) (((a)-(b))<(-eps))
#define inf 0x3f3f3f3f

int main(){
    long double a,b;
    ll ans=a*b
    cout<<ans;
    return 0;
}

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

//Multiplication 3

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define int long long
#define rep(i,x,y) for(ll i=x;i<y;i++)
#define irep(i,a) for(auto i = a.begin(); i != a.end(); ++i)
#define nvarep(n,a) ll n;cin>>n;vector<ll>a(n);rep(i,0,n)cin>>a[i]
#define vecrep(n,a,type) vector<type>a(n);rep(i,0,n)cin>>a[i]
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) (a/__gcd(a, b)*b)
#define range(a) (a).begin(),(a).end() 
#define pb push_back
#define mp make_pair
#define nnn "\n"
#define spa " "
#define cout15(a) printf("%.15f\n",a)
template<class T>inline bool chmin(T& a,T b,bool f){
if(f==1){if(a>b){a=b;return true;}return false;}
else if(f==0){if(a<b){a=b;return true;}return false;}return false;}
typedef pair<ll,string> p;
using g = vector<vector<ll>>;
const int inf = 2147483647;//2*10^9
const ll INF = 9223372036854775807;//9*10^18

signed main (){
    ll a;
    double b;
    cin>>a>>b;
    b*=1000;
    cout<<int(a*b/1000)<<nnn;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before 'long'
    6 | #define int long long
      |             ^~~~
a.cc:32:11: note: in expansion of macro 'int'
   32 |     cout<<int(a*b/1000)<<nnn;
      |           ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  long a;
  double b;
  cin >> a >> b;
  cout << (long long)(floor((a*b)+1e-9)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'floor' was not declared in this scope
    8 |   cout << (long long)(floor((a*b)+1e-9)) << endl;
      |                       ^~~~~
Language: C++

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

signed main() {
  long double a, b; cin >> a >> b;
  cout << (ll) a * b;
  cout << "\n";
  return 0;
}

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

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

void solve(ll A, double B) {
  ll Bint = 100 * B;
  string ans = to_string(A * Bint);
  if (ans.length() <= 2)
    cout << 0 << endl;
  else
    cout << ans.substring(0, ans.length() - 2) << endl;
  // cout << A * Bint / 100 << endl;
}

int main(){
  // int 3E4  long 2E9  ll 9E18
  cin.tie(0);
  ios::sync_with_stdio(false);

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

  solve(A, B);

  return 0;
}


Compiler output:
a.cc: In function 'void solve(ll, double)':
a.cc:12:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
   12 |     cout << ans.substring(0, ans.length() - 2) << endl;
      |                 ^~~~~~~~~
      |                 substr
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long a;
  double b;
  cin>>a>>b;
  string s=to_string(b);
  string bb=s[0]+s[2]+s[3];
  int c=stoi(bb);
  long long ans=a*c;
  ans=ans/100;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string bb=s[0]+s[2]+s[3];
Language: C++


a,b = input().split()
a = int(a)
b = float(b)
new = a * int(b)
#print(b)

print(new)



Compiler output:
a.cc:6:2: error: invalid preprocessing directive #print
    6 | #print(b)
      |  ^~~~~
a.cc:2:1: error: 'a' does not name a type
    2 | a,b = input().split()
      | ^
Language: C++

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


int main() {
  long duble A,B;
  cin>>A>>B;
  cout<<(ll)(A*B)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected initializer before 'A'
    6 |   long duble A,B;
      |              ^
a.cc:7:8: error: 'A' was not declared in this scope
    7 |   cin>>A>>B;
      |        ^
a.cc:7:11: error: 'B' was not declared in this scope
    7 |   cin>>A>>B;
      |           ^
a.cc:8:10: error: 'll' was not declared in this scope
    8 |   cout<<(ll)(A*B)<<endl;
      |          ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  double A;
  double B;
  cin>>A>>B;
  B*=100
  double C=A*B;
  int64_t c=C/100;
  cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'double'
    7 |   B*=100
      |         ^
      |         ;
    8 |   double C=A*B;
      |   ~~~~~~ 
a.cc:9:13: error: 'C' was not declared in this scope
    9 |   int64_t c=C/100;
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before 'long'
    8 |   cout<<long long(a*b);
      |         ^~~~
Language: C++

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

int main(){
    ll a;
    char b_[8];
    long double c;
    cin >> a >> c;
    int b=0;
    if(b_[0] != '.') b+=(b_[0]-'0')*100;
    if(b_[1] != '\0'){
        if(b_[2] != '\0'){
            b+=(b_[2]-'0')*10;
            if(b_[3] != '\0'){
                b+=(b_[3]-'0');
            }
        }
    }
    ll ans;
    ans = a*b;
    ans /=100;
    ans = a*c
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: expected ';' before 'cout'
   25 |     ans = a*c
      |              ^
      |              ;
   26 |     cout << ans << endl;
      |     ~~~~
Language: C++

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


ll A;
double B;
 
int main(void)
{
    cin >> A >> B;
    cout << (ll)(floor(A * B + 1e-9)) << endl;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,start,end) for(int i=start;i<=end;i++)
const int INF = 1001001001;
typedef long long ll;
const ll MOD=1000000007;
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T>auto MAX(const T& a) { return *max_element(a.begin(),a.end()); }
template<class T>auto MIN(const T& a) { return *min_element(a.begin(),a.end()); }
template<class T, class U>U SUM(const T& a, const U& v) { return accumulate(a.begin(),a.end(), v); }
template<class T, class U>U COUNT(const T& a, const U& v) { return count(a.begin(),a.end(), v); }
template<class T, class U>int LOWER(const T& a, const U& v) { return lower_bound(a.begin(),a.end(), v) - a.begin(); }
template<class T, class U>int UPPER(const T& a, const U& v) { return upper_bound(a.begin(),a.end(), v) - a.begin(); }
int GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
int LCM(int a, int b) { int g = GCD(a, b); return a / g * b; }

int main(void){
    // Your code here!
    long double  a;cin >> a;
    long double b; cin >> b;
    cout << (ll) a*b << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:23:30: error: expected '}' at end of input
   23 |     cout << (ll) a*b << endl;
      |                              ^
a.cc:19:15: note: to match this '{'
   19 | int main(void){
      |               ^
Language: C++

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


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


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

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

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

import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  long a=sc.nextLong();
  long aa=a/1000;
  double d=sc.nextDouble();
  long aaa=aa*(d*1000);
  int aaaa=(int)(a%1000)*d;
  System.out.println(aaa+aaaa);
}
}


Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from double to long
  long aaa=aa*(d*1000);
             ^
Main.java:9: error: incompatible types: possible lossy conversion from double to int
  int aaaa=(int)(a%1000)*d;
                        ^
2 errors
Language: C

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
	long long int A,B;
	string b;
	cin>>A>>b;
	if(b[1]=='.')B=(b[0]-'0')*100+(b[2]-'0')*10+(b[3]-'0');
	else B=(b[0]-'0')*1000+(b[1]-'0')*100+(b[3]-'0')*10+(b[4]-'0');
	cout<<A*B/100;
	return 0;
}

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

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define rep(i, begin, n) for (int i = begin; i < n; i++)
#define repe(i, begin, n) for (int i = begin; i <= n; i++)
#define repr(i, begin, n) for (int i = begin; i > begin - n; i--)
#define repre(i, begin, end) for (int i = begin; i >= end; i--)

template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}

template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}

const int inf = 1000000007;
const int MOD = 1000000007;
const long long INF = 1000000000000000007;

const double pi = 3.141592653589793;
// -------------------------------------------------------
ll A;
long long double B;

int main() {
  cin >> A >> B;
  B *= 100.0;
  ll b = B;
  ll ans = A * b / 100LL;
  cout << ans << endl;
}


Compiler output:
a.cc:34:6: error: 'long long' specified with 'double'
   34 | long long double B;
      |      ^~~~
Language: Java

import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  long a=sc.nextLong();
  long aa=a/1000;
  long aaa=aa*(d*1000);
  int aaaa=(int)(a%1000)*d;
  double d=sc.nextDouble();
  System.out.println(aaa+aaaa);
}
}

Compiler output:
Main.java:7: error: cannot find symbol
  long aaa=aa*(d*1000);
               ^
  symbol:   variable d
  location: class Main
Main.java:8: error: cannot find symbol
  int aaaa=(int)(a%1000)*d;
                         ^
  symbol:   variable d
  location: class Main
2 errors
Language: C++

int main() {
  int64_t A;
  double B, C;
  cin >> A >> B;
  C = A * B;
  int64_t D;
  D = C;
  cout << D << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'int64_t' was not declared in this scope
    2 |   int64_t A;
      |   ^~~~~~~
a.cc:1:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
  +++ |+#include <cstdint>
    1 | int main() {
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> A >> B;
      |   ^~~
a.cc:4:10: error: 'A' was not declared in this scope
    4 |   cin >> A >> B;
      |          ^
a.cc:6:10: error: expected ';' before 'D'
    6 |   int64_t D;
      |          ^~
      |          ;
a.cc:7:3: error: 'D' was not declared in this scope
    7 |   D = C;
      |   ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << D << endl;
      |   ^~~~
a.cc:8:16: error: 'endl' was not declared in this scope
    8 |   cout << D << endl;
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a;double b;
  cin>>a>>b;
  ll c=b*1000
  print(a*c/1000);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ',' or ';' before 'cout'
   14 | #define print(a) cout << (a) << endl
      |                  ^~~~
a.cc:22:3: note: in expansion of macro 'print'
   22 |   print(a*c/1000);
      |   ^~~~~
Language: C++

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

int main()
{
   long double a, b;
   cin>>a>>b;
   ll m= floor(a*b);
   cout<<m<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: 'll' was not declared in this scope
    9 |    ll m= floor(a*b);
      |    ^~
a.cc:10:10: error: 'm' was not declared in this scope
   10 |    cout<<m<<endl;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a;double b;
  cin>>a>>b;
  ll c=b*1000
  print(c/1000);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected ',' or ';' before 'cout'
   14 | #define print(a) cout << (a) << endl
      |                  ^~~~
a.cc:22:3: note: in expansion of macro 'print'
   22 |   print(c/1000);
      |   ^~~~~
Language: C++

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

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

import math
A,B = map(float,input().split())
C = math.floor(A*B)
print(C)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'A'
    2 | A,B = map(float,input().split())
      | ^
Language: C++

#include<bits/stdc++.h>
#define endl "\n"
#define FAST() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
using namespace std;

typedef long long int ll;
typedef unsigned long long int ull;
typedef unsigned int ui;

int main()
{

#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
    FAST();
    ll x;
    long double y;
    cin >> x >> y;
    cout << (LL)(x*y);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: 'LL' was not declared in this scope; did you mean 'll'?
   21 |     cout << (LL)(x*y);
      |              ^~
      |              ll
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    lnog double a;
    long double b;
    scanf("%Lf %Lf",&a,&b);
    long long c=(long long)(a*b);
    cout<<c<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'lnog' was not declared in this scope; did you mean 'long'?
    4 |     lnog double a;
      |     ^~~~
      |     long
a.cc:6:22: error: 'a' was not declared in this scope
    6 |     scanf("%Lf %Lf",&a,&b);
      |                      ^
Language: C++

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

ll A;
string B;
 
int main(void)
{
    cin >> A >> B;
    cout << (ll)(floor(a * b)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: 'a' was not declared in this scope
   11 |     cout << (ll)(floor(a * b)) << endl;
      |                        ^
a.cc:11:28: error: 'b' was not declared in this scope
   11 |     cout << (ll)(floor(a * b)) << endl;
      |                            ^
Language: C++

#include"bits/stdc++.h"
#define rep(i,n) for(int i=0;i<n;i++)
#define For(i,a,b) for(int i=a;i<=b;i++)
#define Forr(i,a,b) for(int i=a;i>=b;i--)
typedef long long ll;
double Pi = 3.141592653589793238;
using namespace std;
using Graph = vector<vector<ll>>;
using Field = vector<string>;
using DGraph = vector<vector<pair<int, int>>>;

const long long INF = 1LL << 60;
//---//

int main() {
	ll A,ans;
	long double B; cin >> A >> B;

	ans = A*B
	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: expected ';' before 'cout'
   19 |         ans = A*B
      |                  ^
      |                  ;
   20 |         cout << ans << endl;
      |         ~~~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<queue>
#include<map>
#include<math.h>
#include<string>
#include <cctype>
#include <cstdlib>
#include<bitset>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i++)
#define out(x) cout << x << endl
#define INF 1ll<<60;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

using namespace std;
using ll = long long;
typedef pair<int, int> P;

int main(){
    unsigned long long a; cin >> a;
    long double b; cin >> b;
    b = b*100;
    ll f = a*(unsigned long long)b/100;
    printf("%ld\n", d);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:21: error: 'd' was not declared in this scope
   28 |     printf("%ld\n", d);
      |                     ^
Language: C++

#include<bits/stdc++.h> 
using namespace std; 
#define ll long long int
  
// Multiplies str1 and str2, and prints result. 
string multiply(string num1, string num2) 
{ 
    int len1 = num1.size(); 
    int len2 = num2.size(); 
    if (len1 == 0 || len2 == 0) 
    return "0"; 
  
    // will keep the result number in vector 
    // in reverse order 
    vector<int> result(len1 + len2, 0); 
  
    // Below two indexes are used to find positions 
    // in result.  
    int i_n1 = 0;  
    int i_n2 = 0;  
      
    // Go from right to left in num1 
    for (int i=len1-1; i>=0; i--) 
    { 
        int carry = 0; 
        int n1 = num1[i] - '0'; 
  
        // To shift position to left after every 
        // multiplication of a digit in num2 
        i_n2 = 0;  
          
        // Go from right to left in num2              
        for (int j=len2-1; j>=0; j--) 
        { 
            // Take current digit of second number 
            int n2 = num2[j] - '0'; 
  
            // Multiply with current digit of first number 
            // and add result to previously stored result 
            // at current position.  
            int sum = n1*n2 + result[i_n1 + i_n2] + carry; 
  
            // Carry for next iteration 
            carry = sum/10; 
  
            // Store result 
            result[i_n1 + i_n2] = sum % 10; 
  
            i_n2++; 
        } 
  
        // store carry in next cell 
        if (carry > 0) 
            result[i_n1 + i_n2] += carry; 
  
        // To shift position to left after every 
        // multiplication of a digit in num1. 
        i_n1++; 
    } 
  
    // ignore '0's from the right 
    int i = result.size() - 1; 
    while (i>=0 && result[i] == 0) 
    i--; 
  
    // If all were '0's - means either both or 
    // one of num1 or num2 were '0' 
    if (i == -1) 
    return "0"; 
  
    // generate the result string 
    string s = ""; 
      
    while (i >= 0) 
        s += std::to_string(result[i--]); 
  
    return s; 
} 
  
// Driver code 
int main() 
{ 
    string str1,str2;
    cin>>str1;
    string str3;cin>>str3;
   str2="";
    for(ll i=0;i<str3.size();i++){if(str3[i]!='.') str2=str2+str3[i];}
    
    
    
      
    if((str1.at(0) == '-' || str2.at(0) == '-') &&  
        (str1.at(0) != '-' || str2.at(0) != '-' )) 
        cout<<"-"; 
  
  
    if(str1.at(0) == '-' && str2.at(0)!='-') 
        { 
            str1 = str1.substr(1); 
        } 
        else if(str1.at(0) != '-' && str2.at(0) == '-') 
        { 
            str2 = str2.substr(1); 
        } 
        else if(str1.at(0) == '-' && str2.at(0) == '-') 
        { 
            str1 = str1.substr(1); 
            str2 = str2.substr(1); 
        } 
       
    if(str2[0]=='0'&&str2[1]=='0'){

string s5="00";
 s5=s5+s4;
for(long long int i=0;i<s5.size()-2;i++) cout<<s5[i];return 0;
return 0;
    }
  string s3=multiply(str1, str2);
    for(long long int i=0;i<s3.size()-2;i++) cout<<s3[i];
    return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:114:8: error: 's4' was not declared in this scope; did you mean 's5'?
  114 |  s5=s5+s4;
      |        ^~
      |        s5
Language: C

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

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>
using namespace std;
 
int main() {
  long long int a;
  double b;
  cin >> a >> b; 
  long long int = b*a;
  cout << b*a << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define rep2(i,x,n) for(int i=x; i<(n); i++)
#define all(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
const long long INF = numeric_limits<long long>::max();
int main(){
    long long A;
    double B;
    cin>>A>>B;
    long long Aq = A-A%1000;
    double remain = A%1000;

    long long Aq = A-A%100;

    remain = remain * B; 
    
    remain = (long long)floor(remain);
    long long ans =Aq+remain;
    
    cout << ans << endl;
        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: redeclaration of 'long long int Aq'
   15 |     long long Aq = A-A%100;
      |               ^~
a.cc:12:15: note: 'long long int Aq' previously declared here
   12 |     long long Aq = A-A%1000;
      |               ^~
Language: C++

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

int main() {
  long long a;
  double b;
  double c = b*100;
  long long d = a*c/100
    cout << d << endl;
  
}

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

#include"bits/stdc++.h"
#define rep(i,n) for(int i=0;i<n;i++)
#define For(i,a,b) for(int i=a;i<=b;i++)
#define Forr(i,a,b) for(int i=a;i>=b;i--)
typedef long long ll;
double Pi = 3.141592653589793238;
using namespace std;
using Graph = vector<vector<ll>>;
using Field = vector<string>;
using DGraph = vector<vector<pair<int, int>>>;

const long long INF = 1LL << 60;
//---//

int main() {
	ll A,ans;
	long double B,b; cin >> A >> B;

	ans = A*B
	cout << ans << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: expected ';' before 'cout'
   19 |         ans = A*B
      |                  ^
      |                  ;
   20 |         cout << ans << endl;
      |         ~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before 'long'
    9 |   cout << long long(a*b) << endl;
      |           ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
const char sp = ' ';


using namespace std;

int main(void){
    long long double A, B;
    cin>>A>>B;
    cout<<(ll)(A*B)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:10: error: 'long long' specified with 'double'
   25 |     long long double A, B;
      |          ^~~~
a.cc:25:10: error: 'long long' specified with 'double'
Language: C++

from sys import stdin
import math
 
A, B = [x for x in stdin.readline().split()]
A = int(A)
B = int(B[0] + B[2:3])

print(A*B/100)

Compiler output:
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import stdin
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: conflicting declaration 'double b'
    7 |   double b;
      |          ^
a.cc:6:9: note: previous declaration as 'll b'
    6 |   ll a, b;
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define MOD 1000000007
//#define MOD 998244353
#define INF 1000000010
#define EPS 1e-9
#define F first
#define S second

#define debug(x) cout<<x<<endl;
#define repi(i,x,n) for(int i=x;i<n;i++)
#define rep(i,n) repi(i,0,n)
#define lp(i,n) repi(i,0,n)
#define repn(i,n) for(int i=n;i>=0;i--)
#define int long long
#define endl "\n"

typedef pair<int,int> PII;
typedef pair<int,string> PIS;
typedef pair<string,int> PSI;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: 'eps' was not declared in this scope
   29 |   b=(b+eps)*100;
      |        ^~~
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<set>
#include<queue>
#include<map>
#include<math.h>
#include<string>
#include <cctype>
#include <cstdlib>
#include<bitset>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i++)
#define out(x) cout << x << endl
#define INF 1ll<<60;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }

using namespace std;
using ll = long long;
typedef pair<int, int> P;

int main(){
    unsigned long long a; cin >> a;
    long double b; cin >> b;
    b = b*100;
    ll f = a*(unsigned long long)b/100);
    printf("%ld\n", d);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:39: error: expected ',' or ';' before ')' token
   27 |     ll f = a*(unsigned long long)b/100);
      |                                       ^
a.cc:28:21: error: 'd' was not declared in this scope
   28 |     printf("%ld\n", d);
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair <int, int>;
const double PI = acos(-1);
const ll MOD = 1000000007;

int main() {
  ll A;
  double B;
  cin >> A >> B;

  B *= 100;
  auto ans =  A*B % 100;

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   16 |   auto ans =  A*B % 100;
      |               ~~~ ^ ~~~
      |                |    |
      |                |    int
      |                double
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
	long long A;
	double dB;
	long long B;
	long long tmp;
	int diff;

	// Input
	cin >> A >> dB;

	B = (long long)(dB * 100);
	tmp = floor(A * dB;
	cout << ((tmp - diff) / 100) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected ')' before ';' token
   18 |         tmp = floor(A * dB;
      |                    ~      ^
      |                           )
Language: C++

#include <iostream>
#include <stdio.h>
#include <cmath>
//#include <string>
using namespace std;

int main(void){
    unsigned long long A, pr;
    int Bi;
    double Br;

    cin >> A >> Br;
    Bi = (int) B;
    Br = double (B-Bi);
    //cout << Bc << endl;
    pr = A*Bi;
    A /= 100*Bi;
    Br *= 100;
    pr += A*Br;

    cout << pr << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'B' was not declared in this scope; did you mean 'Br'?
   13 |     Bi = (int) B;
      |                ^
      |                Br
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(void)
{
  float b;
  unsigned long long int a,B;
  cin>>a>>b;
  b=b*100;
  B=b;
  cout<<a*b;

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '}' at end of input
   10 |   cout<<a*b;
      |             ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^