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

"use strict";
function main(input) {
    const line = input.split("\n");
    let lineOne = line[0].split(" ");
    const a = parseInt(lineOne[0]);
    const b = parseFloat(lineOne[1]);
    let c = (a*b);
    c = c.toString();
    c = c.split(".");
    c = c[0];
    c = parseInt(c);
    console.log(c);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
//main(require('fs').readFileSync('input.txt', 'utf8'));

Compiler output:
a.cc:14:14: warning: multi-character character constant [-Wmultichar]
   14 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |              ^~~~
a.cc:14:33: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
   14 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                                 ^~~~~~~~~~~~
a.cc:14:47: warning: multi-character character constant [-Wmultichar]
   14 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |                                               ^~~~~~
a.cc:1:1: error: expected unqualified-id before string constant
    1 | "use strict";
      | ^~~~~~~~~~~~
a.cc:2:1: error: 'function' does not name a type; did you mean 'union'?
    2 | function main(input) {
      | ^~~~~~~~
      | union
a.cc:14:5: error: expected constructor, destructor, or type conversion before '(' token
   14 | main(require('fs').readFileSync('/dev/stdin', 'utf8'));
      |     ^
Language: C++

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

int main() {
  long long A;
  double B;
  cin >>A>>B;
  long long ans;
  ans=A*(B/1LL)+A*(B%1LL)/1LL;
  cout <<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: invalid operands of types 'double' and 'long long int' to binary 'operator%'
    9 |   ans=A*(B/1LL)+A*(B%1LL)/1LL;
      |                    ~^~~~
      |                    | |
      |                    | long long int
      |                    double
Language: C++

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


}

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

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


int main() {
  long long A;
  double B;
  cin >> A >> B;
  
  double C =A*B;
  long long D =C
    
  cout << D <<endl;
  
  return 0;
}


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

a, b = input().split()

a = int(a)
b_unchi = b.split(".")
b_int = int(b[0])
b_float = int(b[1])
bbb = b_int * 100 + b_float
s = a * b
print(s // 100)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = input().split()
      | ^
Language: C++

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

int main(){
  unsigned long x;
  double y;
  cin >> x >> y;
  int z = 100*y;
  x = x*z/100;
  cout << d << endl;
}
    

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

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
// 任意長整数型
using Bint = mp::cpp_int;
// 仮数部が1024ビットの浮動小数点数型(TLEしたら小さくする)
using Real = mp::number<mp::cpp_dec_float<1024>>;
int main(){
  double B;
  Bint A;
  int C;
  cin>>A>>B;
  B*=100;
  C=B;
  Bint D;
  D=A*C/100
  cout <<D<<endl;
  
}


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

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

int main() {
  int A;
  double B;
  cin >> A >> B;
  int C = A * B;
  double D = C % 1.0;
    cout << C - D << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: invalid operands of types 'int' and 'double' to binary 'operator%'
    9 |   double D = C % 1.0;
      |              ~ ^ ~~~
      |              |   |
      |              int double
Language: C++

#include<iostream>

using namespace std;
int main()
{
    unsigned long long a;
    double b;
    cin >> a >> b;
    unsigned long long d = long long(a * b);
    cout << d << endl;
    
    return 0;
}


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

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
  long long int a;
 float b;
  cin>>a >> b;
  long long double k = trunc(a*b);
  cout<<int(k);

  return 0;
}


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

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

int main() {
  long long a;
  float b;
  cin>>a>>b;
  if(a==0||b==0){
    cout<<"0"<< endl;
    return 0;
  }
  long long s=a*b
  cout<<s<< endl;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;
#define int long long
int INF = 1e9+7;
signed main() {
    int A; 
    cin >> A;
    long double B;
    cin >> B;
    B*=100;
    int X = B/100;
    int Y = B%100;
    
    cout << A*X+A*B/100 << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: invalid operands of types 'long double' and 'int' to binary 'operator%'
   13 |     int Y = B%100;
      |             ~^~~~
      |             | |
      |             | int
      |             long double
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
// 任意長整数型
using Bint = mp::cpp_int;
// 仮数部が1024ビットの浮動小数点数型(TLEしたら小さくする)
using Real = mp::number<mp::cpp_dec_float<1024>>;
int main(){
  double B;
  Bint A;
  int C
  cin>>A>>B;
  B*=100;
  C=B;
  cout <<A*C/100<<endl;
  
}


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

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

int main() {
  int A;
  double B;
  cin >> A >> B;
  int C = A * B;
  double D = C % 1 
    cout << C - D << endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'unsigned' specified with 'double'
    5 |   unsigned long long double c;
      |   ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
// 任意長整数型
using Bint = mp::cpp_int;
// 仮数部が1024ビットの浮動小数点数型(TLEしたら小さくする)
using Real = mp::number<mp::cpp_dec_float<1024>>;
int main(){
  double B;
  Bint A,C;
  cin>>A>>B;
  B*=100;
  C=B;
  cout <<A*C/100<<endl;
  
}

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

#include<algorithm>
#include<iostream>
#include<vector>
#include<string>
#include<queue>
#include<stack>
#include<cmath>
#include<list>
#include<set>
#include<map>

using namespace std;
long long MOD = 1000000007LL;
const double PI = 3.14159265358979323846;
#undef INT_MIN
#undef INT_MAX
#define INT_MIN -2147483648
#define INT_MAX 2147483647
#define endl "\n"



int main() {
	long long A;
	double B;
	cin >> A >> B;
	cout << long long((A * 100 * B) / 100) << endl;

	return 0;
}




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

#include <stdio.h>
int main (){
 int a,d;
 double b,c;
  
  (void)scanf("%d",a);
  (void)("%lf",b);
  
  c = a*;b
  d = (int)c;
   
   printf("%d\n",d);


}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected expression before ';' token
    9 |   c = a*;b
      |         ^
main.c:9:11: error: expected ';' before 'd'
    9 |   c = a*;b
      |           ^
      |           ;
   10 |   d = (int)c;
      |   ~
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(){
    double a;
    double b;
    double c;

    cin >> setprecision(4) >> a;
    cin >> setprecision(4) >> b;

    c = a*b;
    printf("%lld\n", c);

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected '}' at end of input
   16 |     printf("%lld\n", c);
      |                         ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C

#include<stdio.h>

int main(void) {

	int a,bp,ans;
	float b;

	scanf("%d %d", &a, &b);
	
	bp = b*100
	ans = a*bp/100
	
	printf(ans);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected ';' before 'ans'
   10 |         bp = b*100
      |                   ^
      |                   ;
   11 |         ans = a*bp/100
      |         ~~~
Language: C++

import math

sa, sb = input().split()
a = int(sa)
b = float(sb)
lb = b * 100

ans = a * lb // 100
print(int(ans))


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

//#include <bits/stdc++.h>
using namespace std;
#define print(x) cout<<(x)<<endl
#define prints(x, y) cout<<(x)<<" "<<(y)<<endl
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define r_rep(i, n) for(int i = n; i >= 0; i--)
#define ll long long 
#define pb push_back

const long long INF = 1LL << 60;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected primary-expression before 'long'
   17 | #define ll long long
      |            ^~~~
a.cc:26:10: note: in expansion of macro 'll'
   26 |   ll c = ll(b * 100.0);
      |          ^~
Language: Java

#include <bits/stdc++.h>
typedef long long ll;
#define mod 1000000009
#define mk make_pair
#define f first
#define s second
using namespace std;
int main(int argc, char const *argv[])
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	long double a;
	double b;
	cin>>a>>b;
	long double ans = a*b;
	cout<<(long long) ans<<endl;
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: illegal character: '#'
#define mod 1000000009
^
Main.java:3: error: class, interface, enum, or record expected
#define mod 1000000009
        ^
Main.java:4: error: illegal character: '#'
#define mk make_pair
^
Main.java:5: error: illegal character: '#'
#define f first
^
Main.java:6: error: illegal character: '#'
#define s second
^
Main.java:10: error: not a statement
	ios_base::sync_with_stdio(false);
	^
Main.java:13: error: not a statement
	long double a;
	^
Main.java:15: error: not a statement
	cin>>a>>b;
	      ^
Main.java:16: error: not a statement
	long double ans = a*b;
	^
Main.java:17: error: not a statement
	cout<<(long long) ans<<endl;
	    ^
Main.java:17: error: not a statement
	cout<<(long long) ans<<endl;
	                     ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int main(int argc, char const *argv[])
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: <identifier> expected
int main(int argc, char const *argv[])
                       ^
Main.java:10: error: ';' expected
	ios_base::sync_with_stdio(false);
	                         ^
Main.java:13: error: ';' expected
	long double a;
	    ^
Main.java:16: error: ';' expected
	long double ans = a*b;
	    ^
Main.java:17: error: ')' expected
	cout<<(long long) ans<<endl;
	           ^
Main.java:17: error: '.class' expected
	cout<<(long long) ans<<endl;
	                ^
20 errors
Language: C++

#include<iostream>
using namespace std;
int main()
{
	float b;
	long long tt=0,a;
	cin>>a>>b;
	tt=long long(a*b);
	cout<<tt;
	return 0;
}

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

#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<algorithm>
using namespace std;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'unsigned' specified with 'long double'
    9 |         unsigned long double A, B;
      |         ^~~~~~~~
a.cc:9:9: error: 'unsigned' specified with 'long double'
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
      	long A = sc.nextLong();
      	double B = sc.nextDouble();
      	
      	long result = Math.floor(A * B);
      
		// 結果の出力
		System.out.println(result);

	}
}

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

#include<iostream>
#include<algorithm>
#include<string>
#include<cmath>
#include<cstdio>
#define ull unsigned long long 
#define ll long long
using namespace std;

//const int N = 1e5 + 5;
//const ull maxx = 1e18;
//
//ull a[N];
//int main() {
//	int n;
//	cin >> n;
//	ull ans = 1;
//	for (int i = 1; i <= n; i++) {
//		cin >> a[i];
//		if (a[i] == 0) {
//			cout << 0;
//			return 0;
//		}
//		ans *= a[i];
//		if (ans > maxx) {
//			cout << -1;
//			return 0;
//		}	
//	}
//	
//	
//	cout << ans;
//}

int main() {
	ll a;
	double b;
	scanf("%lld%lf", &a, &b);
	ll bz = (ll)floor(b);
	double bd = b - bz;
	printf("%lld", ll(a*bz+floor(a*bd)));
}

//int main() {
//
//}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before 'long'
    7 | #define ll long long
      |            ^~~~
a.cc:41:24: note: in expansion of macro 'll'
   41 |         printf("%lld", ll(a*bz+floor(a*bd)));
      |                        ^~
Language: C

//#include<iostream>
#include<cstdio>
//using namespace std;
#define N 1000
typedef long long ll;


int main(){
    ll a,s=0;
    double b;
    int c;
    int d;
    scanf("%lld %lf",&a,&b);
    c=b*100;
    d=c%100;
    c-=d;
    c/=100;
    s+=a*c;
    a*=d;
    a/=100;
    s+=a;
    printf("%lld",s);
    
    return 0;
}



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

#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <cmath>
#include <cassert>
#include <queue>
#include <map>
#include <set>
using namespace std;
using Int = int64_t;
const Int INF = 1<<30;
const Int MOD = (Int)1e9 + 7;
const Int MAX_N = (Int)1e5 + 5;
#define debug(x) cout << #x << ": " << x << endl
template<typename T1, typename T2>
ostream &operator<<(ostream &os, const pair<T1, T2>& p) { os << p.first << " " << p.second; return os; }
template<typename T>
ostream &operator<<(ostream &os, const vector<T> &v) { for(int i = 0; i < (int) v.size(); i++) os << v[i] << (i + 1 != v.size() ? " " : ""); return os; }

void solve()
{
    long long A;
    double B;
    cin >> A >> B;
    vector<long long> v;
    while(true)
    {
        long long ans = A * B;
        if(ans != A)
        {
            long long tmp = 0;
            long long cnt = 1;
            for(const auto& x : v)
            {
                tmp += x * cnt;
                cnt *= 10;
            }
            cout << ans + tmp << endl;
            return;
        }
        v.push_back(A % 10);
        A /= 10;
    }
}

signed main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    solve();
    return 0;
}

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

#include<iostream>
#include<algorithm>
#include<string>
#include<cmath>
#include<cstdio>
#define ull unsigned long long 
#define ll long long
using namespace std;

//const int N = 1e5 + 5;
//const ull maxx = 1e18;
//
//ull a[N];
//int main() {
//	int n;
//	cin >> n;
//	ull ans = 1;
//	for (int i = 1; i <= n; i++) {
//		cin >> a[i];
//		if (a[i] == 0) {
//			cout << 0;
//			return 0;
//		}
//		ans *= a[i];
//		if (ans > maxx) {
//			cout << -1;
//			return 0;
//		}	
//	}
//	
//	
//	cout << ans;
//}

int main() {
	ll a;
	double b;
	scanf("%lld%lf", &a, &b);
	int bz = floor(b);
	double bd = b - bz;
	printf("%lld", ll(a*bz+floor(a*bd)));
}

//int main() {
//
//}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before 'long'
    7 | #define ll long long
      |            ^~~~
a.cc:41:24: note: in expansion of macro 'll'
   41 |         printf("%lld", ll(a*bz+floor(a*bd)));
      |                        ^~
Language: C++

1#include<iostream>
#include<cstdio>
using namespace std;
#define N 1000
typedef long long ll;


int main(){
    ll a,s=0;
    double b;
    int c;
    int d;
    scanf("%lld %lf",&a,&b);
    c=b*100;
    d=c%100;
    c-=d;
    c/=100;
    s+=a*c;
    a*=d;
    a/=100;
    s+=a;
    printf("%lld",s);
    
    return 0;
}



Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | 1#include<iostream>
      |  ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1#include<iostream>
      | ^
Language: C

#include<stdio.h>


int main(){

  unsigned long long a,b;
  cin>>a>>b;
  printf("%lld.0",(a*b));
  
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'cin' undeclared (first use in this function)
    7 |   cin>>a>>b;
      |   ^~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <string>
#include <algorithm>
#include <functional>
#include <vector>
#include <cstring>
#include <iomanip>
#include <numeric>
#include <cmath>
#include <cassert>
#include <queue>
#include <map>
#include <set>
using namespace std;
using Int = int64_t;
const Int INF = 1<<30;
const Int MOD = (Int)1e9 + 7;
const Int MAX_N = (Int)1e5 + 5;
#define debug(x) cout << #x << ": " << x << endl
template<typename T1, typename T2>
ostream &operator<<(ostream &os, const pair<T1, T2>& p) { os << p.first << " " << p.second; return os; }
template<typename T>
ostream &operator<<(ostream &os, const vector<T> &v) { for(int i = 0; i < (int) v.size(); i++) os << v[i] << (i + 1 != v.size() ? " " : ""); return os; }

void solve()
{
    long long A;
    double B;
    cin >> A >> B;
    B *= 100;
    vector<long long> v;
    while(true)
    {
        long long ans = A * B / 100;
        // debug(ans);
        // debug(A);
        if(ans != A)
        {
            long long tmp = 0;
            long long cnt = 1;
            for(const auto& x : v)
            {
                tmp += x * cnt;
                cnt *= 10;
            }
            cout << ans << endl;
            return;
        }
        v.push_back(A % 10);
        A /= 10;
    }
    assert(true);
}

signed main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    solve();
    return 0;
}

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

#include <stdio.h>
int main (){
 int a,c;
 double b;
  
 scanf("%d",a);
 scanf("%lf",b);
  
 c = a*b
   
   printf("%d\n",c);


}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected ';' before 'printf'
    9 |  c = a*b
      |         ^
      |         ;
   10 | 
   11 |    printf("%d\n",c);
      |    ~~~~~~
Language: C++

a,b=map(float,input().split())
k = [str(i) for i in str(a*b)]
print("".join(k[i] for i in range(k.index("."))))

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=map(float,input().split())
      | ^
Language: C++

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

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

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

#include<iostream>
using namespace std;

int main(){
  double A, B;
  int ans;
  cin >> A >> B;
  ans = <int>(A*B);
  cout << ans << endl;
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '<' token
    8 |   ans = <int>(A*B);
      |         ^
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   ans = <int>(A*B);
      |          ^~~
Language: C

a,b=(float(x) for x in input().split())
c=a*b
print(int(float(int(c))))


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b=(float(x) for x in input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b=(float(x) for x in input().split())
      |   ^
main.c:1:12: error: expected ')' before 'x'
    1 | a,b=(float(x) for x in input().split())
      |            ^
      |            )
main.c:1:14: error: expected ')' before 'for'
    1 | a,b=(float(x) for x in input().split())
      |     ~        ^~~~
      |              )
main.c:2:1: error: expected ',' or ';' before 'c'
    2 | c=a*b
      | ^
Language: C++

#include <iostream>
 

 
int main() {
  long long int a;
  double b;
  int c;
  std::cin >> a >> b;
  c = static_cast<int>(b*100)
  long double out;
  out=(a*c)/100;
  std::cout<<out<<"\n";
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: expected ';' before 'long'
   10 |   c = static_cast<int>(b*100)
      |                              ^
      |                              ;
   11 |   long double out;
      |   ~~~~                        
a.cc:12:3: error: 'out' was not declared in this scope
   12 |   out=(a*c)/100;
      |   ^~~
Language: C++

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


#include "boost/multiprecision/cpp_int.hpp"
#include "boost/multiprecision/cpp_dec_float.hpp"
namespace mp = boost::multiprecision;
typedef mp::cpp_int LL;
typedef mp::number<mp::cpp_dec_float<1024>> DD;// 仮数部が1024ビットの浮動小数点数型(TLEしたら小さくする)



typedef long double dd;
//#define i_7 (ll)(1E9+7)
#define i_7 998244353
#define i_5 i_7-2
ll mod(ll a){
    ll c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
typedef pair<ll,ll> l_l;
typedef pair<dd,dd> d_d;
ll inf=(ll)1E16;
#define rep(i,l,r) for(ll i=l;i<=r;i++)
#define pb push_back
ll max(ll a,ll b){if(a<b)return b;else return a;}
ll min(ll a,ll b){if(a>b)return b;else return a;}
void Max(ll &pos,ll val){pos=max(pos,val);}//Max(dp[n],dp[n-1]);
void Min(ll &pos,ll val){pos=min(pos,val);}
void Add(ll &pos,ll val){pos=mod(pos+val);}
dd EPS=1E-9;
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define fi first
#define se second
#define endl "\n"
#define SORT(v) sort(v.begin(),v.end())
#define ERASE(v) v.erase(unique(v.begin(),v.end()),v.end())
#define POSL(v,x) (lower_bound(v.begin(),v.end(),x)-v.begin())
#define POSU(v,x) (upper_bound(v.begin(),v.end(),x)-v.begin())
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;
}

void mod_print(ll k){
    ll P=1000;
    rep(y,1,P){
        ll x=mod(y*k);
        if(x+P>=i_7){
            x-=i_7;
        }
        if(abs(x)<=P){
            cout<<x<<"/"<<y<<endl;
            return;
        }
    }
    cout<<"nun"<<endl;
}
//////////////////////////


ll SOLVE(){
    DD a,b;cin>>a>>b;
    cout<<(LL)a*b<<endl;
    
    
    return 0;
}

int main(){fastio
    
    clock_t start = clock();
    SOLVE();
    clock_t end = clock();
    const double time = static_cast<double>(end - start) / CLOCKS_PER_SEC * 1000.0;
    cerr<<endl<<time<<"ms"<<endl;
    
    return 0;
}



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

int main()
{
  cpp_int a; double b;
  cin >> a >> b;
  b = ((b)*(1000.0000000000000000));
  cpp_int bb = (cpp_int)b;
  cpp_int aa = a;
  cpp_int aans = (aa*bb);
  cpp_int t = aans/1000;
  cout << t << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cpp_int' was not declared in this scope
    3 |   cpp_int a; double b;
      |   ^~~~~~~
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 'bb'
    6 |   cpp_int bb = (cpp_int)b;
      |          ^~~
      |          ;
a.cc:7:10: error: expected ';' before 'aa'
    7 |   cpp_int aa = a;
      |          ^~~
      |          ;
a.cc:8:10: error: expected ';' before 'aans'
    8 |   cpp_int aans = (aa*bb);
      |          ^~~~~
      |          ;
a.cc:9:10: error: expected ';' before 't'
    9 |   cpp_int t = aans/1000;
      |          ^~
      |          ;
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << t << '\n';
      |   ^~~~
a.cc:10:11: error: 't' was not declared in this scope
   10 |   cout << t << '\n';
      |           ^
Language: C++

#include <bits/stdc++.h>
#define MOD 1000000007
#define int long long int
#define ld long double
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);
#define pb push_back
#define endl "\n"
#define mp make_pair
#define f first
#define se second
#define pi 3.14159265358979
//ll string_inp() {cin.get(); for(int i =0;i<n;i++){ getline(cin,s[i]);}}
ll gcd(ll a, ll b){ if (a == 0) return b;  return gcd(b % a, a);  }
ll power(ll x, ll y, ll mod = 2e18) {ll ans = 1;x %= mod;while(y){if(y&1) ans = (x * ans) % mod;x = (x * x) % mod;y >>= 1;}return ans;}
ll modInverse(ll a, ll m) { ll m0 = m; ll y = 0, x = 1; if (m == 1) return 0; while (a > 1) { ll q = a / m; ll t = m; m = a % m,a = t; t = y; y = x - q * y; x = t; } if(x < 0) x += m0;return x;}
int takemod(int a, int mod = MOD){a%=mod;if(a<0)a+=mod;return a;}
ll binsearch(std::vector<ll>& nums, ll target) {ll n = nums.size();ll l = 0;ll r = n-1;while(l<=r){ll mid = l+ (r-l)/2;if(nums[mid]==target)return mid;else if(nums[mid]>target)r = mid-1;else l = mid+1;}return -1;}
bool isPowerOfTwo (int x) {return x && (!(x&(x-1))); }

using namespace std;

int main()
{
   fastio
  int a;
    ld b;
    cin>>a>>b;
    int ans = 0;
    ans += a * (int)b;
    b -= (int)b;
    ld x = a%100;
    int y = a/100;
    ans += y * (int)(b*100);
    ans += (int)(x * b);
    cout<<ans<<endl;


}




Compiler output:
a.cc:13:1: error: 'll' does not name a type; did you mean 'ld'?
   13 | ll gcd(ll a, ll b){ if (a == 0) return b;  return gcd(b % a, a);  }
      | ^~
      | ld
a.cc:14:1: error: 'll' does not name a type; did you mean 'ld'?
   14 | ll power(ll x, ll y, ll mod = 2e18) {ll ans = 1;x %= mod;while(y){if(y&1) ans = (x * ans) % mod;x = (x * x) % mod;y >>= 1;}return ans;}
      | ^~
      | ld
a.cc:15:1: error: 'll' does not name a type; did you mean 'ld'?
   15 | ll modInverse(ll a, ll m) { ll m0 = m; ll y = 0, x = 1; if (m == 1) return 0; while (a > 1) { ll q = a / m; ll t = m; m = a % m,a = t; t = y; y = x - q * y; x = t; } if(x < 0) x += m0;return x;}
      | ^~
      | ld
a.cc:17:1: error: 'll' does not name a type; did you mean 'ld'?
   17 | ll binsearch(std::vector<ll>& nums, ll target) {ll n = nums.size();ll l = 0;ll r = n-1;while(l<=r){ll mid = l+ (r-l)/2;if(nums[mid]==target)return mid;else if(nums[mid]>target)r = mid-1;else l = mid+1;}return -1;}
      | ^~
      | ld
a.cc:3:23: error: '::main' must return 'int'
    3 | #define int long long int
      |                       ^~~
a.cc:22:1: note: in expansion of macro 'int'
   22 | int main()
      | ^~~
Language: Java

mport java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here


        Scanner scan = new Scanner(System.in);
        long N= scan.nextLong();
        double M= scan.nextDouble();
        long MM=(long)M*100;
        long i=N*MM;
        long p=i/100;
System.out.println(p);


    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

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

int main()
{
    double A;
    double B;
    long long C;

    cin >> A >> B;

    C = llround(A * B - 0.5);

    cout << C << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'llround' was not declared in this scope
   14 |     C = llround(A * B - 0.5);
      |         ^~~~~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   c=a*b;cout<<c<<endl;return 0;}
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   c=a*b;cout<<c<<endl;return 0;}
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
class Ho{
  static void Main(){
    var aho = Console.ReadLine().Split();
    long a = long.Parse(aho[0]);
    double b = double.Parse(aho[1]);
    
    string text = ((long)(a*b)).ToString();
    Console.WriteLine(text);
  }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Ho::Main()':
a.cc:6:5: error: 'var' was not declared in this scope
    6 |     var aho = Console.ReadLine().Split();
      |     ^~~
a.cc:7:14: error: expected primary-expression before 'long'
    7 |     long a = long.Parse(aho[0]);
      |              ^~~~
a.cc:8:16: error: expected primary-expression before 'double'
    8 |     double b = double.Parse(aho[1]);
      |                ^~~~~~
a.cc:10:5: error: 'string' was not declared in this scope
   10 |     string text = ((long)(a*b)).ToString();
      |     ^~~~~~
a.cc:11:5: error: 'Console' was not declared in this scope
   11 |     Console.WriteLine(text);
      |     ^~~~~~~
a.cc:11:23: error: 'text' was not declared in this scope
   11 |     Console.WriteLine(text);
      |                       ^~~~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double num1 = sc.nextInt();
        double num2 = sc.nextInt();
        int result = 0;
        result = num1 * num2;

       
        System.out.println(result);
    }
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
        result = num1 * num2;
                      ^
1 error
Language: C++

#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;

using unsigned long long = ll;

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

    return 0;
}


Compiler output:
a.cc:6:7: error: expected nested-name-specifier before 'unsigned'
    6 | using unsigned long long = ll;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'll' was not declared in this scope
   10 |     ll a;
      |     ^~
a.cc:12:12: error: 'a' was not declared in this scope
   12 |     cin >> a >> b;
      |            ^
a.cc:13:7: error: expected ';' before 'c'
   13 |     ll c = (ll)(b * 100UL);
      |       ^~
      |       ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'll' was not declared in this scope
    4 |   ll a;   cin>>a;
      |   ^~
a.cc:4:16: error: 'a' was not declared in this scope
    4 |   ll a;   cin>>a;
      |                ^
Language: C++

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



int main() {
  int i;
  double d;
  
  cin >> i >> d;
  
  double kuso = i * d
  

  cout << (int)kuso << endl;
}


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

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


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

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

int main(void){
  float x, y;
 int scanf("%f", &x);
  int scanf("%f", &y);
    float A = x * y;
  A = (double)(int)A;
  cout << A << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expression list treated as compound expression in initializer [-fpermissive]
    7 |  int scanf("%f", &x);
      |                    ^
a.cc:7:20: error: invalid conversion from 'float*' to 'int' [-fpermissive]
    7 |  int scanf("%f", &x);
      |                    ^
      |                    |
      |                    float*
a.cc:8:7: error: redeclaration of 'int scanf'
    8 |   int scanf("%f", &y);
      |       ^~~~~
a.cc:7:6: note: 'int scanf' previously declared here
    7 |  int scanf("%f", &x);
      |      ^~~~~
Language: C++

import math
arr=input().split(" ")
a=float(arr[0])
b=float(arr[1])
 
print(math.floor(a*b))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

A, B = input().split();
A = int(A);
B = int(float(B)*100);
C = A*B//100;
print(C);



Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = input().split();
      | ^
a.cc:2:1: error: 'A' does not name a type
    2 | A = int(A);
      | ^
a.cc:3:1: error: 'B' does not name a type
    3 | B = int(float(B)*100);
      | ^
a.cc:4:1: error: 'C' does not name a type
    4 | C = A*B//100;
      | ^
Language: C++


#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <string>
#include <queue>
#include <map>
#include <cmath>
#include <iomanip> 

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



Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |         cin>>a>>b;
      |         ^~~
      |         std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout<<(long long)ans<<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:18:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         cout<<(long long)ans<<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++

import sys
import math
N, M = input().strip().split()
N, M = [int(N), float(M)]
print(math.floor(N*M))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
using namespace std;
 
int main(){
 int A; 
 double B,c;
  int d;
  cin >> A >> B;
  
  c = A*B;
  d =(int);
  
  cout << d << endl;

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected primary-expression before 'int'
   11 |   d =(int);
      |       ^~~
a.cc:11:7: error: expected ')' before 'int'
   11 |   d =(int);
      |      ~^~~
      |       )
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<vector>
#include<functional>
#include<algorithm>
#include<stdlib.h>
#include<string>
#include<string.h>
#define _USE_MATH_DEFINES
#include<math.h>
#include<deque>
#include<set>
#include<map>
#include<queue>
#include<list>
#include<iostream>
#include <bitset>
using namespace std;
typedef long long ll;
#define rep(i,a,b) for(auto i=a;i<b;i++)
#define all(_x) _x.begin(), _x.end()
#define r_sort(_x) sort(_x.begin(), _x.end(), std::greater<int>())
#define vec_cnt(_a, _n) (upper_bound(all(_a), _n) - lower_bound(all(_a), _n))
#define vec_unique(_a) _a.erase(std::unique(all(_a)), _a.end());
#define vvec vector<vector<ll>>
ll gcd(ll a, ll b) { return a % b == 0 ? b : gcd(b, a % b); }
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
#define INF 1 << 30
const int mod = 1000000007;
ll power(ll x, ll p) { ll a = 1; while (p > 0) { if (p % 2 == 0) { x *= x; p /= 2; } else { a *= x; p--; } }return a; }
ll mpower(ll x, ll p) { ll a = 1; while (p > 0) { if (p % 2 == 0) { x = x * x % mod; p /= 2; } else { a = a * x % mod; p--; } }return a; }
ll c(ll n, ll k) { ll a = 1; rep(i, 1, k) { a *= n - i + 1; a /= i; }return a; }
ll mc(ll n, ll m) { ll k = 1, l = 1; rep(i, n - m + 1, n + 1) k = k * i % mod; rep(i, 1, m + 1) l = l * i % mod; l = mpower(l, mod - 2); return k * l % mod; }

int main(void) {
	unsigned long long a, b2;
	double a, b;
	cin >> a >> b;
	b2 = (unsigned long long)(b * 1000);
	printf("%lld\n", (unsigned long long)(a * b2 / 1000));
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:16: error: conflicting declaration 'double a'
   37 |         double a, b;
      |                ^
a.cc:36:28: note: previous declaration as 'long long unsigned int a'
   36 |         unsigned long long a, b2;
      |                            ^
Language: C

#include<stdio.h>
int main()
{
    int a,x;
    float y;
    scanf("%d %f",&x,&y);
    a=int(x*y);
    printf("%d",a);
    return 0;
        
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: expected expression before 'int'
    7 |     a=int(x*y);
      |       ^~~
Language: C

import math
a,b=input().split()
print(int(int(a)*float(b)))

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=input().split()
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'return'
    6 |   cout<<(int)A*B
      |                 ^
      |                 ;
    7 |   return 0;
      |   ~~~~~~         
a.cc:7:12: error: expected '}' at end of input
    7 |   return 0;
      |            ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<queue>
#include<iomanip>
using namespace std;

int main(){
    long long int a,ans=0,c=0;
    double b;
    vector<long long int>x(10000);
    cin>>a>>b;
    for(int i=0;i<1000 ){
        x[i]=i*a;
    }
    b=100*b;
    c=b;
    ans=x[c];
    ans=(ans-ans%100)/100;
    
    cout<<fixed << setprecision(0) <<ans<<endl;
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before ')' token
   13 |     for(int i=0;i<1000 ){
      |                       ^~
      |                       ;
Language: C++

input_list = input().split()

A = int(input_list[0])
B = float(input_list[1])

B_100 = int(round(B * 100))

result = A * B_100 // 100

print(result)

Compiler output:
a.cc:1:1: error: 'input_list' does not name a type
    1 | input_list = input().split()
      | ^~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctype.h>
#include <iomanip>

using namespace std;

int syousuuketa(int b) {
    if ((10 * b) != (10 * floor(b))) return 0;
    if ((100 * b) != (10 * floor(10 * b)))return 1;
    else return 2;
    return -1;
}

int GetDigit(double num) {
    int digit = 0;
    while (num != 0) {
        num /= 10;
        digit++;
    }
    return digit;
}

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

    double ans = 0;

    ans = floor(a * b);

    if (GetDigit(a) <= 10) {
        cout << ans << endl;
        return 0;
    }
    
    string sans;
    string trans;

    sans = to_string(ans);

    int size = sans.size;

    for (int i = 0; i < size; ++i) {
        if (sans[i] != '.')trans = trans + sans[i];
        else break;
    }

    cout << trans << endl;

    


	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:21: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   44 |     int size = sans.size;
      |                     ^~~~
Language: C++

#include<iostream> 
#include<vector> 
#include<algorithm> 
#include<iomanip> 
#include<stack> 
#include<unordered_map>
#include<climits>
#include<set> 
#include<string> 
//#include<bits/stdc++.h> 
using namespace std; 
#define lld long long int 
#define eb emplace_back
//to insert pair use eb
#define mp make_pair
#define fi first
#define se second
#define pb push_back

#define X 1000000007
#define Y 998244353
#define E4 1000
#define E5 10000 
#define E6 1000000
#define inf 1001001001
#define longinf 2001001001001001001
#define pi 3.1415926535

# define rec2(i,a,b) for(lld i=a;i<b;i++) 
#define rec(i,n) for(lld i=0;i<n;i++)
#define rev(i,a,b) for(lld i=b-1;i>=a;i--)
#define all(v) (v).begin(), (v).end()
#define large(v)  *max_element(all(v))
#define small(v)  *min_element(all(v)) 
#define v vector
const double EPS = 1e-6;
/*  //prime sieve if needed 
//prime factors of number
int prime[E6+1]; 
void sieve(lld n) 
{ rec(i,n+1) 
    prime[i]=1; 
   for(lld i=2;i*i<=n;i++) 
     { if(prime[i]!=1) 
          continue; 
         for(lld j=i*i;j<=n;j=j+i) 
          if(prime[i]==1)
           prime[j]=i; 
      }
}
*/
lld gcd(lld a,lld b)
{
    if(a==0)
     return b; 
    return gcd(b%a,a); 
}
//fermat a^(m-2)%mod
lld binarymul(lld a,lld n,lld m)
{  lld res=1; 
 while(n) 
  { if(n%2) 
      { res=(res*a)%m; 
         n--; 
      } 
     a=(a*a)%m; 
     n/=2; 
  }
  return res; 
}
int main()
{
   ios_base::sync_with_stdio(false); 
   cin.tie(0);
     #ifdef PUNEET_GOEL
    //freopen("input.txt", "r", stdin);
    //freopen("output.txt", "w", stdout);
    #endif
   //sieve(E6); 
    lld a; 
    double b; 
    cin>>a>>b; 
    a=round((double)a*b); 
    cout<<a<<endl;        
	return 0;
}

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

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


int main() {
  long long A;
  double B;
  cin >> A >> B;
  
  double C =A*B;
    
  printf(%ld,C);
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '%' token
   13 |   printf(%ld,C);
      |          ^
a.cc:13:11: error: 'ld' was not declared in this scope
   13 |   printf(%ld,C);
      |           ^~
Language: C++

#include<stdio.h>

int main()
{
	long long A;
	double	B;
	 long long C;
	scanf_s("%lld",A);
	scanf_s("%le",B);
	C = A * B;
	printf("%lld", ( long long)C);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%lld",A);
      |         ^~~~~~~
      |         scanf
Language: C++

from sys import stdin
import math

A, B = [float(x) for x in stdin.readline().rstrip().split()]
A=int(A)
BB=int(B*100)
#print(A*BB)
print(math.floor((A*BB)/100))



Compiler output:
a.cc:7:2: error: invalid preprocessing directive #print
    7 | #print(A*BB)
      |  ^~~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import stdin
      | ^~~~
Language: C

#include<stdio.h>

int main()
{
	long long A;
	double	B;
	 long long C;
	scanf_s("%lld",A);
	scanf_s("%le",B);
	C = A * B;
	printf("%lld", ( long long)C);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |         scanf_s("%lld",A);
      |         ^~~~~~~
      |         scanf