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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ld' was not declared in this scope
    6 |   ld 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;
      |           ^
Language: C++

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

int main {
int64_t A ;
float B;
cin >> A >> B;
int64_t ans;
ans = A * B ;
cout << ans << endl;

 
 
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main {
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'A'
    5 | int64_t A ;
      |         ^
a.cc:5:9: error: expected '}' before 'A'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> A >> B;
      | ^~~
a.cc:9:1: error: 'ans' does not name a type
    9 | ans = A * B ;
      | ^~~
a.cc:10:1: error: 'cout' does not name a type
   10 | cout << ans << endl;
      | ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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


int main() {
	double a; cin >> a;
	string b; cin >> b;
	double b1 = stod(b);
	b1 *= 100;
	cout << floor((a * b1) / 100) << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'cin' was not declared in this scope
    7 |         double a; cin >> a;
      |                   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string b; cin >> b;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #define rep(i,n) for(int i=0;i<(n);i++)
a.cc:8:26: error: 'b' was not declared in this scope
    8 |         string b; cin >> b;
      |                          ^
a.cc:9:21: error: 'stod' was not declared in this scope
    9 |         double b1 = stod(b);
      |                     ^~~~
a.cc:9:21: note: 'std::stod' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << floor((a * b1) / 100) << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:17: error: 'floor' was not declared in this scope
   11 |         cout << floor((a * b1) / 100) << endl;
      |                 ^~~~~
a.cc:11:42: error: 'endl' was not declared in this scope
   11 |         cout << floor((a * b1) / 100) << endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
 
int main() {
  long double a, b;
  cin >> a >> b;
  cout << (ll)(a * b) << endl;
}
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;

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

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

#include<bits/stdc++.h>
using namespace std;
using i64 = int_fast64_t;
#define rep(i, N) for(i64 i = 0; i < N; i++)
#define Rep(i, k, N) for(i64 i = k; i < N; i++)
#define all(v) v.begin(), v.end()
#define eb emplace_back
#define Cout(s) cout << s << endl
string Yes(bool b) {if(b){return "Yes";} else {return "No";}}
string YES(bool b) {if(b){return "YES";} else {return "NO";}}

int main(){
    i64 A;
  long double B;
    cin >> A >> B;
  B *= 100.0;
  B += 0.1
  i64 ans = (A * B) / 100ll;
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: expected ';' before 'i64'
   17 |   B += 0.1
      |           ^
      |           ;
   18 |   i64 ans = (A * B) / 100ll;
      |   ~~~      
a.cc:19:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <string>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <iomanip>
#include <utility>
#include <tuple>
#include <functional>
#include <bitset>
#include <cassert>
#include <complex>
#include <stdio.h>
#include <time.h>
#include <numeric>
#include <unordered_map>
#include <unordered_set>
# define ll int64_t
# define str string
# define rep(i,n) for(ll i=0;i<n;i++)
# define rrep(i,n) for(ll i=1;i<=n;i++)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define mod 1000000007
# define PI 3.141592653589793
# define vec vector
#define dump(x) cerr<<#x<<"="<<x<<endl
using namespace std;



#define INF 2000000000
#define MAX_V 10



bool compare_by_b(pair<string,ll> a,pair<string,ll> b){
    if(a.second != b.second) return a.second<b.second;
    else return a.first<b.first;
}

bool my_compare(pair<ll,ll> a,pair<ll,ll> b){
    if(a.first != b.first) return a.first<b.first;
    if(a.second != b.second) return a.second>b.second;
    else return true;
}

ll modpow(ll a,ll n,ll mod1) {
    ll res=1;
    while(n>0){
        if(n&1) res=res*a%mod1;
        a = a*a%mod1;
        n >>= 1;
    }
    return res;
}

ll factorial(ll n){
    ll x=1;
    rrep(i,n) (x*=i)%=mod;
    return x;
}

ll gcd(ll a,ll b) { return b ? gcd(b, a%b) : a; }

ll lcm(ll a,ll b){
   return a/gcd(a,b)*b;
}
const ll MAX = 5100000;
const ll MOD = 1000000007;
 
ll fac[MAX], finv[MAX], inv[MAX];
 
// テーブルを作る前処理
void COMinit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (ll i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

// 二項係数計算
ll COM(ll n, ll k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

using graph = vector<vector<ll>>;
pair<pair<ll,ll>,ll> p[100010];



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

Compiler output:
a.cc: In function 'int main()':
a.cc:110:65: error: expected ';' before ')' token
  110 |     cout<<fixed<<setprecision(0)<<(ll)(a*(ll)(round)(b*100))/100))<<endl;
      |                                                                 ^
      |                                                                 ;
Language: C++

#include <stdio.h>
#include <iostream>
#include <string.h>
#include <limits.h>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
 
typedef unsigned long long ULLONG;
typedef long long LLONG;
 
template <class _T> static _T tp_abs(const _T& a) {
	return ((a < 0) ? (a * -1) : a);
}
template <class _T> static _T tp_min(_T a, _T b) {
	return a < b ? a : b;
}
template <class _T> static _T tp_max(_T a, _T b) {
	return a > b ? a : b;
}
template<class _T> static void getint(_T& a) {
	const char* fmt = " %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld";
	}
 
	if (scanf(fmt, &a) < 0) {
		printf("g1int Error\n");
	}
}
template<class _T> static void getint(_T& a, _T& b) {
	const char* fmt = " %d %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld %lld";
	}
 
	if (scanf(fmt, &a, &b) < 0) {
		printf("g2int Error\n");
	}
}
template<class _T> static void getint(_T& a, _T& b, _T& c) {
	const char* fmt = " %d %d %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld %lld %lld";
	}
 
	if (scanf(fmt, &a, &b, &c) < 0) {
		printf("g3int Error\n");
	}
}
static void getstring(char* buff) {
	if (scanf(" %s", buff) < 0) {
		printf("getstr error!\n");
	}
}
static const long long MOD_NUM = 1000000007LL;
template <class _T> static _T tp_pow(int base, int exp)
{
	_T ans = 1;
 
	for (int i = 0; i < exp; i++) {
		ans *= base;
	}
	return ans;
}
 
static void C_task();
 
int main()
{
	C_task();
	fflush(stdout);
	return 0;
}
 
static void C_task()
{
	LLONG A;
	std::cin >> A;
	long double B;
	std::cin >> B;
 	B *= 100.0lf;
	long double ans = A * B;
  	ans /= 100.0lf;
	printf("%lld\n", (LLONG)ans);
}

Compiler output:
a.cc: In function 'void C_task()':
a.cc:84:14: error: unable to find numeric literal operator 'operator""lf'
   84 |         B *= 100.0lf;
      |              ^~~~~~~
a.cc:86:16: error: unable to find numeric literal operator 'operator""lf'
   86 |         ans /= 100.0lf;
      |                ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

int main() {
  ll A;
  double B;
  cin >> A >> B;
  B *= 100;
  B = round(B);
  ll ans = A * num_b;
  ans /= 100;
  cout << ans << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'num_b' was not declared in this scope
   13 |   ll ans = A * num_b;
      |                ^~~~~
Language: C++

#include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

int main() {
  ll A;
  double B;
  cin >> A >> B;
  B *= 100;
  B = round(B)
  ll ans = A * num_b;
  ans /= 100;
  cout << ans << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'long'
   12 |   B = round(B)
      |               ^
      |               ;
a.cc:14:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   ans /= 100;
      |   ^~~
      |   abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  
 double a,b;
  cin>>a>>b;
  ll A = a;
  b*=100.01;
  b+=1e-5
  ll B = b;
  A*=B;
  cout<<A/100<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'll'
   11 |   b+=1e-5
      |          ^
      |          ;
   12 |   ll B = b;
      |   ~~      
a.cc:13:6: error: 'B' was not declared in this scope
   13 |   A*=B;
      |      ^
Language: C++

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

int main()
{
  cin >> A >> B;
  double long seisu;
  double long shosu;
  shosu = modf(B, &seisu);

  double tmp = shosu * 100;
  ll tmp2 = (ll)((ll)tmp * A)/100;
  ll ans = siseu * A + tmp2;

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: 'siseu' was not declared in this scope
   17 |   ll ans = siseu * A + tmp2;
      |            ^~~~~
Language: C++

#include <cstdio>

using namespace std;
using ll = long long;

int main() {
  ll A, B, x, y;
  scanf("%lld %lld.%lld", &A, &x, &y);
  B = x * 100 + y;
  cout << A / 100 * B << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << A / 100 * B << endl;
      |   ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |   cout << A / 100 * B << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 |
Language: C++

#include <cstdio>

using namespace std;
using ll = long long;

int main() {
  ll A, B, x, y;
  scanf("%d %d.%d", &A, &x, &y);
  B = x * 100 + y;
  cout << A / 100 * B << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << A / 100 * B << endl;
      |   ^~~~
a.cc:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |   cout << A / 100 * B << endl;
      |                          ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
　　　　　　　　　　　 ∧＿∧
　　　　　 ∧＿∧ 　（´<_｀ ）　 Welcome to My Coding Space!
　　　　 （ ´_ゝ`）　/　 ⌒i     @hamayanhamayan0
　　　　／　　　＼　 　  |　|
　　　 /　　 /￣￣￣￣/　　|
　 ＿_(__ﾆつ/　    ＿/ .| .|＿＿＿＿
　 　　　＼/＿＿＿＿/　（u　⊃
---------------------------------------------------------------------------------------------------*/














ll A, B1, B2;
//---------------------------------------------------------------------------------------------------
void _main() {
	scanf_s("%lld %lld.%lld", &A, &B1, &B2);

	ll ans = A * (B1 * 100 + B2) / 100;
	cout << ans << endl;
}







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

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

void Main() {
    // input
    u_int64_t A;
    string B;
    cin >> A >> B;

    int B_int = atoi(B.substr(0, 1) + B.substr(2));
    
    u_int64_t ans = (A * B_int) / 100;

    cout << ans << endl; 

    // translate


    // output

}

int main() {
    std::cout << std::fixed << std::setprecision(0);
    Main();
    return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:13:37: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   13 |     int B_int = atoi(B.substr(0, 1) + B.substr(2));
      |                      ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                                     |
      |                                     std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

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

void Main() {
    // input
    u_int64_t A;
    string B;
    cin >> A >> B;

    int B_int = atoi(B.substr(0, 1) + B.substr(2))
    
    u_int64_t ans = (A * B_int) / 100;

    cout << ans << endl; 

    // translate


    // output

}

int main() {
    std::cout << std::fixed << std::setprecision(0);
    Main();
    return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:13:37: error: cannot convert 'std::__cxx11::basic_string<char>' to 'const char*'
   13 |     int B_int = atoi(B.substr(0, 1) + B.substr(2))
      |                      ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
      |                                     |
      |                                     std::__cxx11::basic_string<char>
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:17:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

//include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <complex>

#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

#include <stdexcept>

using namespace std;

// type alias
using ll = long long;
using ull = unsigned long long;
using comp = complex<double>;

const ll MOD = 1000000007LL;
const double PI = 3.14159265358979323846;

//conversion
//------------------------------------------
inline int toint(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class t> inline string tostring(t x) { ostringstream sout; sout << x; return sout.str(); }

// for loop
#define REP(i, n) for ((i) = 0;(i) < (ll)(n);(i)++)

//debug
#define DUMP(x)  cerr << #x << " = " << (x) << endl
#define DEBUG(x) cerr << #x << " = " << (x) << " (l" << __line__ << ")" << " " << __file__ << endl

int solve() {
	ll a;
	long double b;
    long_double const_val = 100.0L;
	cin >> a >> b;

	ll ll_b = ll(b * const_val);
	ll ll_b0 = ll_b / 100LL;
	ll ll_b1 = (ll_b - ll_b0 * 100LL) / 10LL;
	ll ll_b2 = ll_b - ll_b0 * 100LL - ll_b1 * 10LL;

	ll res = 0;
	res = a * ll_b1 * 10LL + a * ll_b2;
	res /= 100LL;
	res += a * ll_b0;

	cout << res << endl;

	return 0;
}

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

	solve();

	return 0;
}


Compiler output:
a.cc: In function 'int solve()':
a.cc:55:5: error: 'long_double' was not declared in this scope
   55 |     long_double const_val = 100.0L;
      |     ^~~~~~~~~~~
a.cc:58:26: error: 'const_val' was not declared in this scope
   58 |         ll ll_b = ll(b * const_val);
      |                          ^~~~~~~~~
Language: C++

import math
import re
a=input().split()
#print(a[0])
ia=int(a[0])
#print(a)
c=re.sub(r'\D','',a[1])
#print(c)

ib=int(c)

b=ia*ib//100

print(b)


Compiler output:
a.cc:4:2: error: invalid preprocessing directive #print
    4 | #print(a[0])
      |  ^~~~~
a.cc:6:2: error: invalid preprocessing directive #print
    6 | #print(a)
      |  ^~~~~
a.cc:7:11: warning: unknown escape sequence: '\D'
    7 | c=re.sub(r'\D','',a[1])
      |           ^~~~
a.cc:7:16: error: empty character constant
    7 | c=re.sub(r'\D','',a[1])
      |                ^~
a.cc:8:2: error: invalid preprocessing directive #print
    8 | #print(c)
      |  ^~~~~
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<iostream>
#include<string>
#include<cstdlib>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++ i)
#define LL long long

int main()
{
  LL a;
  cin >> a;
  
  string b;
  cin >> b;
  
  int n;
  n = atoi(b.at(0)) * 100 + atoi(b.at(2)) * 10 + atoi(b.at(3));
  
  cout << (a * n) / 100LL << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   17 |   n = atoi(b.at(0)) * 100 + atoi(b.at(2)) * 10 + atoi(b.at(3));
      |            ~~~~^~~
      |                |
      |                __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:17:38: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   17 |   n = atoi(b.at(0)) * 100 + atoi(b.at(2)) * 10 + atoi(b.at(3));
      |                                  ~~~~^~~
      |                                      |
      |                                      __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:17:59: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   17 |   n = atoi(b.at(0)) * 100 + atoi(b.at(2)) * 10 + atoi(b.at(3));
      |                                                       ~~~~^~~
      |                                                           |
      |                                                           __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
constexpr long long int mod = 1000000007, MOD = 998244353;
constexpr double PI = 3.14159265358979323846;

int main() {
	long long i;
	long double j;
	cin >> i >> j;
	j *= 100;
j+=0.5
	long long k = j;
	cout << i * k/100;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: expected ';' before 'long'
   14 | j+=0.5
      |       ^
      |       ;
   15 |         long long k = j;
      |         ~~~~
a.cc:16:21: error: 'k' was not declared in this scope
   16 |         cout << i * k/100;
      |                     ^
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      BigDecimal b1 = new BigDecimal(a);
      BigDecimal b2 = new BigDecimal(b);
      BigDecimal c = b1.multiply(b2);
      String d1 = c.toString();
      int d = (int)d1; 
        System.out.println(d);
    }
}


Compiler output:
Main.java:12: error: incompatible types: String cannot be converted to int
      int d = (int)d1; 
                   ^
1 error
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
      String a = sc.next();
      String b = sc.next();
      BigDecimal b1 = new BigDecimal(a);
      BigDecimal b2 = new BigDecimal(b);
      BigDecimal c = b1.multiply(b2);
      int d = (int)c;
        System.out.println(d);
    }
}


Compiler output:
Main.java:11: error: incompatible types: BigDecimal cannot be converted to int
      int d = (int)c;
                   ^
1 error
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
      String a = sc.next();
      String b = sc.next();
      BigDecimal b1 = new BigDecimal(a);
      BigDecimal b2 = new BigDecimal(b);
      BigDecimal c = b1.multiply(b2);
      int d = (int)(c)
        System.out.println(d);
    }
}


Compiler output:
Main.java:11: error: cannot find symbol
      int d = (int)(c)
                    ^
  symbol:   class c
  location: class Main
1 error
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
      String a = sc.next();
      String b = sc.next();
      BigDecimal b1 = new BigDecimal(a);
      BigDecimal b2 = new BigDecimal(b);
      BigDecimal c = b1.multiply(b2);
      int d = int(c)
        System.out.println(d);
    }
}


Compiler output:
Main.java:11: error: '.class' expected
      int d = int(c)
                 ^
Main.java:11: error: not a statement
      int d = int(c)
                  ^
Main.java:11: error: ';' expected
      int d = int(c)
                   ^
3 errors
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
      String a = sc.next();
      String b = sc.next();
      BigDecimal b1 = new BigDecimal(a);
      BigDecimal b2 = new BigDecimal(b);
      BigDecimal c = b1.multiply(b2);
        System.out.println(int(c));
    }
}


Compiler output:
Main.java:11: error: '.class' expected
        System.out.println(int(c));
                              ^
Main.java:11: error: not a statement
        System.out.println(int(c));
                               ^
Main.java:11: error: ';' expected
        System.out.println(int(c));
                                ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define  ft  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define  ll  long long
int main()
{
    ft
    ll n,l;
    double m;
    cin>>n>>m;
    ll l=n*round(m*100)/100;
    cout<<l<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: redeclaration of 'long long int l'
   11 |     ll l=n*round(m*100)/100;
      |        ^
a.cc:8:10: note: 'long long int l' previously declared here
    8 |     ll n,l;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define  ft  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define  ll  long long
int main()
{
    ft
    ll n,l;
    double m;
    cin>>n>>m;
    ll l=n*round(m*100)/100;
    cout<<l<<"\n";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: redeclaration of 'long long int l'
   11 |     ll l=n*round(m*100)/100;
      |        ^
a.cc:8:10: note: 'long long int l' previously declared here
    8 |     ll n,l;
      |          ^
Language: C++

#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
using ll = unsigned long long;
ll u18 = 1000000000000000000;
int main()
{
    
    double b;
    ll a, bb ;
    cin >> a >> b ;

    b = rount( b*100. );
    bb = (ll)b;
    a  *= bb;
    a /= 100;
    cout << a << endl;

   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'rount' was not declared in this scope; did you mean 'round'?
   15 |     b = rount( b*100. );
      |         ^~~~~
      |         round
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        
       int b = sc.nextInt();
      BigDecimal c = (BigDecimal)(a*b);
        System.out.println(c);
    }
}


Compiler output:
Main.java:10: error: incompatible types: int cannot be converted to BigDecimal
      BigDecimal c = (BigDecimal)(a*b);
                                 ^
1 error
Language: Java

import java.util.*;
import java.math.BigDecimal;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        
       int b = sc.nextInt();
      BigDecimal c = BigDecimal(a*b);
        System.out.println(c);
    }
}


Compiler output:
Main.java:10: error: cannot find symbol
      BigDecimal c = BigDecimal(a*b);
                     ^
  symbol:   method BigDecimal(int)
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        
       int b = sc.nextInt();
      BigDecimal c = BigDecimal(a*b);
        System.out.println(c);
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
      BigDecimal c = BigDecimal(a*b);
      ^
  symbol:   class BigDecimal
  location: class Main
Main.java:9: error: cannot find symbol
      BigDecimal c = BigDecimal(a*b);
                     ^
  symbol:   method BigDecimal(int)
  location: class Main
2 errors
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        BigDecimal a = sc.nextBigDecimal();
        
        BigDecimal b = sc.nextBigDecimal();
      BigDecimal c = a*b;
        System.out.println(c);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        BigDecimal a = sc.nextBigDecimal();
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:8: error: cannot find symbol
        BigDecimal b = sc.nextBigDecimal();
        ^
  symbol:   class BigDecimal
  location: class Main
Main.java:9: error: cannot find symbol
      BigDecimal c = a*b;
      ^
  symbol:   class BigDecimal
  location: class Main
3 errors
Language: C++

#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
using ll = unsigned long long;
ll u18 = 1000000000000000000;
int main()
{
    
    double b;
    ll a, bb ;
    cin >> a >> b ;

    b = b*100.;
    bb = (ll)b
    a  *= bb;
    a /= 100;
    cout << a << endl;

   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before 'a'
   16 |     bb = (ll)b
      |               ^
      |               ;
   17 |     a  *= bb;
      |     ~
Language: C++

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

int main(){
  long long A;double B;cin>>A>>B;
  long long B*=100;
  cout<<fixed<<setprecision(0);
  cout<<A*B/100<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected initializer before '*=' token
    6 |   long long B*=100;
      |              ^~
Language: C++

#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
using ll = unsigned long long;
ll u18 = 1000000000000000000;
int main()
{
    
    ll a, b;
    cin >> a >> b ;
    b*=100
    a *= b
    a /= 100
    cout << a << endl;

   
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before 'a'
   13 |     b*=100
      |           ^
      |           ;
   14 |     a *= b
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before '}' token
    6 |   cout<<A*B<<endl
      |                  ^
      |                  ;
    7 | }
      | ~
Language: C++

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

int main() {
    ios_base::sync_with_stdio(0); cin.tie(0);
    int t = 1;
    while(t--){
        long long double x, y;
        cin>>x>>y;
        x*= 1.0 * y;
        ll ans = x;
        cout<<ans;
    }
    return 0;
}


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

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const ll mod = 1000000007;
const ll INF = 1001001001;
const ll LINF = 1001001001001001001;

void prvec(vector<ll> vec){ //for debug
    ll n = vec.size();
    cout << "------------------------------------\n" ;
    rep(i,n) cout << i << " " << vec.at(i) << "\n";
    cout << "------------------------------------\n" ;
}

void pr2d(vector<vector<ll>> vec){ // for debug
    ll h = vec.size();
    ll w = vec.at(0).size();
    cout << "------------------------------------\n" ;
    rep(i,h){
        rep(j,w){
            cout << vec.at(i).at(j) << " ";
        }
        cout << "\n";
    }
    cout << "------------------------------------\n" ;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:35:20: error: 'c' was not declared in this scope
   35 |     cout << (ll)(a*c/100) << endl;
      |                    ^
Language: C++

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

int main()
{
  long long a;
  double penetration;
  cout << (long long)(a * b) << endl;
}

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

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

int main()
{
  long long a;
  double penetration;
  cout << (long long)(a * b) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'b' was not declared in this scope
    8 |   cout << (long long)(a * b) << endl;
      |                           ^
a.cc:8:38: error: expected '}' at end of input
    8 |   cout << (long long)(a * b) << endl;
      |                                      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
 
#include <bits/stdc++.h>
 
using namespace std;
 
typedef long long ll;
typedef long double ld;
typedef complex<ld> cd;
 
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;
typedef pair<ld,ld> pd;
 
typedef vector<int> vi;
typedef vector<ld> vd;
typedef vector<ll> vl;
typedef vector<pi> vpi;
typedef vector<pl> vpl;
typedef vector<cd> vcd;
 
#define FOR(i, a, b) for (int i=a; i<(b); i++)
#define F0R(i, a) for (int i=0; i<(a); i++)
#define FORd(i,a,b) for (int i = (b)-1; i >= a; i--)
#define F0Rd(i,a) for (int i = (a)-1; i >= 0; i--)
 
#define sz(x) (int)(x).size()
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define all(x) x.begin(), x.end()
#define ins insert
 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
const int MOD = 1000000007;
const char nl = '\n';
const int MX = 100001; //check the limits, dummy
 
int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);    
	
    ll A, B; cin >> A >> B;
    char C; cin >> C;
    int D; cin >> D;
    B *= 100; B += D;
    ll X = A*B; X /= 100;
    cout << X << nl;
	
	return 0;

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

#include "bits/stdc++.h"
#include "ext/pb_ds/assoc_container.hpp"
#include "ext/pb_ds/tree_policy.hpp"
#define ordered_set tree<pair<int,int>, null_type,less<pair<int,int>>, rb_tree_tag,tree_order_statistics_node_update>
using namespace std;
using namespace __gnu_pbds;
#define int long long int
//#define ll long long int
#define pb push_back
#define vec vector<int>
#define fo(i, n) for (int i = 0; i < n; i++)
#define foo(i, a, b) for (int i = a; i < b; i++)
#define mp make_pair
#define deb(x) cout << #x << " --> " << x << endl;
#define deb1a(v) cout << #v << "--->" << endl; for (auto it : v)  cout << it << " "; cout << endl;
#define deb2a(v) cout << #v << "--->" << endl;for (auto it:v){for(auto it1 : it){cout << it1 << " ";}cout<< endl;}
#define deb3a(v) cout << #v << "-->" << endl; for(auto it:v){cout << it.fi << " " << it.se << endl;}
#define mod 998244353
#define so(v) sort(v.begin(),v.end())
#define fi first
#define se second
#define db1(x) cout<<#x<<"="<<x<<endl
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<endl
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<endl
int power(int x, unsigned int y, int p){ int res = 1;x = x % p;while (y > 0)  { if (y & 1)res = (res*x) % p;y = y>>1;  x = (x*x)% p;} return res;}
int mI(int a, int m)  {return power(a, m - 2, m);}
// vector<vector<int>> dir = {{1, 0}, {-1, 0}, {0, 1}, {0, -1},{1,1},{1,-1},{-1,1},{-1,-1}};
#define double long double

int32_t main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n;
    double m;
    cin >> n >> m;
    int mm=m*100;
    int ans = n * m;
    int ans=ans/100;
    cout << ans;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:39:9: error: redeclaration of 'long long int ans'
   39 |     int ans=ans/100;
      |         ^~~
a.cc:38:9: note: 'long long int ans' previously declared here
   38 |     int ans = n * m;
      |         ^~~
Language: C

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
const ll inf = (ll)1e9 + 7;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll i, j, k;
    float b;
    ll a, c;
    cin >> a >> b;
    c = 100 * b;
    cout << (a * c / (ll)100);
    return 0;
}
//664706138336385 9.79

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

#include<iostream>
using namespace std;
int main()
{
   long double a,mul;
    long double b;
    cin>>a;
    cin>>b;
    mul=a*b;
    cout<<long long int(mul)<<"\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before 'long'
   10 |     cout<<long long int(mul)<<"\n";
      |           ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  double a,b;
  cin >> a >> b;
  printf("%.0f\n",floor(a * b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'floor' was not declared in this scope
    7 |   printf("%.0f\n",floor(a * b));
      |                   ^~~~~
Language: C++

#include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

int main() {
  ll A;
  string B;
  cin >> A >> B;
  //Bから小数点を除くことで100倍の値にする
  B = B[0] + B[2] +B[3]
  int num_b = stoi(B);
  ll ans = A * num_b;
  //Bが100倍になっているので100で割る
  ans /= 100;
  cout << ans << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before 'int'
   12 |   B = B[0] + B[2] +B[3]
      |                        ^
      |                        ;
   13 |   int num_b = stoi(B);
      |   ~~~                   
a.cc:14:16: error: 'num_b' was not declared in this scope
   14 |   ll ans = A * num_b;
      |                ^~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Atcoder_3 {
    public static void main(String[] args) {
        FastReader input = new FastReader();
        double a = input.nextDouble();
        double b = input.nextDouble();
        double c = a * b;
        System.out.printf("%.0f\n",Math.floor(c));
    }
    static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


Compiler output:
Main.java:6: error: class Atcoder_3 is public, should be declared in a file named Atcoder_3.java
public class Atcoder_3 {
       ^
1 error
Language: Java

public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        float b = sc.nextFloat();
        if(0<=a && a<= Math.pow(10,15)){
            float c =a*b;
            System.out.println((long)c);
        }
    }
}

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

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

int main() {
	long int A;
    long double B;
	cin >> A >> B;
    
    B *= 100;
    long int C = A*B;
	long int X = C%100
  
    cout << (C-X)/100 << endl;
}

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

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

int main() {
  int A, B, P;
  cin >> A >> B;
  P=(A*(1000*B))/1000
  cout << P << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'cout'
    7 |   P=(A*(1000*B))/1000
      |                      ^
      |                      ;
    8 |   cout << P << endl;
      |   ~~~~
Language: C++

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

int main() {
  int A, B;
  cin >> A >> B;
  P=(A*(1000*B))/1000
  cout << P << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'P' was not declared in this scope
    7 |   P=(A*(1000*B))/1000
      |   ^
Language: C++

#include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); }
using P = pair <int, int>;
 
ll MOD = 1000000007;
ll INF =1<<29;
 
int main() {
    ll a;
    long double b;
    cin >> a>>b;
    a*=b
    cout << (ll)a<<endl;
 
}

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

#include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); }
using P = pair <int, int>;
 
ll MOD = 1000000007;
ll INF =1<<29;
 
int main() {
    ll a;
    long double b;
    cin >> a>>b;
    cout << (ll)a*b*/1 <<endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected primary-expression before '/' token
   17 |     cout << (ll)a*b*/1 <<endl;
      |                     ^
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
/* clang-format off */
#define INF (INT_MAX / 4)
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(a) (a).begin(), (a).end()
#define __DEBUG__
#ifdef __DEBUG__
#define CH_P(a) cout <<"check_point("<<#a<<")" << "\n";
#define DEBUG(x) cout<<#x<<":"<<x<<"\n"
#define DEBUGS(v) cout << #v << ":";for(auto x:v){cout<<x<<" ";}cout<<"\n"
#endif
#ifndef __DEBUG__
#define CH_P(a) 
#define DEBUG(x) 
#define DEBUGS(v) 
#endif
#define TIMER_S(start) chrono::system_clock::time_point start = chrono::system_clock::now();
#define TIMER_E(end) chrono::system_clock::time_point end = chrono::system_clock::now();
#define TIME(start, end) cout << static_cast<double>(chrono::duration_cast<chrono::microseconds>(end - start).count()) << "ms" << "\n";
/* clang-format on */

int main() {
  ll a;
  string s;
  cin >> a >> s;
  int b = (s.at(0) - '0') * 100 + (s.at(2) - '0') * 10 + s.at(3) - '0';
  cout << a * b / 100 << "\n";
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
  int64_t a;
  long double b;
  cin >> a >> b;
  int64_t ans = (int64_t)a*b;
  cout << ans << endl;
}


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