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

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <cmath>
#include <map>
using namespace std;

int main()
{

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

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

#include <iostream>
using namespace std;
int main(){
  int n, x,sum=0;
  char s[10];
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> x >> s;
    if(s="JPY") sum+=380000*x;
    else sum+=x;
  }
  cout << sum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: incompatible types in assignment of 'const char [4]' to 'char [10]'
    9 |     if(s="JPY") sum+=380000*x;
      |        ~^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n, x,sum=0;
  char s[10];
  cin >> n;
  for(i=0;i<n;i++){
    cin >> x >> s;
    if(s="JPY") sum+=380000*x;
    else sum+=x;
  }
  cout << sum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0;i<n;i++){
      |       ^
a.cc:9:9: error: incompatible types in assignment of 'const char [4]' to 'char [10]'
    9 |     if(s="JPY") sum+=380000*x;
      |        ~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main (){
  int N,sum=0;
  cin>>N;
  vector<int>a(N);
  vector<string>b(N);
  for(int i=0;i<N;i++){
    cin>>a[i]>>b[i];
  }
  for(int i=0;i<N;i++){
    if(b[i]==JPY){
      sum==sum+a[i];
    }
    else{
      sum=sum+a[i]*380000;
    }
  }
  cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'JPY' was not declared in this scope
   12 |     if(b[i]==JPY){
      |              ^~~
Language: C++

#include <bits.stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<int> x(N);
  vector<int> u(N);
  for (int i=0;i<N;i++){
    cin >> x.at(i);
    cin >> u.at(i);
  }
  int S=0;
  for (int i=0;i<N;i++){
    if (u.at(i)==JPY){
      S+=x.at(i)*1;
    }
    else{
      S+=x.at(i)*380000;
    }
  }
  cout >> S >> endl;
}


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

#iclude <bits.stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<int> x(N);
  vector<int> u(N);
  for (int i=0;i<N;i++){
    cin >> x.at(i);
    cin >> u.at(i);
  }
  int S=0;
  for (int i=0;i<N;i++){
    if (u.at(i)==JPY){
      S+=x.at(i)*1;
    }
    else{
      S+=x.at(i)*380000;
    }
  }
  cout >> S >> endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <bits.stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude <bits.stdc++.h>
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> x(N);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #iclude <bits.stdc++.h>
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> x(N);
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> u(N);
      |          ^~~
a.cc:9:12: error: 'x' was not declared in this scope
    9 |     cin >> x.at(i);
      |            ^
a.cc:10:12: error: 'u' was not declared in this scope
   10 |     cin >> u.at(i);
      |            ^
a.cc:14:9: error: 'u' was not declared in this scope
   14 |     if (u.at(i)==JPY){
      |         ^
a.cc:14:18: error: 'JPY' was not declared in this scope
   14 |     if (u.at(i)==JPY){
      |                  ^~~
a.cc:15:10: error: 'x' was not declared in this scope
   15 |       S+=x.at(i)*1;
      |          ^
a.cc:18:10: error: 'x' was not declared in this scope
   18 |       S+=x.at(i)*380000;
      |          ^
a.cc:21:3: error: 'cout' was not declared in this scope
   21 |   cout >> S >> endl;
      |   ^~~~
a.cc:21:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:16: error: 'endl' was not declared in this scope
   21 |   cout >> S >> endl;
      |                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude <bits.stdc++.h>
Language: C++

#include<iostream>

int maini(){
    double total = 0;
    int n; cin >> n;
    string s;
    double money;
    for (int i = 0; i < n; i++){
        cin >> money >> s;
        if (s == "JPY"){
            total += money;
        }else{
            total += 380000.0*money;
        }
    }
    cout << total << endl;
}

Compiler output:
a.cc: In function 'int maini()':
a.cc:5:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     int n; cin >> n;
      |            ^~~
      |            std::cin
In file included 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:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:6:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:9:25: error: 's' was not declared in this scope
    9 |         cin >> money >> s;
      |                         ^
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << total << 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:16:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |     cout << total << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected ';' before ')' token
   18 |      sum+=x.at(i));
      |                  ^
      |                  ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:7: error: expected ',' or ';' before 'a'
   23 |       a+=sum;
      |       ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:19: error: expected ',' or ';' before ')' token
   22 |      int a=x.at(i))*10000
      |                   ^
a.cc:26:18: error: expected ';' before '}' token
   26 |   cout<<sum<<endl
      |                  ^
      |                  ;
   27 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:17: error: lvalue required as left operand of assignment
   22 |       ((x.at(i))*10000)+=sum
      |       ~~~~~~~~~~^~~~~~~
a.cc:25:18: error: expected ';' before '}' token
   25 |   cout<<sum<<endl
      |                  ^
      |                  ;
   26 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: lvalue required as left operand of assignment
   22 |       (x.at(i)*10000)+=sum
      |       ~~~~~~~~^~~~~~~
a.cc:25:18: error: expected ';' before '}' token
   25 |   cout<<sum<<endl
      |                  ^
      |                  ;
   26 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: lvalue required as left operand of assignment
   22 |       x.at(i)*10000+=sum
      |       ~~~~~~~^~~~~~
a.cc:25:18: error: expected ';' before '}' token
   25 |   cout<<sum<<endl
      |                  ^
      |                  ;
   26 | }
      | ~
Language: C++

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


Compiler output:
a.cc:20:16: warning: multi-character character constant [-Wmultichar]
   20 |    if(u.at(i)=='JPY'){
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:12:18: error: conflicting declaration 'std::vector<double> x'
   12 |   vector<double> x;
      |                  ^
a.cc:9:10: note: previous declaration as 'double x'
    9 |   double x;
      |          ^
a.cc:13:18: error: conflicting declaration 'std::vector<std::__cxx11::basic_string<char> > u'
   13 |   vector<string> u;
      |                  ^
a.cc:8:9: note: previous declaration as 'std::string u'
    8 |  string u;
      |         ^
a.cc:19:12: error: request for member 'at' in 'x', which is of non-class type 'double'
   19 |     cin>>x.at(i)>>u.at(i);
      |            ^~
a.cc:25:8: error: lvalue required as left operand of assignment
   25 |       x*10000+=sum
      |       ~^~~~~~
a.cc:28:18: error: expected ';' before '}' token
   28 |   cout<<sum<<endl
      |                  ^
      |                  ;
   29 | }
      | ~
Language: C++

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

int main(){
  int n; cin>>n;
  long float ans=0;
  vector<float> x(n);
  vector<string> u(n);
  
  for(int i=0;i<n;i++){
    cin>>x.at(i) >>u.at(i);
    if(u.at(i) == "JPY"){
      ans += x.at(i);
    }else{
      ans += x.at(i)*380000;
    }
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'long' specified with 'float'
    6 |   long float ans=0;
      |   ^~~~
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main(){
int n;cin>>n;
  int ans=0;
  for(int i=0;i<n;i++)
  {
    int x,u;cin>>x>>u;
    if(u=='JPY ')
      ans+=x;
    else
      asn+= 380000*x;
  }
  cout<<anas<<endl;
}

Compiler output:
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     if(u=='JPY ')
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:15:7: error: 'asn' was not declared in this scope; did you mean 'ans'?
   15 |       asn+= 380000*x;
      |       ^~~
      |       ans
a.cc:17:9: error: 'anas' was not declared in this scope; did you mean 'ans'?
   17 |   cout<<anas<<endl;
      |         ^~~~
      |         ans
Language: C++

#include <iostream>
#include <string>

int main(void){
  int num;
  std::cin >> num;
  double money;
  std::string str;
  
  double sum = 0;
  for(int i = 0; i < num; i++){
    std::cin >> money >> str;
    if(str == "JPY")
      sum += money;
    else
      sum += money * 380000.0
  }
  
  std::cout << sum;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:30: error: expected ';' before '}' token
   16 |       sum += money * 380000.0
      |                              ^
      |                              ;
   17 |   }
      |   ~
Language: C

#include<iostream>
#include<string>
using namespace std;
int main(){
  int N;
  cin>>N;
  double ans=0;
  for(int i;i<N;i++){
    double a;
    string b;
    cin>>a>>b;
    if(b=="JPY"){
      ans+=a;
    }
    else{
      ans+=a* 380000.0;
    }
  }
  cout<<ans;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int N;
	cin >> N;
	float x, sum = 0.0;
	string u;
	for(int i = 0; i < N; i++){
		cin >> x >> u;
		if(u == "BTC")
			sum += x*380000.0;
		else
			sum += x;
	}
	puts(sum);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: cannot convert 'float' to 'const char*'
   15 |         puts(sum);
      |              ^~~
      |              |
      |              float
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int N;
	cin >> N;
	float x, sum = 0.0;
	string u;
	for(int i = 0; i < N; i++){
		cin >> x >> u;
		if(u == "BTC")
			sum += x*380000.0;
		else
			sum += x;
	}
	puts(sum)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: cannot convert 'float' to 'const char*'
   15 |         puts(sum)
      |              ^~~
      |              |
      |              float
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <bits/stdc++.h>
#define pb push_back
#define IOS                                                                    \
  ios_base::sync_with_stdio(false);                                            \
  cin.tie(0);                                                                  \
  cout.tie(0)
#define ll long long int
#define ld long double
#define el '\n'
#define PI (ld)3.141592653589793238462643383279502884197169399375105820974944
#define inf (ll)1000000000
#define mod (ll)1000000007
#define mod1 (ll)998244353
#define fo(i, n) for (long long i = 0; i < int(n); i++)
#define pll pair<ll, ll>
#define mll map<ll,ll>
#define vli vector<pair<ll,int>>
#define vpl vector<pll>
#define vvl vector<vector<ll> >
#define vvpl vector< vector<pll> >
#define ff first
#define ss second
#define pqueue priority_queue< ll >
#define pdqueue priority_queue< ll,vl ,greater< ll > >
#define mem(a,b) memset(a,b,sizeof(a));
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
#define sz(a) (ll)a.size()
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fd(i,a,b) for(ll i=a;i>=b;i--)
#define all(a) a.begin(),a.end()
#define vl vector<ll>
//#define x ff
//#define y ss
#define pt(a) for(auto it:a)cout<<it<<" ";cout<<endl;
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
using namespace std;

double gcd(double a, double b) { return a < 0.01 ? b : gcd(fmod(b, a), a); }

/*vector<int> parent, rak;

void make_set(int f){
    fo(i,f+1)parent.pb(f);
    rak.assign(f+1,1);
}

int find_set(int v) {
    if (v == parent[v])
        return v;
    return parent[v] = find_set(parent[v]);
}

void union_sets(int a, int b) {
    a = find_set(a);
    b = find_set(b);
    if (a != b) {
        if (rak[a] < rak[b])
            swap(a, b);
        parent[b] = a;
        rank[a]+=rank[b];
    }
}*/

long long bpow(long long a, long long b, long long m) {
  a %= m;
  long long res = 1;
  while (b > 0) {
    if (b & 1)
      res = res * a % m;
      a = a * a % m;
      b >>= 1;
  }
  return res;
}
ll extend_gcd(ll a,ll b,ll &x,ll &y){
    if(b==0){
        x=1;
        y=0;
        return a;
    }
    ll x1,y1;
    ll ans =extend_gcd(b,a%b,x1,y1);
    x=y1;
    y=x1-(a/b)*y1;

    return ans;
}
ll inverse(ll a,ll m){
    ll x,y;
    extend_gcd(m,a,x,y);
    y%=m;
    y+=m;
    y%=m;
    return y;
}

/*const int N = 1000001;
int lp[N+1];
vector<int> pr;
void s(){
for (int i=2; i<=N; ++i) {
        if (lp[i] == 0) {
            lp[i] = i;
            pr.push_back (i);
        }
        for (int j=0; j<(int)pr.size() && pr[j]<=lp[i] && i*pr[j]<=N; ++j)
            lp[i * pr[j]] = pr[j];
    }
}*/


ld kv;
ll t,n,x,y,h,k,z,p,q,w;
string s,u;
//vvl v;
//vl vis,d;
pll c[1000005];
int main() {
    IOS;
    cin>>n;
    fo(i,n){
        ld f;
        cin>>f>>s;
        if(s=="JPY")kv+=f;
        else kv+=f*380000
    }
    cout<<kv;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:125:26: error: expected ';' before '}' token
  125 |         else kv+=f*380000
      |                          ^
      |                          ;
  126 |     }
      |     ~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
vector<int> d(5);
int mx = -1;
int ans;
int sum = 0;
for (int i = 0; i < 5; i++){
	if (mx < d[i] % 10){
		mx = d[i] % 10;
		ans = i;
	}
}
	swap(d[4], d[ans]);
	for (int i = 0; i < 4; i++){
		sum += ((d[i] / 10) + 1) * 10;
	}
	sum += d[4];
	cout << sum<<endl;
	return 0;
}

Compiler output:
a.cc:10:1: error: expected unqualified-id before 'for'
   10 | for (int i = 0; i < 5; i++){
      | ^~~
a.cc:10:17: error: 'i' does not name a type
   10 | for (int i = 0; i < 5; i++){
      |                 ^
a.cc:10:24: error: 'i' does not name a type
   10 | for (int i = 0; i < 5; i++){
      |                        ^
a.cc:16:13: error: expected constructor, destructor, or type conversion before '(' token
   16 |         swap(d[4], d[ans]);
      |             ^
a.cc:17:9: error: expected unqualified-id before 'for'
   17 |         for (int i = 0; i < 4; i++){
      |         ^~~
a.cc:17:25: error: 'i' does not name a type
   17 |         for (int i = 0; i < 4; i++){
      |                         ^
a.cc:17:32: error: 'i' does not name a type
   17 |         for (int i = 0; i < 4; i++){
      |                                ^
a.cc:20:9: error: 'sum' does not name a type
   20 |         sum += d[4];
      |         ^~~
a.cc:21:9: error: 'cout' does not name a type
   21 |         cout << sum<<endl;
      |         ^~~~
a.cc:22:9: error: expected unqualified-id before 'return'
   22 |         return 0;
      |         ^~~~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <iostream>

int main() {
  return 0;
  int N;
  std::cin >> N;
  double sum=0;
  for(int i=0i<N;i++){
    double m;
    std::string t;
    std::cin >> m >> t;
    sum += t=="JPN"?m:380000.0*m;
  }
  std::cout << sum << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<'
    8 |   for(int i=0i<N;i++){
a.cc:8:21: error: expected ';' before ')' token
    8 |   for(int i=0i<N;i++){
      |                     ^
      |                     ;
Language: C++

#include <iostream>

int main() {
  return 0;
  int N;
  std::cin >> N;
  double sum=0;
  for(int i=0i<N;i++){
    double m;
    std::string t;
    std::cin >> m >> t;
    sum += t=="JPN"?m:380000.0*m;
  }
  std::cout << m << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: invalid operands of types '__complex__ int' and 'int' to binary 'operator<'
    8 |   for(int i=0i<N;i++){
a.cc:8:21: error: expected ';' before ')' token
    8 |   for(int i=0i<N;i++){
      |                     ^
      |                     ;
a.cc:14:16: error: 'm' was not declared in this scope
   14 |   std::cout << m << std::endl;
      |                ^
Language: C++

int main(void){
    int N,i;
    double money[10],sum=0,a;
    char JB[10][4],b;
    scanf("%d",&N);
    for(i=0;i<N;i++){ 
       scanf("%lf %s",&money[i],JB[i]);
    }
    for(i=0;i<N;i++){
      a=money[i];b=JB[i][0];
       if(b=='B')a=380000.0*a;
       sum += a;
    }
    printf("%f",sum);
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d",&N);
      |     ^~~~~
a.cc:14:5: error: 'printf' was not declared in this scope
   14 |     printf("%f",sum);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:22:4: error: expected declaration or statement at end of input
   22 |    }
      |    ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:10: error: assignment to 'int' from 'double *' makes integer from pointer without a cast [-Wint-conversion]
   12 |       sum+=money;
      |          ^~
main.c:14:17: error: invalid operands to binary * (have 'double *' and 'int')
   14 |       sum+=money*380000;
      |            ~~~~~^
      |            |
      |            double *
Language: C

#include <stdio.h>
int main(){
  double sum=0;
  int relatives;
  int i;
  scanf("%d ",&relatives);
  char t[relatives][3];
  double money[relatives];
  for(i=0;i<relative;i++){
  scanf("%s",t[i]);
  scanf("%s",money[i]);
  	if(t[i][0]='J')
      sum+=money[i];
    else
      sum+=money[i]*380000;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'relative' undeclared (first use in this function); did you mean 'relatives'?
    9 |   for(i=0;i<relative;i++){
      |             ^~~~~~~~
      |             relatives
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){
  double sum=0;
  int relatives;
  int i;
  scanf("%d ",&relatives);
  char t[relatives][3];
  double money[relatives];
  for(i=0;i<relative;i++){
  scanf("%s",t[i]);
  scanf("%lf",money[i]);
  	if(t[i][0]='J')
      sum+=money;
    else
      sum+=money*380000;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'relative' undeclared (first use in this function); did you mean 'relatives'?
    9 |   for(i=0;i<relative;i++){
      |             ^~~~~~~~
      |             relatives
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:10: error: invalid operands to binary + (have 'double' and 'double *')
   13 |       sum+=money;
      |          ^~~~~~~
      |            |
      |            double *
main.c:15:17: error: invalid operands to binary * (have 'double *' and 'int')
   15 |       sum+=money*380000;
      |            ~~~~~^
      |            |
      |            double *
Language: C

#include <stdio.h>
int main(){
  double sum=0;
  int relatives;
  int i;
  scanf("%d ",&relatives);
  char t[relatives][3];
  double money[relatives];
  for(i=0;i<relative;i++){
  scanf("%s",t[i]);
  scanf("%s",money[i]);
  	if(t[i][0]='J')
      sum+=money;
    else
      sum+=money*380000;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: 'relative' undeclared (first use in this function); did you mean 'relatives'?
    9 |   for(i=0;i<relative;i++){
      |             ^~~~~~~~
      |             relatives
main.c:9:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:10: error: invalid operands to binary + (have 'double' and 'double *')
   13 |       sum+=money;
      |          ^~~~~~~
      |            |
      |            double *
main.c:15:17: error: invalid operands to binary * (have 'double *' and 'int')
   15 |       sum+=money*380000;
      |            ~~~~~^
      |            |
      |            double *
Language: C

#include<stdio.h>
int main(){
  int n,i;
  scanf("%d",&n);
  double x,sum=0;
  char u[3];
  for(i=0;i<n:i++){
    scanf("%lg%s",&x,u);
    if(u[0]=='B') x*=380000;
    sum+=x;
  }
  printf("%lg",xx);
}


Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before ':' token
    7 |   for(i=0;i<n:i++){
      |              ^
      |              ;
main.c:12:16: error: 'xx' undeclared (first use in this function); did you mean 'x'?
   12 |   printf("%lg",xx);
      |                ^~
      |                x
main.c:12:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define BTC 380000

int main(void)
{
	int n;
	scanf("%d",&n);
	
	double x[n],sum = 0;
	char u[n][3];
	
	int i;
	
	

	for(i = 0; i < n; i++){
		scanf("%lg %s",&x[i],&u[i][]);
	}
	
	for(i = 0; i < n; i++){
		if(u[i][0] == 'J' && u[i][1] == 'P' && u[i][2] == 'Y'){
			sum = sum + x[i];
		}else{
			sum = sum + x[i]*BTC;
		}
	}
	
	printf("%lg\n",sum);
	
	return 0;
	
}
	
	
	
	
	
	

Compiler output:
main.c: In function 'main':
main.c:17:44: error: expected expression before ']' token
   17 |                 scanf("%lg %s",&x[i],&u[i][]);
      |                                            ^
Language: C

#include <stdio.h>
#define BTC 380000

int main(void)
{
	int n;
	scanf("%d",&n);
	
	double x[n],sum = 0;
	char u[n][3];
	
	int i;
	
	

	for(i = 0; i < n; i++){
		scanf("%lg %s",&x[i],u[i][]);
	}
	
	for(i = 0; i < n; i++){
		if(u[i][0] == 'J' && u[i][1] == 'P' && u[i][2] == 'Y'){
			sum = sum + x[i];
		}else{
			sum = sum + x[i]*BTC;
		}
	}
	
	printf("%lg\n",sum);
	
	return 0;
	
}
	
	
	
	
	
	

Compiler output:
main.c: In function 'main':
main.c:17:43: error: expected expression before ']' token
   17 |                 scanf("%lg %s",&x[i],u[i][]);
      |                                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: could not convert '(& u.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"BTC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(u.at(i) = "BTC"){
      |        ~~~~~~~~^~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |     cin>>u.at(i)
      |                 ^
      |                 ;
   14 |   }
      |   ~              
a.cc:17:16: error: could not convert '(& u.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"BTC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(u.at(i) = "BTC"){
      |        ~~~~~~~~^~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before ':' token
    8 |   vector<string> u(n):
      |                      ^
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<n;i++){
      |               ^
a.cc:13:17: error: expected ';' before '}' token
   13 |     cin>>u.at(i)
      |                 ^
      |                 ;
   14 |   }
      |   ~              
a.cc:17:16: error: could not convert '(& u.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"BTC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(u.at(i) = "BTC"){
      |        ~~~~~~~~^~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ',' or ';' before ':' token
    8 |   vector<string> u(n):
      |                      ^
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<n;i++){
      |               ^
a.cc:13:17: error: expected ';' before '}' token
   13 |     cin>>u.at(i)
      |                 ^
      |                 ;
   14 |   }
      |   ~              
a.cc:17:16: error: could not convert '(& u.std::vector<std::__cxx11::basic_string<char> >::at(((std::vector<std::__cxx11::basic_string<char> >::size_type)i)))->std::__cxx11::basic_string<char>::operator=(((const char*)"BTC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |     if(u.at(i) = "BTC"){
      |        ~~~~~~~~^~~~~~~
      |                |
      |                std::__cxx11::basic_string<char>
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
#include<string>
using namespace std;
int main(){
    int N;
    cin>>N;
    int total=0;
    for(int i=0;i<N;i++){
        double x;
        string v;
        cin>>x>>v;
        if(v=="JPY"){
            total+=x;
        }else{
            total+=x*380000
        }
    }
    cout<<total<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected ';' before '}' token
   18 |             total+=x*380000
      |                            ^
      |                            ;
   19 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
using namespace std;
int main(){
    int N;
    cin>>N;
    int total=0;
    for(int i=0;i<N;i++){
        int x;
        double v;
        cin>>x>>v;
        if(v=="JPY"){
            total+=x;
        }else{
            total+=x*380000
        }
    }
    cout<<total<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'double' and 'const char [4]' to binary 'operator=='
   14 |         if(v=="JPY"){
      |            ~^~~~~~~
      |            |  |
      |            |  const char [4]
      |            double
a.cc:17:28: error: expected ';' before '}' token
   17 |             total+=x*380000
      |                            ^
      |                            ;
   18 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
#include<iostream>
#include<algorithm>
#include<numeric>
using namespace std;
int main(){
    int N;
    cin>>N;
    int total=0;
    for(int i=0;i<N;i++){
        int x;
        double v;
        cin>>x>>v;
        if(v=="JPY"){
            total+=x
        }else{
            total+=x*380000
        }
    }
    cout<<total<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'double' and 'const char [4]' to binary 'operator=='
   14 |         if(v=="JPY"){
      |            ~^~~~~~~
      |            |  |
      |            |  const char [4]
      |            double
a.cc:15:21: error: expected ';' before '}' token
   15 |             total+=x
      |                     ^
      |                     ;
   16 |         }else{
      |         ~            
a.cc:17:28: error: expected ';' before '}' token
   17 |             total+=x*380000
      |                            ^
      |                            ;
   18 |         }
      |         ~
Language: C

#include<stdio.h>
#include<string.h>
//abc120-A
/*
int main(void)
{
	int a, b, c,d;
	scanf("%d %d %d", &a, &b, &c);

	if (b >= a * c)
	{
		printf("%d", c);
	}

	else
	{
		d = b / a;
		printf("%d", d);
	}
	return 0;
}
//abc120-B
int main(void)
{
	int a, b, k, tmp;
	int ans = 0, i, j;

	scanf("%d %d %d", &a, &b, &k);

	if (a < b)
	{
		tmp = a;
		a = b;
		b = tmp;
	}

	for (i = b; i > 0; i--)
	{
		if ((a % i + b % i) == 0)
		{
			ans += 1;
		}
		if (ans == k)
		{
			break;
		}

	}
	printf("%d", i);
	return 0;
}
//abc119-A
int main(void)
{
	int a, b, c;
	scanf("%d/%d/%d", &a, &b, &c);
	if (b < 5)
	{
		printf("Heisei");
	}
	else
	{
		printf("TBD");
	}

	
	return 0;
}*/
//abc119-b
int main(void)
{
	int a, i;
	float sum = 0;
	char s[15];
	float y;

	scanf_s("%d", &a);
	for (i = 0; i < a; i++)
	{
		scanf_s("%f", &y);
		fgets(s, sizeof(s), stdin);
		if (strcmp(s, "JPY") == 0)
		{
			sum += y;
		}

		else
		{
			sum += y * 380000;
		}
	}
	printf("%f", sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:77:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   77 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <cstring>
using namespace std;

int main(){
  int n;
  cin >> n;
  
  string x[n], u[n];
  
  for(int i = 0; i < n; i++)
    cin >> x[i] >> u[i];
  
  double sum = 0;
  
  for(int i = 0; i < n; i++){
    if(u[i] == "BTC")
      sum += stoi(x[i]) * 380000.0;
    else
      sum += x[i] * 1.0;
  }
  cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'double')
   20 |       sum += x[i] * 1.0;
      |              ~~~~ ^ ~~~
      |                 |   |
      |                 |   double
      |                 std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <iostream>
#include <cstring>
using namespace std;

int main(){
  int n;
  cin >> n;
  
  string x, u;
  
  for(int i = 0; i < n; i++)
    cin >> x >> u;
  
  double sum = 0;
  
  for(int i = 0; i < n; i++){
    if(u[i] == "BTC")
      sum += stoi(x[i].c_str()) * 380000.0;
    else
      sum += x[i] * 1.0;
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(u[i] == "BTC")
a.cc:18:24: error: request for member 'c_str' in 'x.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'}
   18 |       sum += stoi(x[i].c_str()) * 380000.0;
      |                        ^~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        
        int monies[] = new int[N];
        String currencies[] = new String[N];

        for (int i = 0; i < N; i++){
            
            monies[i] = sc.nextInt();
            currencies[i] = sc.next();
        }

        int total = 0;
        int coefficient = 0;

        for (int i = 0; i < N; i++){
            
            if (coefficient[i].equals("JPY")) {
                coefficient = 1;
            } else if (coefficient[i].equals("BTC")) {
                coefficient = 380000;
            } else {

            }

            total += monies[i] * coefficient;
        }



        System.out.println(total);
     }
}

Compiler output:
Main.java:22: error: array required, but int found
            if (coefficient[i].equals("JPY")) {
                           ^
Main.java:24: error: array required, but int found
            } else if (coefficient[i].equals("BTC")) {
                                  ^
2 errors
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n; cin >> n;
  double x;
  string u;
  double sum = 0;
  for(int i = 0;i < n;i++;){
    cin >> x >> u;
    if(u == "JPY"){
      sum += x;
    }else{
      sum += x * 38000;
    }
  }
  cout << sum << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ')' before ';' token
    8 |   for(int i = 0;i < n;i++;){
      |      ~                   ^
      |                          )
a.cc:8:27: error: expected primary-expression before ')' token
    8 |   for(int i = 0;i < n;i++;){
      |                           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before '}' token
   14 |       sum += x[i] * 38000
      |                          ^
      |                          ;
   15 |     }
      |     ~
Language: C++

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

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

#include <bits/stdc++.h>
#define rep(i, n) for(ll i = 0; i < n; ++i)
#define repR(i, n) for(ll i = n; i >= 0; ++i)
#define FDS(i, n) for(ll i = 0; i < n; ++i)
#define FDSR(i, n) for(ll i = n; i >= 0; ++i)
#define FOR(i, m, n) for(ll i = m; i < n; ++i)
#define FORR(i, m, n) for(ll i = m;i >= n;--i)
#define VSORT(v) sort(v.begin(), v.end());
#define VREV(v) reverse(v.begin(), v.end());
#define INF 999999999
#define itn ll
#define ednl endl
using namespace std;
typedef long long ll;template<typename Typell>Typell G_C_D(Typell a, Typell b){if (a < 0) a = -a;if (b < 0) b = -b;while (b != 0) {a %= b;if (a == 0) return b;b %= a;}return a;}template<typename Typell>
Typell G_C_D(const std::vector<Typell> &list){Typell a = list[0];for (size_t i = 1; i < list.size(); ++i) {a = G_C_D(a, list[i]);}return a;}template<typename Typell>Typell L_C_M(Typell a, Typell b) {if( a == 0 && b == 0)return 0;return a / G_C_D(a, b) * b;}
template<typename Typell>Typell L_C_M(const std::vector<Typell> &list){Typell a = list[0];for (size_t i = 1; i < list.size(); ++i) {a = L_C_M(a, list[i]);}return a;}

int main(){
	cin.tie(0);ios::sync_with_stdio(false);
	
	int N;
	cin>>N;
	double Y=0;
	vector<double> x(N);
	vector<string> u(N);
	FDS(i,N){
		cin>>x[i]>>u[i];
	}
	
	FDS(i,N){
		if(u[i]=="JPY"){
			Y+=x[i];
		}
		if(u[i)=="BTC"){
			Y+=x[i]*380000.0;
		}
	}
	cout<<Y<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:23: error: expected ']' before ')' token
   34 |                 if(u[i)=="BTC"){
      |                       ^
      |                       ]
a.cc:34:23: error: could not convert 'u.std::vector<std::__cxx11::basic_string<char> >::operator[](((std::vector<std::__cxx11::basic_string<char> >::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   34 |                 if(u[i)=="BTC"){
      |                       ^
      |                       |
      |                       __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
a.cc:34:24: error: expected primary-expression before '==' token
   34 |                 if(u[i)=="BTC"){
      |                        ^~
Language: C++

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

int main() {
  int n;
  cin >> n;

  double ans = 0;
  double bit = 0;
    
  while(int i =0 ; i< n ; i++){
    double x;
    string s;
    cin >> x >>s;
    
    if(s == "JPY" ){
      ans += x;
    }
    else {
      bit += x*380000.0 ;
    }
  }
  
  cout << ans + bit << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ')' before ';' token
   11 |   while(int i =0 ; i< n ; i++){
      |        ~        ^~
      |                 )
a.cc:11:20: error: 'i' was not declared in this scope
   11 |   while(int i =0 ; i< n ; i++){
      |                    ^
Language: C++

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

int main() {
  int n;
  cin >> n;

  double ans = 0;
  double bit = 0;
    
  while(int i =0 ; i< n ; i++){
    double x;
    string s;
    cin >> x >>s;
    
    if(s == "JPY" ){
      ans += x;
    }
    else {
      bit += x*380000.0 ;
    }
  }
  
  cout << ans + bit<< endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected ')' before ';' token
   11 |   while(int i =0 ; i< n ; i++){
      |        ~        ^~
      |                 )
a.cc:11:20: error: 'i' was not declared in this scope
   11 |   while(int i =0 ; i< n ; i++){
      |                    ^
Language: C++

#include <iostream>
#include <string>
using namesoace std;
int main(void){
  int n;
  cin >> n;
  
  double money;
  string kind;
  
  double ans = 0;
  
  for(int i=0;i<n;i++){
    cin >> money;
    cin >> kind;
    
    if(kind == "BTC")
      ans = ans + money * 380000.0;
    else
      ans = ans + money;
  }
    
    cout << ans << endl;
  
  return 0;
}
    

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesoace'
    3 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   std::cin
In file included 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:9:3: error: 'string' was not declared in this scope
    9 |   string kind;
      |   ^~~~~~
a.cc:9:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:15:12: error: 'kind' was not declared in this scope
   15 |     cin >> kind;
      |            ^~~~
a.cc:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     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:23:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |     cout << ans << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~