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

year,month,day = map(int,input().split('/'))
if year < 2019:
    print('Heisei')
elif year > 2019:
    print('TBD')
else:
    if month>= 5:
        print('TBD')
    else:
        print('Heisei')


Compiler output:
a.cc:3:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    3 |     print('Heisei')
      |           ^~~~~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('TBD')
      |           ^~~~~
a.cc:8:15: warning: multi-character character constant [-Wmultichar]
    8 |         print('TBD')
      |               ^~~~~
a.cc:10:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   10 |         print('Heisei')
      |               ^~~~~~~~
a.cc:1:1: error: 'year' does not name a type
    1 | year,month,day = map(int,input().split('/'))
      | ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  if ( str.at(6) == "1" || str.at(6) == "2" || str.at(6) == "3" || str.at(6) == "4" ) {
    cout << "Heisei" << endl;
  }
  else cout << "TBD" endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   if ( str.at(6) == "1" || str.at(6) == "2" || str.at(6) == "3" || str.at(6) == "4" ) {
      |        ^~~
      |        std
a.cc:10:21: error: expected ';' before 'endl'
   10 |   else cout << "TBD" endl;
      |                     ^~~~~
      |                     ;
Language: Java

import java.util.*;

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

        String s = sc.next();

        String[] parts = s.split("/");

        int y = Integer.parseInt(parts[0]);
        int m = Integer.parseInt(parts[1]);
        int d = Integer.parseInt(parts[2]);

        if (y > 2019) {
            System.out.println("TBD");
            return;
        }

        if (m > 4) {
            System.out.println("TBD");
            return;
        }

        if (d > 30) {
            System.out.println("TBD");
            return;
        }

        System.out.println("Heisei");
    }
}

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

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

int main(){
    string s;
    cin >> s;
    if(s[6] < '5' && s[5] < '1'){
        cout << "Heisei";
    }else{
        cout << "TBD";
    }
    return 0;
}

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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <numeric>
#include <array>
#include <cmath>
using namespace std;
//変数デバッグ
#define DEB(variable) cout << #variable << '=' << variable << endl

//for簡易表記(引数ミス防止)
#define FOR(LoopVariable,numberOFbegin,numberOFend) for (int LoopVariable = (numberOFbegin); (LoopVariable) < (numberOFend); (LoopVariable)++)
#define DEFOR(LoopVariable,numberOFbegin,numberOFend) for (int LoopVariable = (numberOFbegin); (LoopVariable) > (numberOFend); (LoopVariable)--)
#define REP(LoopVariable,numberOFend) for(int LoopVariable = 0;(LoopVariable)<(numberOFend);LoopVariable++)

constexpr long long int linf = numeric_limits<long long int>::max()-5;
constexpr int inf= numeric_limits<int>::max()-5;
constexpr long long int mod = 1000000007;

int main(){

    string s;
    cin>>s;
    if(s[6]=='1'||s[7]>='5'){
        cout<<"Heisei"<<endl;
    else{
        cout<<"TBD"<<endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: expected '}' before 'else'
   28 |     else{
      |     ^~~~
a.cc:26:29: note: to match this '{'
   26 |     if(s[6]=='1'||s[7]>='5'){
      |                             ^
Language: C++

S = input()

if (S[5]+S[6])<='04':
	print("Heisei")
else:
	print("TBD")

Compiler output:
a.cc:3:17: warning: multi-character character constant [-Wmultichar]
    3 | if (S[5]+S[6])<='04':
      |                 ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: C++

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

string s;

int main() {
  cin >> s;
  if(s[6] >= '5' || s[5] == | '1')
    cout << "TBD" << endl;
  else
    cout << "Heisei" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected primary-expression before '|' token
    8 |   if(s[6] >= '5' || s[5] == | '1')
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  unsigned long long jpy = 0;
  double btc = 0;
  int n;
  cin >> n;
  for(int i=0; i<n; i++)
  {
    double x;
    string u;
    cin >> x >> u;
    if(u == "JPY")
      jpy += x;
    else
      btc += x;
  }
  
  cout << fixed << setprecision(6) << (double)jpy + btc * 380000 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: 'setprecision' was not declared in this scope
   21 |   cout << fixed << setprecision(6) << (double)jpy + btc * 380000 << endl;
      |                    ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

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

int main() {
  ll a;
  cin>>a;
  ll b=0;
  double c=0;
  for(ll i=0;i<a;i++){
    double d;
    string e;
    cin>>d>>e;
    if(e=="JPY"){
      b+=d;
    }
    else{
      c+=d;
    }
  }
  cout<<fixed(8)<<setprecise;
  cout<<c*380000+b<<endl;
  
      
    
  
  return 0;
}
                             
    


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: invalid initialization of non-const reference of type 'std::ios_base&' from an rvalue of type 'int'
   21 |   cout<<fixed(8)<<setprecise;
      |               ^
In file included from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:19: note: in passing argument 1 of 'std::ios_base& std::fixed(ios_base&)'
 1104 |   fixed(ios_base& __base)
      |         ~~~~~~~~~~^~~~~~
a.cc:21:19: error: 'setprecise' was not declared in this scope; did you mean 'setreuid'?
   21 |   cout<<fixed(8)<<setprecise;
      |                   ^~~~~~~~~~
      |                   setreuid
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin >> n;
  double f[n],ans;
  ans=0;
  stirng s[n];
  for(int i=0;i<n;++i)
  {
  cin >> f[i] >> s[i];
  if(s[i]=="JPY") ans=ans+f[i];
  else ans=ans+f[i]*380000;
  }
  cout << ans;
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'stirng' was not declared in this scope
    9 |   stirng s[n];
      |   ^~~~~~
a.cc:12:18: error: 's' was not declared in this scope
   12 |   cin >> f[i] >> s[i];
      |                  ^
Language: C++

n=int(input())

ans=0

for i in range(n):
    x,u=input().split()

    if(u=="JPY"):
        ans+=float(x)
    else:
        ans+=float(x)*380000

print(ans)


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

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

int main() {
	int n; cin >> n;
	long double JPY=0; long double BTC=0;
	rep(i,n) {
		long double x; string u; cin >> x >> u;
		if(U=="BTC") BTC+=x;
		else JPY+=x;
	}
	long double ans=JPY+BTC*380000;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'U' was not declared in this scope
   10 |                 if(U=="BTC") BTC+=x;
      |                    ^
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;

int main() {
  int n;
  cin >> n;
  double ans = 0;
  rep(i,n){
    double x;
    stirng u;
    cin >> x >> u;
    if(u == "JPY") ans +=x;
    else ans += 380000 * x;
  }

  printf("%.10f\n",ans);
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'stirng' was not declared in this scope
   12 |     stirng u;
      |     ^~~~~~
a.cc:13:17: error: 'u' was not declared in this scope
   13 |     cin >> x >> u;
      |                 ^
Language: C++

n = int(input())
ans = 0
for i in range(n):
    x, u = input().split()
    x = float(x)
    if u == "JPY":
        ans+=x
    else:
        ans+=x*380000
print(ans)

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

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

int main() {
  int N;
  cin >> N;
  
  double ans = 0;
  for (int i = 0; i < N; i++) {
    double x;
    string u;
    cin >> x >> u;
    
    if (u == "JPY") {
      ans += x;
    } else {
      ans += x * 380000.0;
    }
  }
  
  cout << fixed << setpricision(6) << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: 'setpricision' was not declared in this scope
   21 |   cout << fixed << setpricision(6) << ans << endl;
      |                    ^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()


int main()
{
    ll N;  cin>>N;
    vector<long long double> x(N);
    vector<string> u(N);
    ll sum=0;
    rep(i,0,N){
        cin>>x[i]>>u[i];
        if(u[i]=="JPY")sum += x[i];
        else if(u[i]=="BTC")sum += x[i]*380000.0;
    }
    cout<<fixed<<setprecision(15)<<sum<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'long long' specified with 'double'
   18 |     vector<long long double> x(N);
      |                 ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int N;
  int JPY;
  int BTC=380000;
  int i;
  int x;
  int y;
  0==JPY;
  1==BTC;
  int sum1=0;
  int sum2=0;
  
  printf("親戚の人数：",N);
  scanf("%d",N);
  
  for(i=0;i<N;i++){
    printf("%d番目",i+1);
    scanf("%d",&x[i]);
    scanf("%d",&Y[i]);
    if(y==0)
      sum1+=x[i];
    else
      sum2+=y[i];
  }
  sum=sum1+sum2*380000;
  prinf("もらえた合計は%d円",sum);
    

Compiler output:
main.c: In function 'main':
main.c:20:18: error: subscripted value is neither array nor pointer nor vector
   20 |     scanf("%d",&x[i]);
      |                  ^
main.c:21:17: error: 'Y' undeclared (first use in this function)
   21 |     scanf("%d",&Y[i]);
      |                 ^
main.c:21:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:14: error: subscripted value is neither array nor pointer nor vector
   23 |       sum1+=x[i];
      |              ^
main.c:25:14: error: subscripted value is neither array nor pointer nor vector
   25 |       sum2+=y[i];
      |              ^
main.c:27:3: error: 'sum' undeclared (first use in this function); did you mean 'sum2'?
   27 |   sum=sum1+sum2*380000;
      |   ^~~
      |   sum2
main.c:28:3: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   28 |   prinf("もらえた合計は%d円",sum);
      |   ^~~~~
      |   printf
main.c:28:3: error: expected declaration or statement at end of input
Language: C++

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

int main() {
    int N;
    cin >> N;
    double ans;
    for(int i = 0; i < N; i++) {
        double x;
        string u;
        cin >> x >> u;
        if(u == "JPY") {
            ans+=x;
        }
        else {
            ans+=x*380000;
        }
    }
    cout << fixed << setpresicion(4) << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: 'setpresicion' was not declared in this scope
   19 |     cout << fixed << setpresicion(4) << ans << endl;
      |                      ^~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x,ans=0.000000;
  string u;
  while(n--){
    scanf("%llf%s",x,u);
    if(u=="BTC"){
      ans+=x*rate;
    }
    else{
      ans+=x;
    }
  }
  printf("%llf",ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x,ans=0.000000;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x,ans=0.000000;
  string u;
  for(int i=0;i<n;i++){
    scanf("%llf%s",x[i],u[i]);
    if(u[i]=="BTC"){
      ans+=x[i]*rate;
    }
    else{
      ans+=x[i];
    }
  }
  printf("%llf",ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x,ans=0.000000;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:10:21: error: invalid types 'double[int]' for array subscript
   10 |     scanf("%llf%s",x[i],u[i]);
      |                     ^
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(u[i]=="BTC"){
a.cc:12:13: error: invalid types 'double[int]' for array subscript
   12 |       ans+=x[i]*rate;
      |             ^
a.cc:15:13: error: invalid types 'double[int]' for array subscript
   15 |       ans+=x[i];
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x[n],ans=0.0;
  string u;
  for(int i=0;i<n;i++){
    scanf("%llf%s",x[i],u[i]);
    if(u[i]=="BTC"){
      ans+=x[i]*rate;
    }
    else{
      ans+=x[i];
    }
  }
  printf("%llf",ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x[n],ans=0.0;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(u[i]=="BTC"){
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x[n],ans=0.0;
  string u;
  for(int i=0;i<n;i++){
    scanf("%llf%s",x[i],u[i]);
    if(u[i]=="BTC"){
      ans+=x*rate;
    }
    else{
      ans+=x;
    }
  }
  printf("%llf",ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x[n],ans=0.0;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(u[i]=="BTC"){
a.cc:12:13: error: invalid operands of types 'double [n]' and 'float' to binary 'operator*'
   12 |       ans+=x*rate;
      |            ~^~~~~
      |            | |
      |            | float
      |            double [n]
a.cc:15:10: error: invalid operands of types 'double' and 'double*' to binary 'operator+'
   15 |       ans+=x;
      |       ~~~^~~
a.cc:15:10: note:   in evaluation of 'operator+=(double, double*)'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x[n],u[n],ans=0.0;
  for(int i=0;i<n;i++){
    scanf("%llf%s",x[i],u[i]);
    if(u[i]=="BTC"){
      ans+=x*rate;
    }
    else{
      ans+=x;
    }
  }
  printf("%llf",ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x[n],u[n],ans=0.0;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:10:12: error: invalid operands of types 'double' and 'const char [4]' to binary 'operator=='
   10 |     if(u[i]=="BTC"){
      |        ~~~~^~~~~~~
      |           |  |
      |           |  const char [4]
      |           double
a.cc:11:13: error: invalid operands of types 'double [n]' and 'float' to binary 'operator*'
   11 |       ans+=x*rate;
      |            ~^~~~~
      |            | |
      |            | float
      |            double [n]
a.cc:14:10: error: invalid operands of types 'double' and 'double*' to binary 'operator+'
   14 |       ans+=x;
      |       ~~~^~~
a.cc:14:10: note:   in evaluation of 'operator+=(double, double*)'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  float rate=380000.0;
  scanf("%d",n);
  long long double x[n],u[n],ans=0.0;
  for(int i=0;i<n;i++){
    scanf(%lld%s",x[i],u[i]);
    if(u[i]=="BTC"){
      ans+=x*rate;
    }
    else{
      ans+=x;
    }
  }
  printf("%lld",ans);
  return 0;
}

Compiler output:
a.cc:9:17: warning: missing terminating " character
    9 |     scanf(%lld%s",x[i],u[i]);
      |                 ^
a.cc:9:17: error: missing terminating " character
    9 |     scanf(%lld%s",x[i],u[i]);
      |                 ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double x[n],u[n],ans=0.0;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:9:11: error: expected primary-expression before '%' token
    9 |     scanf(%lld%s",x[i],u[i]);
      |           ^
a.cc:9:12: error: 'lld' was not declared in this scope
    9 |     scanf(%lld%s",x[i],u[i]);
      |            ^~~
a.cc:9:16: error: 's' was not declared in this scope
    9 |     scanf(%lld%s",x[i],u[i]);
      |                ^
Language: C

#include<stdio.h>
int main(void){
  int n,i;
  double x,sum=0;
  char u[4];
  scanf("%d",&n);
  for(i=,0;i<n;i++){
    scanf("%lf %s",&x,u);
    if(u[0]=='J'){
      sum+=x;
    }else{
      sum+=x*380000;
    }
  }
  printf("%lf",sum);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before ',' token
    7 |   for(i=,0;i<n;i++){
      |         ^
Language: C

#include <stdio.h>
int main(void)
{
   int n,x,i,s1;
   double y,s2;
   char u[4];
  
   scanf("%d",&n);
   s1=0;s2=0.0;
  
   for(i=0;i<n;i++){
     scanf("%d%s",&x,u);
     if (s=="JPY") s1=s1+x;
     else if(s=="BTC"){
       x=(double)x*380000.0;
       s2=s2+x;
     }
   }
   y=(double)s1+s2;
   printf("%.4lf/n",y);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:10: error: 's' undeclared (first use in this function)
   13 |      if (s=="JPY") s1=s1+x;
      |          ^
main.c:13:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
   int n,x,i,s1;
   double y,s2;
   char u[4];
  
   scanf("%d",&n);
   s1=0;s2=0.0;
  
   for(i=0;i<n;i++){
     scanf("%d%s",&x,&s);
     if (s=="JPY") s1=s1+x;
     else if(s=="BTC"){
       x=(double)x*380000.0;
       s2=s2+x;
     }
   }
   y=(double)s1+s2;
   printf("%.4lf/n",y);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:23: error: 's' undeclared (first use in this function)
   12 |      scanf("%d%s",&x,&s);
      |                       ^
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
   int n,x,i,s1;
   double y,s2;
   char u[4];
  
   scanf("%d",%n);
   s1=0;s2=0.0;
  
   for(i=0;i<n;i++){
     scanf("%d%s",&x,s);
     if (s=="JPY") s1=s1+x;
     else if(s=="BTC"){
       x=(double)x*380000.0;
       s2=s2+x;
     }
   }
   y=(double)s1+s2;
   printf("%.4lf/n",y);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '%' token
    8 |    scanf("%d",%n);
      |               ^
main.c:12:22: error: 's' undeclared (first use in this function)
   12 |      scanf("%d%s",&x,s);
      |                      ^
main.c:12:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
   int n,x,i,s1;
   double y,s2;
   char u[4];
  
   scanf("%d",%n);
   s1=0;s2=0.0;
  
   for(i=0;i<n;i++){
     scanf("%d%s",&x,s);
     if (s=="JPY") s1=s1+x;
     else if(s=="BTC"){
       x=(double)x*380000.0;
       s2=s2+x;
     }
   }
   y=(double)s1+s2;
   printf("%.4if/n",y);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '%' token
    8 |    scanf("%d",%n);
      |               ^
main.c:12:22: error: 's' undeclared (first use in this function)
   12 |      scanf("%d%s",&x,s);
      |                      ^
main.c:12:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  
    vector<double> A(N);
  vector<string> B(N);
  for(int i=0;i<N;i++){
  cin>>A[i]>>B[i];
  }
  double a=0;
  for(int i=0;i<N;i++){
  if(B[i]=="BTC"){
  a+=A[i]*380000.0;
  }
    if(B[i]=="JPY"){
    
    a+=A[i];
    }
  
  cout<<a<<endl;
  
  }
  


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

#include <stdio.h>
int   main(void)
{
  int n,i,s1;
  double s2;
  scanf("%d",&n);
  char u[n];
  int x[n];
  for(i=0;i<n;i++)
    scanf("%d%s",&h[i],&u);
  s1=0;s2=0.0;
  for(i=0;i<n;i++){
    if(u[i]=="JPY") s1=s1+x[i];
    else if(u[i]=="BTC") s2=s2+(double)x[i]*380000.0;
  }
  s2=s2+(double)s1;
  printf("%lf¥n",s2);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:19: error: 'h' undeclared (first use in this function)
   10 |     scanf("%d%s",&h[i],&u);
      |                   ^
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:12: warning: comparison between pointer and integer
   13 |     if(u[i]=="JPY") s1=s1+x[i];
      |            ^~
main.c:14:17: warning: comparison between pointer and integer
   14 |     else if(u[i]=="BTC") s2=s2+(double)x[i]*380000.0;
      |                 ^~
Language: C

#include <stdio.h>
int   main(void)
{
  int n,i,s1;
  double s2;
  scanf("%d",&n);
  char u[n];
  int x[n];
  for(i=0;i<n;i++)
    scanf("%d%s",&h[i],&u);
  s1=0;s2=0.0;
  for(i=0;i<n;i++){
    if(u[u]=='JPY') s1=s1+x[i];
    else if(u[i]=='BTC') s2=s2+(double)x[i]*380000.0;
  }
  s2=s2+(double)s1;
  printf("%lf¥n",s2);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:19: error: 'h' undeclared (first use in this function)
   10 |     scanf("%d%s",&h[i],&u);
      |                   ^
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:9: error: array subscript is not an integer
   13 |     if(u[u]=='JPY') s1=s1+x[i];
      |         ^
main.c:13:14: warning: multi-character character constant [-Wmultichar]
   13 |     if(u[u]=='JPY') s1=s1+x[i];
      |              ^~~~~
main.c:14:19: warning: multi-character character constant [-Wmultichar]
   14 |     else if(u[i]=='BTC') s2=s2+(double)x[i]*380000.0;
      |                   ^~~~~
Language: C

#include <studio.h>
int   main(void)
{
  int n,i,s1;
  double s2;
  scanf("%d",&n);
  char u[n];
  int x[n];
  for(i=0;i<n;i++)
    scanf("%d%s",&h[i],&u);
  s1=0;s2=0.0;
  for(i=0;i<n;i++){
    if(u[u]=='JPY') s1=s1+x[i];
    else if(u[i]=='BTC') s2=s2+(double)x[i]*380000.0;
  }
  s2=s2+(double)s1;
  printf("%lf¥n",s2);
  return 0;
}


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

#include<iostream>
#include<string>

using namespace std;

int main()
{
  int n;
  cin>>n;
  
  const int x=n;
  
  string s[x];
  double m[x];
  
  for(int i=0;i<x;i++)
  {
    
    cin>>m[i];
    cin>>s[i];
  }
  
  double ans;
  
  for(int i=0;i<x;i++)
  {
    if(s[i]=="BTC")
    {
      ans+=(m[i]*380000)
    }
    else
    {
      ans+=m[i];
    }
  }
  
  cout<<ans<<endl;
  
  return 0;
}
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:29:25: error: expected ';' before '}' token
   29 |       ans+=(m[i]*380000)
      |                         ^
      |                         ;
   30 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int n;
  cin>>n;
     vector<double> x(n);
string u;
     for (int i = 0; i < n; i++) {
    cin >> x.at(i)>>u[i];
  }
  double sum=0;
for (int i = 0; i < n; i++) {
 if(u[i]=="JPY"){
   sum+=x[i];
 }  
  else{
    sum +=380000*x[i];
  }
   
}
cout<<sum<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |  if(u[i]=="JPY"){
Language: Java

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

int main() {
    int n;
    cin >> n;
    vector<pair<long double,string>> p(n);
    for(int i = 0; i < n; i++){
        double a;
        string b;
        cin >> a >> b;
        p.at(i) = make_pair(a,b);
    }
    double sum = 0;
    for(int i = 0; i < n; i++){
        if(p.at(i).second == "JPY"){
            sum = sum + p.at(i).first;
        } else {
            sum = sum + p.at(i).first * 380000;
        }
    }
    cout << fixed << setprecision(12) << sum;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:6: error: not a statement
    cin >> n;
        ^
Main.java:7: error: not a statement
    vector<pair<long double,string>> p(n);
          ^
Main.java:7: error: not a statement
    vector<pair<long double,string>> p(n);
                     ^
Main.java:7: error: not a statement
    vector<pair<long double,string>> p(n);
                                  ^
Main.java:11: error: not a statement
        cin >> a >> b;
                 ^
Main.java:22: error: not a statement
    cout << fixed << setprecision(12) << sum;
                                      ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:7: error: ';' expected
    vector<pair<long double,string>> p(n);
                           ^
10 errors
Language: C

#include <stdio.h>

int main(void)
{
    int n;
    double x, yen;
    char u[4];

    scanf("%d", &n);

    yen = 0;
    for (int i=0; i<n; i++) {
        scanf("%lf%s", &x, u);

        if (u[0]=='J')  yen += x;
        else            yen += x*380000.0;
    }

    printf("%f\n", yen);

    return 0;
}
~

Compiler output:
main.c:23:1: error: expected identifier or '(' before '~' token
   23 | ~
      | ^
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
  int n;cin>>n;
  double J = 0.0;
  double B = 0.0;
  for(int i = 0; n > i; i++){
    double a;string b;cin>>a>>b;
    if(b=="JPY"){
      J += a;
    }else{
      B += a;
    }
  }
  cout << fixed << setprecision(10) << J+380000.0*B << endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:61: error: expected '}' at end of input
   16 |   cout << fixed << setprecision(10) << J+380000.0*B << endl;
      |                                                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>

#define rep(i, n) for(int i = 0; i < (n); ++i)

using namespace std;

using ll = long long;
using P = pair<int , int>;
  
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  int n; cin >> n;
  double sum = 0;
  
  rep(i, n) {
    double x; string u; cin >> x >> u;
    sum += (u=="BTC")*380000*x + (u=="JPY")*x3;
  } cout << sum;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:19:45: error: 'x3' was not declared in this scope; did you mean 'x'?
   19 |     sum += (u=="BTC")*380000*x + (u=="JPY")*x3;
      |                                             ^~
      |                                             x
Language: C++

#include <iostream>
#include <cstdio>
#include <vector>
#include <stack>
#include <math.h>
#include <queue>

using namespace std;

typedef long long int ll;
typedef long double ld;

#define rep(i,n) for(int i = 0; i < (n); ++i)
#define vsort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())

const int MOD = 1000000007;
const int INF = INT_MAX;


// a,bの最小公倍数
ll lcm(ll a, ll b){ll lcm = a * b; ll r = a % b;while(r != 0){a = b; b = r; r = a % b;}return lcm /= b;}
// a,bの最大公約数
ll gcd(ll a, ll b){ll r = a % b;while(r != 0){a = b; b = r; r = a % b;}return b;}
// MOD
ll modadd(ll a, ll b){return (a%MOD+b%MOD+MOD)%MOD;}
ll modmul(ll a, ll b){return a%MOD*b%MOD%MOD;}
ll modexp(ll a, ll n){if(n==0)return 1; if(n%2==0){ll e=modexp(a,n/2); return modmul(e,e);} return modexp(a,n-1)*a%MOD;}
ll modinv(ll n){return modexp(n%MOD,MOD-2);}
ll modfact(ll n){ll res=1; for (int i=1; i <= n; ++i){res *= i; res %= MOD;} return res;}
ll modncr(ll n, ll r){ll numer=1;ll denom=1;for(int i=1;i<=r;++i){numer=modmul(numer,n-r+i);denom=modmul(denom,i);}return modmul(numer, modinv(denom));}


int main(){


    int n;
    cin >> n;
    ld x[n];
    string u[n];
    rep(i,n) cin >> x[i] >> u[i];

    ld ans = 0;
    rep(i,n) {
        if (u[i] == "JPY") ans += x[i];
        else ans += x[i] * 380000;
    }

    cout << ans << endl;



}



//              g++ -std=c++1z


Compiler output:
a.cc:18:17: error: 'INT_MAX' was not declared in this scope
   18 | const int INF = INT_MAX;
      |                 ^~~~~~~
a.cc:7:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    6 | #include <queue>
  +++ |+#include <climits>
    7 |
Language: C++

N = int(input())
ans = 0
for i in range(N):
    x,y = input().split()
    x = float(x)
    ans += x*380000 if y == 'BTC' else x

print(ans)

Compiler output:
a.cc:6:29: warning: multi-character character constant [-Wmultichar]
    6 |     ans += x*380000 if y == 'BTC' else x
      |                             ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

// https://atcoder.jp/contests/abc119/tasks/abc119_b

#include <bits/stdc++.h>

using namespace std;

#define REP(i,n)   for(int i=0; i<(int)(n); i++)
#define FOR(i,b,e) for(int i=(b); i<=(int)(e); i++)
#define DUMP(a, n) REP(_i, n) printf("%d%c", a[_i], _i + 1 == n ? '\n' : ' ')
#define DUMP2D(a, n, m) REP(_i, n) REP(_j, m) printf("%d%c", a[_i][_j], _j + 1 == m ? '\n' : ' '); puts("")

const int N_MAX = 10;
// const int X_I_MAX = 1e8;
// const int X_I_MAX = 100;

int N;
double x[N_MAX];
char u[N_MAX][4];

void solve() {
  double ans = 0;
  REP(i, N) {
    if (strcmp(u[i], "JPY") == 0) {
      ans += x[i];
    } else {
      ans += x[i] * 380000.0;
    }
  }a
  printf("%.4lf\n", ans);
}

void input() {
  scanf("%d", &N);
  REP(i, N) scanf("%lf%s", x + i, u[i]);
}

int main() {
  input();
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:28:4: error: 'a' was not declared in this scope
   28 |   }a
      |    ^
Language: C++

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

int main(){
  int N; cin >> N;
  long double ans =0;
  for(int i=0;i<N){
    long double a; cin >> a;
    string s; cin >> s;
    if(s == "JPY"){
      ans += a;
    }
    else {
      ans += a*38000.0;
    }
  }
  cout << ans << endl;
}

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

#include <bits/stdc++.h>

int main() {
    int n;
  	cin >> n;
    double ans;
    
    for(int i=0; i<n; i++)
    {
        double x;
        string u;
        cin >> x >> u;
        if (u == "BTC") 
        ans +=  x * 380000;
        ans += num;
    }
    cout  << ans << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n;
      |         ^~~
      |         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:11:9: error: 'string' was not declared in this scope
   11 |         string u;
      |         ^~~~~~
a.cc:11:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:12:21: error: 'u' was not declared in this scope
   12 |         cin >> x >> u;
      |                     ^
a.cc:15:16: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |         ans += num;
      |                ^~~
      |                enum
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout  << ans << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout  << ans << 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>

int main() {
    int n;
  	cin >> n;
    double ans;
    
    for(int i=0; i<n; i++)
    {
        double x;
        string u;
        cin >> x >> u;
        if (u == "btc") {
        ans += x;
        } else {
        ans +=  x * 380000;
        } 
    }
    cout  << ans << endl;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n;
      |         ^~~
      |         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:11:9: error: 'string' was not declared in this scope
   11 |         string u;
      |         ^~~~~~
a.cc:11:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:12:21: error: 'u' was not declared in this scope
   12 |         cin >> x >> u;
      |                     ^
a.cc:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     cout  << ans << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |     cout  << ans << 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() {
    int n;
  	cin >> n;
    double ans = 0;
  	double x;
    string u;
    cin>> x >> u;
    
    for ( i = 0; i < n; n++)
    {
        if (u == "jpy") ans+= x;
        else ans +=  x * 380000;
        cout  << ans << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'i' was not declared in this scope
   12 |     for ( i = 0; i < n; n++)
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int n;
	cin >> n;

	double ans;
	for(int i=0;i<n;i++){
		double x;
		string u;
		cin >> x >> u;
		if(u="JPY") ans += x;
		else ans += x * 380000;
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: could not convert 'u.std::__cxx11::basic_string<char>::operator=(((const char*)"JPY"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |                 if(u="JPY") ans += x;
      |                    ~^~~~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int n, ans = 0;
	cin >> n;

	for(int i=0;i<n;i++){
		double x;
		string u;
		cin >> x >> u;
		if(u="JPY") ans += x;
		else ans += x * 380000;
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: could not convert 'u.std::__cxx11::basic_string<char>::operator=(((const char*)"JPY"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |                 if(u="JPY") ans += x;
      |                    ~^~~~~~
      |                     |
      |                     std::__cxx11::basic_string<char>
Language: C++

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

int main() {
  double ans = 0;
  for (int i = 0; i < N; i++) {
    double a;
    string s;
    cin >> a >> s;
    if (s == "JPY") ans += a;
    else ans += a*380000;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'N' was not declared in this scope
    6 |   for (int i = 0; i < N; i++) {
      |                       ^
Language: C++

#include<iostream>
#include <string>
using namespace std;
int main(){
  int n;
  cin >> n;
  double tmp = 0.0;
  string unit;
  double ans = 0.0;
  for(int i=1; i<=n; i++){
    cin >> tmp >> unit;
    if(unit == "JPY") ans += tmp;
    else {ans += tmp * 380000.0};
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected ';' before '}' token
   13 |     else {ans += tmp * 380000.0};
      |                                ^
      |                                ;
Language: C++

#include<iostream>
#include <string>
using namespace std;
int main(){
  int n;
  cin >> n;
  double tmp = 0.0;
  string unit;
  double ans = 0.0;
  for(int i=1; i<=n; i++){
    cin >> tmp >> unit;
    if(unit == "JPY") ans += tmp;
    else ans += tmp * 3800l0.0;
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: unable to find numeric literal operator 'operator""l0.0'
   13 |     else ans += tmp * 3800l0.0;
      |                       ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n; cin >> n;
  vector<long long> x(n);
  vector<string> u(n);
  for(int i=0;i<n;i++){
    cin >> x[i] >> u[i];
  }
  
  long long y=0;
  float b=0.0;
  
  for(inti=0;i<n;i++){
    if(u[i]=="JPY") y+=x[i];
    else b+=x[i];
  }
  cout << y+b*380000.0 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'inti' was not declared in this scope; did you mean 'int'?
   14 |   for(inti=0;i<n;i++){
      |       ^~~~
      |       int
a.cc:14:14: error: 'i' was not declared in this scope
   14 |   for(inti=0;i<n;i++){
      |              ^
Language: C++

#include<bits/stdc++.h>
int main(){
  int n;cin>>n;
  double jpy=0,btc=0;
  for(int i=0;i<n;i++){
    double s;string t;cin>>s>>t;
    if(t=="JPY") jpy+=s;else btc+=s;
  }
  cout<<setprecision(8)<<jpy+380000*btc<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int n;cin>>n;
      |         ^~~
      |         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:6:14: error: 'string' was not declared in this scope
    6 |     double s;string t;cin>>s>>t;
      |              ^~~~~~
a.cc:6:14: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:31: error: 't' was not declared in this scope
    6 |     double s;string t;cin>>s>>t;
      |                               ^
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<setprecision(8)<<jpy+380000*btc<<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:9:9: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    9 |   cout<<setprecision(8)<<jpy+380000*btc<<endl;
      |         ^~~~~~~~~~~~
      |         std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
a.cc:9:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<setprecision(8)<<jpy+380000*btc<<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;
#define rep(i,n) for( int i = 0 ; i < n ; i++ )
typedef long long ll ;
int main() {
 
int N ;
cin >> N ;
vector<double> A(N) ;
  vector<string> S(N) ;
  double ans = 0 ;
rep(i,N){
  cin >> A.at(i) >> S.at(i) ;
  if(S.at(i) == "JPY" ) ans += A.at(i) ;
  else ans += (ll) 380000*A.at(i);
}
  cout << ans << endl;
  //rep(i,N) cout << A.a

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

nclude <bits/stdc++.h>
using namespace std;
#define rep(i,n) for( int i = 0 ; i < n ; i++ )
typedef long long ll ;
int main() {
 
int N ;
cin >> N ;
vector<double> A(N) ;
  vector<string> S(N) ;
  dobuble ans = 0 ;
rep(i,N){
  cin >> A.at(i) >> S.at(i) ;
  if(S.at(i) == "JPY" ) ans += A.at(i) ;
  else ans += (ll) 380000*A.at(i);
}
  cout << ans << endl;
  //rep(i,N) cout << A.at(i) << endl;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> N ;
      | ^~~
a.cc:9:1: error: 'vector' was not declared in this scope
    9 | vector<double> A(N) ;
      | ^~~~~~
a.cc:9:8: error: expected primary-expression before 'double'
    9 | vector<double> A(N) ;
      |        ^~~~~~
a.cc:10:10: error: 'string' was not declared in this scope
   10 |   vector<string> S(N) ;
      |          ^~~~~~
a.cc:10:18: error: 'S' was not declared in this scope
   10 |   vector<string> S(N) ;
      |                  ^
a.cc:11:3: error: 'dobuble' was not declared in this scope; did you mean 'double'?
   11 |   dobuble ans = 0 ;
      |   ^~~~~~~
      |   double
a.cc:13:10: error: 'A' was not declared in this scope
   13 |   cin >> A.at(i) >> S.at(i) ;
      |          ^
a.cc:14:25: error: 'ans' was not declared in this scope
   14 |   if(S.at(i) == "JPY" ) ans += A.at(i) ;
      |                         ^~~
a.cc:15:8: error: 'ans' was not declared in this scope
   15 |   else ans += (ll) 380000*A.at(i);
      |        ^~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << ans << endl;
      |   ^~~~
a.cc:17:11: error: 'ans' was not declared in this scope
   17 |   cout << ans << endl;
      |           ^~~
a.cc:17:18: error: 'endl' was not declared in this scope
   17 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
int main(){ 
    ll n;
    cin>>n;
    double a;
    string s;
    double b=0;
    REP(i,n){
        cin>>a>>s;
    if(s=="JPY"){
        b+=a;
    }else{
        b+=a*380000.0;
    }
    }
    cout<<b;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n;
      |     ^~
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin>>n;
      |          ^
      |          yn
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
int main(){ 
    ll n;
    cin>>n;
    double a;
    string s;
    double b=0;
    REP(i,n){
        cin>>a>>s;
    if(s=="JPY"){
        b+=a;
    }else{
        b+=a*380000;
    }
    }
    cout<<b;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n;
      |     ^~
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin>>n;
      |          ^
      |          yn