criyle/codenet-compile-errors huggingface dataset:
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;
    double b;
    cin >> a>>b;
    ll c = b*100;
    cout << a*c/100 <<endl;
 
}
#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;
    double b;
    cin >> a>>b;
    int c = b*100;
    cout << a*c/100 <<endl;

}

Compiler output:
a.cc:26:4: error: redefinition of 'long long int gcd(long long int, long long int)'
   26 | ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
      |    ^~~
a.cc:6:4: note: 'long long int gcd(long long int, long long int)' previously defined here
    6 | ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
      |    ^~~
a.cc:27:4: error: redefinition of 'long long int lcm(long long int, long long int)'
   27 | ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); }
      |    ^~~
a.cc:7:4: note: 'long long int lcm(long long int, long long int)' previously defined here
    7 | ll lcm(ll a, ll b) { return (a * b) / gcd(a,b); }
      |    ^~~
a.cc:30:4: error: redefinition of 'long long int MOD'
   30 | ll MOD = 1000000007;
      |    ^~~
a.cc:10:4: note: 'long long int MOD' previously defined here
   10 | ll MOD = 1000000007;
      |    ^~~
a.cc:31:4: error: redefinition of 'long long int INF'
   31 | ll INF =1<<29;
      |    ^~~
a.cc:11:4: note: 'long long int INF' previously defined here
   11 | ll INF =1<<29;
      |    ^~~
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main() {
      |     ^~~~
a.cc:13:5: note: 'int main()' previously defined here
   13 | int main() {
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: unable to find numeric literal operator 'operator""f'
    8 |   b=b*(100f);
      |        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: unable to find numeric literal operator 'operator""f'
    8 |   b=b*100f;
      |       ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: unable to find numeric literal operator 'operator""f'
    8 |   b=b*100f;
      |       ^~~~
a.cc:9:7: error: expected primary-expression before 'long'
    9 |   ans=long long int(b);
      |       ^~~~
Language: C++

using namespace std;
int main(){
long double a,b;
    cin >> a>>b;
    cout <<std::setprecision(18);
  long long bb = b*100;
 cout <<(a*(bb))/100;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a>>b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout <<std::setprecision(18);
      |     ^~~~
a.cc:5:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:17: error: 'setprecision' is not a member of 'std'
    5 |     cout <<std::setprecision(18);
      |                 ^~~~~~~~~~~~
a.cc:1:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
  +++ |+#include <iomanip>
    1 | using namespace std;
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << A*B << 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:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << A*B << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

public static class P
{
    public static void Main()
    {
        var ab = Console.ReadLine().Split().Select(decimal.Parse).ToArray();
        Console.WriteLine(Floor((ab[0] * ab[1])));
    }
}


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;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Diagnostics;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.IO;
      |       ^~~~~~
a.cc:6:7: error: expected nested-name-specifier before 'System'
    6 | using System.Linq;
      |       ^~~~~~
a.cc:7:7: error: expected nested-name-specifier before 'System'
    7 | using System.Numerics;
      |       ^~~~~~
a.cc:8:7: error: expected nested-name-specifier before 'System'
    8 | using System.Text;
      |       ^~~~~~
a.cc:9:7: error: expected nested-name-specifier before 'System'
    9 | using System.Text.RegularExpressions;
      |       ^~~~~~
a.cc:10:7: error: expected nested-name-specifier before 'System'
   10 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:7: error: expected nested-name-specifier before 'static'
   11 | using static System.Math;
      |       ^~~~~~
a.cc:13:1: error: expected unqualified-id before 'public'
   13 | public static class P
      | ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: declaration does not declare anything [-fpermissive]
    5 | #define double long double ;
      |                     ^~~~~~
a.cc:8:1: note: in expansion of macro 'double'
    8 | double B;
      | ^~~~~~
a.cc:8:8: error: 'B' was not declared in this scope
    8 | double B;
      |        ^
Language: C++

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


Compiler output:
a.cc:5:13: error: 'longlong' does not name a type
    5 | #define int longlong ;
      |             ^~~~~~~~
a.cc:7:1: note: in expansion of macro 'int'
    7 | int main() {
      | ^~~
a.cc:7:5: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:5:13: error: 'longlong' was not declared in this scope
    5 | #define int longlong ;
      |             ^~~~~~~~
a.cc:8:3: note: in expansion of macro 'int'
    8 |   int  A;
      |   ^~~
a.cc:8:8: error: 'A' was not declared in this scope
    8 |   int  A;
      |        ^
a.cc:6:16: error: 'longdouble' was not declared in this scope; did you mean 'double'?
    6 | #define double longdouble ;
      |                ^~~~~~~~~~
a.cc:9:1: note: in expansion of macro 'double'
    9 | double B;
      | ^~~~~~
a.cc:9:8: error: 'B' was not declared in this scope
    9 | double B;
      |        ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <queue>
#include <stack>
#include <cmath>
#include <map>
#include <iomanip>
#include <set>
#include <ctime>
#include <tuple>
#include <bitset>
#include <assert.h>
#include <deque>
using namespace std;

/*
using PAIR = pair<string, int>;
sort(sp.begin(), sp.end(), [](PAIR l, PAIR r){
        return l.first<r.first || (l.first==r.first && l.second > r.second);
        });
*/

typedef long long ll;

#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < n; i++)
#define debugA() cerr << "AAAAA" << endl
#define debug_() cerr << "-------------" << endl
#define debug(x) cerr << #x << ": " << x << endl
#define debug_vec(v)                   \
    for (int i = 0; i < v.size(); i++) \
    {                                  \
        cout << v[i] << " ";           \
    }                                  \
    cout << endl;

using Graph = vector<vector<int>>;

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:11: error: expected unqualified-id before 'long'
   47 |     ll a, long double b;
      |           ^~~~
a.cc:48:17: error: 'b' was not declared in this scope
   48 |     cin >> a >> b;
      |                 ^
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define rrep(i,n) for(int i = (n)-1; i >= 0; i--)
#define rep1(i,n) for(int i = 1; i <= (n); i++)
#define rrep1(i,n) for(int i = (n); i > 0; i--)

#define ll long long
#define pi pair<int, int>
#define pll pair<ll, ll>

#define MOD 1000000007
#define INF 1000000000000000LL

using namespace std;

int main(){
  long double a,b; cin>>a>>b;
  ll bb=(ll)(b*100);
  

  cout<<(ll)(a*bb0/100.0)<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: 'bb0' was not declared in this scope; did you mean 'bb'?
   22 |   cout<<(ll)(a*bb0/100.0)<<endl;
      |                ^~~
      |                bb
Language: C++

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

int main() {
  int64_t A;
  string S;
  cin>>A>>S;
  int64_t B;
  if(S.size==4)B=(S.at(0)- '0')*100+(S.at(2)- '0')*10+(S.at(3)- '0');
  if(S.size==5)B=(S.at(0)- '0')*1000+(S.at(1)- '0')*100+(S.at(3)- '0')*10+(S.at(4)- '0');
  cout<<A*B/100;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |   if(S.size==4)B=(S.at(0)- '0')*100+(S.at(2)- '0')*10+(S.at(3)- '0');
      |      ~~^~~~
      |            ()
a.cc:12:8: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |   if(S.size==5)B=(S.at(0)- '0')*1000+(S.at(1)- '0')*100+(S.at(3)- '0')*10+(S.at(4)- '0');
      |      ~~^~~~
      |            ()
Language: C++

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

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

from decimal import *

a, b = map(str, input().split())
a = Decimal(a)
b = Decimal(b)

res = a * b

print(res.quantize(Decimal('0'), rounding=ROUND_DOWN))


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

#include <bits/stdc++.h>
using namespace std;
using ll=unsigned long long;
using ld=long double
#define rep(i, n) for (int i = 0; i < (n); i++)
using P=pair<int,int>;
int main() {
    ll a;
    long double b;
    cin>>a>>b;
    ll s=b*100;
    ll x=a*s;
    ll ans=x/100;

    cout<<ans<<endl;



}

Compiler output:
a.cc:4:21: error: expected ';' before 'using'
    4 | using ld=long double
      |                     ^
      |                     ;
    5 | #define rep(i, n) for (int i = 0; i < (n); i++)
    6 | using P=pair<int,int>;
      | ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define ll long long int
#define rep(i, n) for(int i = 0; i < n; i++)
#define repp(i, n) for(int i = 1; i <= n; i++)
#define sort(v) sort((v).begin(), (v).end())
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define reverse(v) reverse((v).begin(), (v).end())
using vi = vector<int>;
using vs = vector<string>;
using vc = vector<char>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vb = vector<bool>;
using vvb = vector<vb>;
const ll MOD = 1e9+7;
vi alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m',
               'n','o','p','q','r','s','t','u','v','w','x','y','z'};

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

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

using ll=unsigned long long;
#define rep(i, n) for (int i = 0; i < (n); i++)
using P=pair<int,int>;
int main() {
    ll a;cin>>a;
    long double b;
    scanf("%lf",&b);
    ll s=b*100;
    ll x=a*s;
    ll ans=x/100;

    cout<<ans<<endl;



}

Compiler output:
a.cc:3:9: error: 'pair' does not name a type
    3 | using P=pair<int,int>;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope
    5 |     ll a;cin>>a;
      |          ^~~
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%lf",&b);
      |     ^~~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<ans<<endl;
      |     ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope
   12 |     cout<<ans<<endl;
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
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);
}
int main()
{
    #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
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);
}
int main()
{
    ll a;
    double b;
    cin>>a>>b;
    a=a*b;
    cout<<a;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: a function-definition is not allowed here before '{' token
   18 | {
      | ^
a.cc:22:1: error: a function-definition is not allowed here before '{' token
   22 | {
      | ^
a.cc:25:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   25 | int main()
      |         ^~
a.cc:25:9: note: remove parentheses to default-initialize a variable
   25 | int main()
      |         ^~
      |         --
a.cc:25:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:26:1: error: a function-definition is not allowed here before '{' token
   26 | {
      | ^
a.cc:33:2: error: expected '}' at end of input
   33 | }
      |  ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
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>;

const ll MX = 1e18;

int main(){
    ll a;
    double b;
    cin >> a >> b;
    ll ib = =b*100+0.5;
    a *= ib;
    a /= 100;
    printf("%lld\n", a);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected primary-expression before '=' token
   13 |     ll ib = =b*100+0.5;
      |             ^
Language: C++

#include<cstdlib>
#include<iostream>
#include<cmath>
using namespace std;
constexpr long long int LLINT_MAX = 1e18;

void Multiplication1() {
	int A, B;
	cin >> A >> B;
	cout << A * B;
}

void Multiplication2() {
	int N;
	bool isOverflow = false;
	long long int ans = 1;
	cin >> N;
	for (int i = 0; i < N; i++) {
		long long int num;
		cin >> num;
		if (num == 0) {
			cout << 0 << endl;
			return;
		}
		if (isOverflow || num > LLINT_MAX / ans) {
			isOverflow = true;
		}
		ans *= num;
	}
	if (isOverflow) cout << -1 << endl;
	else cout << ans;
}

void Multiplication3() {
	long long int A, ans;
	double B;
	cin >> A >> B;
	ans = B * 100;
	ans *= A;
	ans / =100;
	cout << ans;
}

bool IsPrime(long int num)
{
	if (num < 2) return false;
	else if (num == 2) return true;
	else if (num % 2 == 0) return false;

	long double sqrtNum = sqrt(num);
	for (long int i = 3; i <= sqrtNum; i += 2)
	{
		if (num % i == 0) return false;
	}
	return true;
}

void DivGame() {
	long long int N;
	int e = 1;
	int ans = 0;
	cin >> N;
	if (N == 1) {
		cout << ans;
		return;
	}
	if (IsPrime(N)) {
		cout << 1;
		return;
	}
	for (long long int p = 2; p <= (long double)sqrt(N); p++) {
		if (IsPrime(p)) {
			long int z = p;
			while (N % z == 0) {
				N /= z;
				z *= p;
				ans++;
			}
		}
	}
	cout << ans;
}

int main() {
	Multiplication3();
	//DivGame();
}

Compiler output:
a.cc: In function 'void Multiplication3()':
a.cc:40:15: error: expected primary-expression before '=' token
   40 |         ans / =100;
      |               ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>
#include<stdlib.h>
#include<utility>
#include<functional>
#include<cfenv>
#include<cmath>
#include<string>
#include<queue>
#include<stack>
#include<map>
#include<set>
 
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define vint vector<int>
#define vvint vector<vint>
#define P pair<int,int>
#define INT_MAX 2147483647
#define MOD 1000000007
#define PI 3.14159265358979323846
using namespace std;
typedef long long ll;
 
 
 
int main(void) {
	ll a;
	double b;
	cin >> a >> b;
	ll c = b * 100+0.5;
 
	cout << (a * c)/100 << endl;
	return 0;

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

#include<stdio.h>
#include<math.h>
int main()
{
	unsigned long long a, x;
	long double b;
	long float sum = 0;
	scanf("%llu %lf", &a, &b);
	b = (long double)(b *100);
	sum = floor(((unsigned long long)a * (long double)b) / 100);
	x = sum;
	printf("%llu", x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: both 'long' and 'float' in declaration specifiers
    7 |         long float sum = 0;
      |              ^~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <bits/stdc++.h>

using namespace std;
using ll = long long ;
const int INF = 1001001001;

int main() {

    ll a
    double b ;
    cin >> a >> b;
    ll ib = b*100+0.5 ;
    a*=ib;
    a/=100;
    printf("%lld\n",a);
    return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected initializer before 'double'
   16 |     double b ;
      |     ^~~~~~
a.cc:17:12: error: 'a' was not declared in this scope
   17 |     cin >> a >> b;
      |            ^
a.cc:17:17: error: 'b' was not declared in this scope
   17 |     cin >> a >> b;
      |                 ^
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
	unsigned long long a, x;
	long double b;
	long float sum = 0;
	scanf("%llu %Lf", &a, &b);
	b = (long double)(b *100);
	printf("%Lf\n", b);
	sum = floor(((unsigned long long)a * (long double)b) / 100);
	x = sum;
	printf("%llu", x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: both 'long' and 'float' in declaration specifiers
    7 |         long float sum = 0;
      |              ^~~~~
Language: C++

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

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


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

#include<stdio.h>
#include<math.h>
int main()
{
	unsigned long long a, x;
	long double b;
	long float sum = 0;
	scanf("%llu %lf", &a, &b);
	b = (long double)(b *100);
	printf("%lf\n", b);
	sum = floor(((unsigned long long)a * (long double)b) / 100);
	x = sum;
	printf("%llu", x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: both 'long' and 'float' in declaration specifiers
    7 |         long float sum = 0;
      |              ^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before 'cin'
    7 |    B*=100
      |          ^
      |          ;
    8 |    cin >> A >> B;
      |    ~~~
Language: C++

# -*- coding: utf-8 -*-
"""pyhton_file.ipynb

Automatically generated by Colaboratory.

Original file is located at
    https://colab.research.google.com/drive/13RovZ8qFEyLQyhR9-JgSQ4p90syiGDJq
"""

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

10

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: warning: missing terminating " character
    2 | """pyhton_file.ipynb
      |   ^
a.cc:2:3: error: missing terminating " character
    2 | """pyhton_file.ipynb
      |   ^~~~~~~~~~~~~~~~~~
a.cc:8:3: warning: missing terminating " character
    8 | """
      |   ^
a.cc:8:3: error: missing terminating " character
a.cc:2:1: error: expected unqualified-id before string constant
    2 | """pyhton_file.ipynb
      | ^~
Language: C++

import math
a,b = map(str,input().split())
a = int(a)
b = float(b)
b = int((b*100)+0.01)
ans = (a*b)/100
print(math.floor(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<bits/stdc++.h>
using namespace std;

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


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

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

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

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

import java.io.*;
import java.util.*;
import java.math.BigDecimal;
class Main{
	static final long MOD = 1_000_000_007; // 10^9+7
	static final int MAX = 2_147_483_646; // intMax 
	static final int INF = 1_000_000_000; // 10^9  
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		BigDecimal a = sc.nextBigDecimal();
		BigDecimal b = sc.nextBigDecimal();
		System.out.println(a.multiply(b).toBigInteger());
		saori.close();
	}
}

class hayami implements Closeable {
	private final InputStream in = System.in;
	private final byte[] hayami = new byte[1024];
	private int Hayami = 0;
	private int saori = 0;
	private boolean HayamiSaori() {
		if (Hayami < saori) {
			return true;
		}else{
			Hayami = 0;
			try {
				saori = in.read(hayami);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (saori <= 0) {
				return false;
			}
		}
		return true;
	}
	private int SaoriHayami() { 
		if (HayamiSaori()) {
            return hayami[Hayami++];
         }else{
             return -1;
         }
	}
	private static boolean hayami_saori(int hayami) { 
		return 33 <= hayami && hayami <= 126;
	}
	public boolean hayamisaori() { 
		while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
	}
	public String nextHayami() {
		if (!hayamisaori()) throw new NoSuchElementException();
		StringBuilder hayamin = new StringBuilder();
		int saori = SaoriHayami();
		while(hayami_saori(saori)) {
			hayamin.appendCodePoint(saori);
			saori = SaoriHayami();
		}
		return hayamin.toString();
	}
	public long saorihayami() {//nextLong
		if (!hayamisaori()) throw new NoSuchElementException();
		long hayami = 0;
		boolean misao = false;
		int saori = SaoriHayami();
		if (saori == '-') {
			misao = true;
			saori = SaoriHayami();
		}
		if (saori < '0' || '9' < saori) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= saori && saori <= '9') {
				hayami *= 10;
				hayami += saori - '0';
			}else if(saori == -1 || !hayami_saori(saori)){
				return misao ? -hayami : hayami;
			}else{
				throw new NumberFormatException();
			}
			saori = SaoriHayami();
		}
	}
	public int saori_hayami() {//nextInt
		long hayami = saorihayami();
		if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) hayami;
	}
	public double Hayamin() { //nextDouble
		return Double.parseDouble(nextHayami());
	}
	public void close() {
		try {
			in.close();
		} catch (IOException e) {
		}
    }
    
}


Compiler output:
Main.java:13: error: cannot find symbol
		saori.close();
		^
  symbol:   variable saori
  location: class Main
1 error
Language: C++

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

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

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;
using ll = long long;

int main()
{
	ll a;
	float b;
	cin >> a >> b;
	u = a*b;
	cout << floor(u);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'u' was not declared in this scope
   12 |         u = a*b;
      |         ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected initializer before 'cin'
   10 |         cin >> A >> B;
      |         ^~~
a.cc:11:31: error: 'B' was not declared in this scope
   11 |         cout << (long long)(A*B) << endl;
      |                               ^
Language: Java

public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	double A = sc.nextDouble();
    	double B = sc.nextDouble();

    	double times = (A * (B*1000))/1000;
    	times = Math.floor(times);

    	System.out.println((long)times);
    }
}


Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws FileNotFoundException {
                                                  ^
  symbol:   class FileNotFoundException
  location: class Main
Main.java:8: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

#include<iostream>

using namespace std;

long long a;
double b;
long long c;

signed main()
{
	scanf("%lld %lf", &a, &b);
	
	c = floor((long double)a * b);
		
	printf("%lld",c);
	 
	return 0;
} 

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

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

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; }

using ll = long long;

const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const int INF = 1<<30;
const ll mod = 1000000007LL;

int main() {
  ll A;
  string B;
  cin>>A>>B;
  B.erase(B.end-3);
  reverse(B.begin(),B.end());
  ll C = 0LL;
  ll i = 1LL;
  for(auto x:B){
    C+=i*x;
    i*=10LL;;
  }
  cout<<(A*C)/100<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
   18 |   B.erase(B.end-3);
      |           ~~~~~^~
      |             |   |
      |             |   int
      |             <unresolved overloaded function type>
Language: C++

include<iostream>

using namespace std;

long long a;
double b;
double c;

signed main()
{
	scanf("%lld %lf", &a, &b);
	
	c = (long double)a * b;
		
	printf("%lld", (long long)c);
	 
	return 0;
} 

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:11:9: error: 'scanf' was not declared in this scope
   11 |         scanf("%lld %lf", &a, &b);
      |         ^~~~~
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf("%lld", (long long)c);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<iostream>
Language: C++

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

    return 0;
}

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

#include <iostream>
using namespace std;
int main()
{
	double a, b;
    cin >> a >> b;
    cout << (ll)floor(a * b) << endl;

    return 0;
}

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

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

int main() {
    long long A;
    float B;
    cin >> A >> B;
    cout << (A*(long long)(B*100+0.1))/100a <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: unable to find numeric literal operator 'operator""a'
   10 |     cout << (A*(long long)(B*100+0.1))/100a <<endl;
      |                                        ^~~~
Language: C++

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

int main() {
    long long A;
    float B;
    cin >> A >> B;
    cout << (A*(long long)(B*100+0.1)/100 <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:43: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << (A*(long long)(B*100+0.1)/100 <<endl;
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:10:49: error: expected ')' before ';' token
   10 |     cout << (A*(long long)(B*100+0.1)/100 <<endl;
      |             ~                                   ^
      |                                                 )
Language: C++

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

int main() {
  long long a;
  cin >> a;
  string b;
  cin >> b;

  b.erase(b.begin()+1);   
  int k = stoi(b);   
   
  cout << a*k/100 << endl;
}



Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a;
      |   ^~~
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string b;
      |   ^~~~~~
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin >> b;
      |          ^
a.cc:11:11: error: 'stoi' was not declared in this scope
   11 |   int k = stoi(b);
      |           ^~~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << a*k/100 << endl;
      |   ^~~~
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |   cout << a*k/100 << endl;
      |                      ^~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <vector>

using namespace std;

int main(){
 long int a;
 float b;
 long int result =a*b;
 cout << result ;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: 'cout' was not declared in this scope
   11 |  cout << result ;
      |  ^~~~
a.cc:4:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <vector>
  +++ |+#include <iostream>
    4 |
Language: C++

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

typedef long long ll;

using namespace std;

int main(){
    ll a;
    long long double b;
    cin >> a >> b;
    b *= 100;
    ll ans = a * b / 100;
    /*
    ll b1 = (int) b;
    ll b2 = (int)(b * 10) % 10;
    ll b3 = (int)(b * 100) % 10;

    ll c = a * b2;
    ll d = a * b3;

    double b4 = c % 10 * 0.1;
    double b5 = d % 100 * 0.01;

    ll add = (int)(b4 + b5);

    ll ans = a * b1 + (a * b2 / 10) + (a * b3 / 100);
    ans += add;
    */

    cout << ans << endl;
}


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

#include<stdio.h>
 
int main(){
  unsigned long long a;
  double b;
  scanf("%llu %lf",&a,&b);
  printf("%f\n",b);
  double c=b*100
  unsigned long long d=c;
  printf("%llu",a*d/100);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: expected ',' or ';' before 'unsigned'
    9 |   unsigned long long d=c;
      |   ^~~~~~~~
main.c:10:19: error: 'd' undeclared (first use in this function)
   10 |   printf("%llu",a*d/100);
      |                   ^
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()

ll ts = 1000000007;

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

  ll a;
  double b;
  cin >> a >> b;
  ll db = b * 100;
  cout << a * db / 100 << "\n";
}
ç

Compiler output:
a.cc:22:1: error: '\U000000e7' does not name a type
   22 | ç
      | ^
Language: C++

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

const char nl = '\n';
 
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:9:5: error: 'll' was not declared in this scope; did you mean 'nl'?
    9 |     ll A, B; cin >> A >> B;
      |     ^~
      |     nl
a.cc:9:21: error: 'A' was not declared in this scope
    9 |     ll A, B; cin >> A >> B;
      |                     ^
a.cc:9:26: error: 'B' was not declared in this scope
    9 |     ll A, B; cin >> A >> B;
      |                          ^
a.cc:13:7: error: expected ';' before 'X'
   13 |     ll X = A*B; X /= 100;
      |       ^~
      |       ;
a.cc:13:17: error: 'X' was not declared in this scope
   13 |     ll X = A*B; X /= 100;
      |                 ^
Language: C++

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

int main(){
    ll a;
    long double b;
    cin>>a>>b;

    cout<<(a*(ll)(100*b+0.000001))/100<<endl;
    
    cout<<ans<<endl;

    return 0;
}

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

#include <iostream>
using namespace std;
 
int main() {
long long int n;cin>>n;double t;cin>>t;int p;
 
{
p=n*t;
    cout<<p;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
//useful library
int long long gcd(int long long a, int long long b){
    return b?gcd(b,a%b):a;
} //最大公約数
int long long lcm(int long long a, int long long b){
    return a/gcd(a,b)*b;
} //最小公倍数
int long long GetDigit(int long long num){
    int long long digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
} //桁数
int long long GetDigitN(int long long num, int long long N){
    int long long digit=0;
    while(num!=0){
        num /= N;
        digit++;
    }
    return digit;
} //十進数でnumの際のN進数における桁数

int main(){
    long double A;
    long double B;
    cin >> A >> B;
    int C = B * 100;
    printf("%lld",floor(a*b)/100);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:25: error: 'a' was not declared in this scope
   32 |     printf("%lld",floor(a*b)/100);
      |                         ^
a.cc:32:27: error: 'b' was not declared in this scope
   32 |     printf("%lld",floor(a*b)/100);
      |                           ^
Language: C++

#include<math.h>
#include <bits/stdc++.h>
#include <algorithm>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long int
#define ull unsigned long long
#define py printf("Yes\n")
#define pn printf("No\n")
#define in cin>>
using namespace std;
int INF = 1001001001;
const int MOD=1e9+7;

int main() {
int n;
  in n;
  long long int ans=1,check=1000000000000000000,tans=0;
  vector<long long int>a(n);
  rep(i,n)
  {
    in a[i];
    if(a[i]==0)
    {
      cout<<0<<endl;
      return 0;
    }
  }
  rep(i,n)
  {
    ans*=a[i];
    if(ans>=1000000000000000001)
    {
      cout<<-1<<endl;
      return 0;
    }
  }

  if(check<ans)tans=-1;
  else tans=ans;
  cout<<tans<<endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:40:20: error: expected '}' at end of input
   40 |   cout<<tans<<endl;
      |                    ^
a.cc:14:12: note: to match this '{'
   14 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()

ll ts = 1000000007;

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

  double a, b;
  cin >> a >> b;

  cout << ll((a * ll(b * 100)) / 100) << "\n";
}
ç

Compiler output:
a.cc:21:1: error: '\U000000e7' does not name a type
   21 | ç
      | ^
Language: C

#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
#define vv(T) vector<vector<T>>
using namespace std;
using ll = long long;
using vint = vector<int>;
using vvint = vector<vector<int>>;
using vll = vector<long long>;
using vvll = vector<vector<long long>>;
using vbool = vector<bool>;
using vvbool = vector<vector<bool>>;
using qint = queue<int>;
using sint = stack<int>;
using pii = pair<int, int>;

// int main(){
//     ll a;
//     double b;
//     cin >> a >> b;

//     long long bt = b * 100;
//     long long b1 = bt % 10;
//     bt /= 10;
//     long long b10 = bt % 10;
//     bt /= 10;
//     long long b100 = bt % 10;

//     long long ans100 = a * b100 * 100;
//     long long ans10 = a * b10 * 10;
//     long long ans1 = a * b1;
    
//     long long ans = ans100;
//     ans += ans10;
//     ans += ans1;

//     ans /= 100;

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
//useful library
int long long gcd(int long long a, int long long b){
    return b?gcd(b,a%b):a;
} //最大公約数
int long long lcm(int long long a, int long long b){
    return a/gcd(a,b)*b;
} //最小公倍数
int long long GetDigit(int long long num){
    int long long digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
} //桁数
int long long GetDigitN(int long long num, int long long N){
    int long long digit=0;
    while(num!=0){
        num /= N;
        digit++;
    }
    return digit;
} //十進数でnumの際のN進数における桁数

int main(){
    long double A;
    long double B;
    cin >> A >> B;
    int C = B * 100;
    printf("%lld",floor(a*b)/100)
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:25: error: 'a' was not declared in this scope
   32 |     printf("%lld",floor(a*b)/100)
      |                         ^
a.cc:32:27: error: 'b' was not declared in this scope
   32 |     printf("%lld",floor(a*b)/100)
      |                           ^
Language: C++

#include <bits/stdc++.h>
 size_t strlen(const char *s);
#define rep(i,n) for(long long int i=0;i<n;i++)
#define sz(x) ((int)(x).size())

using namespace std;
std::vector<int> graph[10050];//graph頂点数のsize
const int N=200010;
//const ll P=1000000007;
const long long P=998244353;
using ll = long long;
vector<ll> prime;

//絶対値
int ze(int a, int b){
	if(a>b){
		return a-b;
	}else{
		return b-a;
	}
}
//小さい方
long long int min(long long int a,long long int b){
	if(a>b){
		return b;
	}else{
		return a;
	}
}
//大きい方
long long int max(long long int a,long long int b){
	if(a>b){
		return a;
	}else{
		return b;
	}
}
// a^n mod 
long long modpow(long long a, long long n, long long mod) {
    long long res = 1;
    while (n > 0) {
        if (n & 1) res = res * a % mod;
        a = a * a % mod;
        n >>= 1;
    }
    return res;
}

// a^{-1} mod 
long long modinv(long long a, long long mod) {
    return modpow(a, mod - 2, mod);
}

//mod掛け算
long long mt(long long a, long long b, long long mod){
	return (a*b)%mod;
}

//メモ

/*
	memset(b, '\0', sizeof(b));
初期化*/


/*
	string s;
	s.size()
*/

/*
	char s[N];
	strlen(s)
*/
/*
	if(  <  )puts("Yes");
	else puts("No");
*/

/*文字列比較
if(strcmp(name[i],s)==0)
*/

/*
	graph[a].push_back(b);//graph[a][i番目に入れた]==b
	graph[j].size()	//forで回すときとか

*/


int main(){
  ll n;
  long double s; 
  cin>>n>>s;
  ll ss=(s+0.005)*100;
  ll ans=ss*n/100;
  cout<<ans<<x<<endl;
          
}



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

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

int main(){
    ll a;
    long double b;
    cin>>a>>b;

    cout<<(a*(ll)(100*b))/100<<endl;
    
    cout<<ans<<endl;

    return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  int a;
  double b,c;
  cin>>a>>b;
  c=a*b;
  cout<<int(c);

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected '}' at end of input
    9 |   cout<<int(c);
      |                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Abc169b {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.nextLine();
        List<Long> list = new ArrayList<>();
        for (int i = 0; i < n; i++) {
            long value = sc.nextLong();
            if (value == 0) {
                System.out.println("0");
                return;
            } else {
                list.add(value);
            }

        }
        try {
            long x = (long) Math.pow(10, 18);
            long result = 1;
            for (long num : list) {
                if (num > x) {
                    break;
                } else {
                    result = result * num;
                }
            }
            if (result > x) {
                System.out.println("-1");
            } else {
                System.out.println(result);
            }
        } catch (Exception e) {
            System.out.println("-1");
        }
    }
}


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

import java.util.*;
import java.math.BigDecimal;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		BigDecimal A = sc.nextBigInteger();
		BigDecimal B = new BigDecimal(sc.nextDouble());
		System.out.print(A.multiply(B));
	}
}


Compiler output:
Main.java:7: error: incompatible types: BigInteger cannot be converted to BigDecimal
		BigDecimal A = sc.nextBigInteger();
		                                ^
1 error
Language: C++

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

int main(){
    ll a;
    long double b;
    cin>>a>>b;

    cout<<(a*(int)(100*b)/100)<<endl;
    
    cout<<ans<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout<<ans<<endl;
      |           ^~~
      |           abs