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

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

int main() {
  int s;
  cin >> s;
  if (s == "xxx")
    cout << "700";
  else if (s == "oxx")
    cout << "800";
  else if (s == "xox")
    cout << "800";
  else if (s == "xxo")
    cout << "800";
  else if (s == "oox")
    cout << "900";
  else if (s == "oxo")
    cout << "900";
  else if (s == "xoo")
    cout << "900";
  else if (s == "ooo")
    cout << "1000";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (s == "xxx")
      |       ~~^~~~~~~~
a.cc:10:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if (s == "oxx")
      |            ~~^~~~~~~~
a.cc:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if (s == "xox")
      |            ~~^~~~~~~~
a.cc:14:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   else if (s == "xxo")
      |            ~~^~~~~~~~
a.cc:16:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   else if (s == "oox")
      |            ~~^~~~~~~~
a.cc:18:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   else if (s == "oxo")
      |            ~~^~~~~~~~
a.cc:20:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   else if (s == "xoo")
      |            ~~^~~~~~~~
a.cc:22:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |   else if (s == "ooo")
      |            ~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
    int a,b,c,x,y;
  cin >>a>>b>>c>>x>>y;
  int sum=1000000000;
  
for (int i = 0; i <=max(x,y); ++i){
      int j=max(x-i,0);
      int k=max(y-i,0)
      int ans =a*j+b*k+2*c*i;
     sum=min(sum,ans);
     }
    
  cout << sum <<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected ',' or ';' before 'int'
   12 |       int ans =a*j+b*k+2*c*i;
      |       ^~~
a.cc:13:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |      sum=min(sum,ans);
      |                  ^~~
      |                  abs
Language: C++

#include <bits/stdc++.h>
//#include <atcoder/all>
#define ll long long int
#define MOD 1000000007
#define P pair<ll,ll>
#define INF 1000000000000000000

//using namespace atcoder;
using namespace std;

int main(void){
  ll s;
  cin >> s;
  
  ll ans = 700;
  for (int i = 0; i < 3; i++){
    if (s[i] == 'o')
      ans += 100;
  }
  cout << ans << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: invalid types 'long long int[int]' for array subscript
   17 |     if (s[i] == 'o')
      |          ^
Language: C++

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

int main()
{
  string s;
  cin >> s;
  int ans = 700;
  int flag = 0;

  rep(i,n){
    if (s.at(i) == 'o')
      flag++;
  }
  cout << ans + flag * 100;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'n' was not declared in this scope
   13 |   rep(i,n){
      |         ^
a.cc:3:45: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                             ^
Language: C

#include<stdio.h>
int main(void){
  
  int i;
  char c[3];
  int ct=0;
  
  
  for(i=0;i<3;i++){
    scanf("%c",&c[i]);
  }
  
  for(i=0;i<3;i++){
    if(c[i]=='o')ct++;
  }
  
  printf("%d\n",700+100*ct);
  
  return 0;
}#include<stdio.h>
int main(void){
  
  int i;
  char c[3];
  int ct=0;
  
  
  for(i=0;i<3;i++){
    scanf("%c",&c[i]);
  }
  
  for(i=0;i<3;i++){
    if(c[i]=='o')ct++;
  }
  
  printf("%d\n",700+100*ct);
  
  return 0;
}#include<stdio.h>
int main(void){
  
  int i;
  char c[3];
  int ct=0;
  
  
  for(i=0;i<3;i++){
    scanf("%c",&c[i]);
  }
  
  for(i=0;i<3;i++){
    if(c[i]=='o')ct++;
  }
  
  printf("%d\n",700+100*ct);
  
  return 0;
}#include<stdio.h>
int main(void){
  
  int i;
  char c[3];
  int ct=0;
  
  
  for(i=0;i<3;i++){
    scanf("%c",&c[i]);
  }
  
  for(i=0;i<3;i++){
    if(c[i]=='o')ct++;
  }
  
  printf("%d\n",700+100*ct);
  
  return 0;
}

Compiler output:
main.c:20:2: error: stray '#' in program
   20 | }#include<stdio.h>
      |  ^
main.c:20:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   20 | }#include<stdio.h>
      |          ^
main.c:39:2: error: stray '#' in program
   39 | }#include<stdio.h>
      |  ^
main.c:39:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   39 | }#include<stdio.h>
      |          ^
main.c:58:2: error: stray '#' in program
   58 | }#include<stdio.h>
      |  ^
main.c:58:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   58 | }#include<stdio.h>
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int j;
  i = 0;
  for(int j=0; j<3; j++;){
    if(S.at(j) == 'o'){
    i++;
    }
  }
  cout << 700 + i*100 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'i' was not declared in this scope
    8 |   i = 0;
      |   ^
a.cc:9:24: error: expected ')' before ';' token
    9 |   for(int j=0; j<3; j++;){
      |      ~                 ^
      |                        )
a.cc:9:25: error: expected primary-expression before ')' token
    9 |   for(int j=0; j<3; j++;){
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int i,j;
  i = 0;
  j = 0;
  while(j < 3){
    if(S.at(j) == "o"){
    i++;
    }
    j++;
  }
  cout << 700 + i*100 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(j) == "o"){
      |        ~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int i,j;
  i = 0;
  j = 0;
  while(j < 3){
    if(S.at(j) == o){
    i++;
    }
    j++;
  }
  cout << 700 + i*100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'o' was not declared in this scope
   11 |     if(S.at(j) == o){
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x=700;
  string s;
  cin>>s;
  for(int i=0;i<4;i++){
    if(s.at(i)=="◯"){
      x+=100;}
  }
  cout<<x<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(s.at(i)=="◯"){
      |        ~~~~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
stirng s;
  cin >> s;
  int i,sw;
  sw=0;

  
  for(i=0;i<3;++i)
  {
  if(s.at(i)=='o') sw++;}
    
  cout <<700+100*sw;  
    
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'stirng' was not declared in this scope
    5 | stirng s;
      | ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  int count = 0;
  for(int i=0; i<2; i++){
    if(S.at(i) == "o"){
      count++;
    }
  }
  
  int price = 700 + count * 100;
  cout << price << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(S.at(i) == "o"){
      |        ~~~~~~~~^~~~~~
Language: C++

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

int main(){
  int sum=700;
  string s;
  cin >> s;
  if(s[0]=="o") sum+=100;
  if(s[1]=="o") sum+=100;
  if(s[2]=="o") sum+=100;
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(s[0]=="o") sum+=100;
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[1]=="o") sum+=100;
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[2]=="o") sum+=100;
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
  pr(b);
}

int ans = 0;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  int a, b;
  string s;
  cin >> s;
  rep(i, 3)
  {
    if (s[i] == 'x')
      ans += 100;
    eles ans += 700;
  }
  pr(ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:66:5: error: 'eles' was not declared in this scope
   66 |     eles ans += 700;
      |     ^~~~
Language: C++

#include <cstring>
#include <cmath>
#include <stack>
#include <iomanip>
#include <tuple>
#include <functional>
#include <cfloat>
#include <map>
#include <set>
#include <array>
#include <stdio.h>
#include <string.h>
using ll = long long;
using ull = unsigned long long;
using namespace std;
#define int long long
#define CONTAINS_VEC(v,n) (find((v).begin(), (v).end(), (n)) != (v).end())
#define SORT(v) sort((v).begin(), (v).end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
#define ARY_SORT(a, size) sort((a), (a)+(size))
#define REMOVE(v,a) (v.erase(remove((v).begin(), (v).end(), (a)), (v).end()))
#define REVERSE(v) (reverse((v).begin(), (v).end()))
#define ARY_REVERSE(v,a) (reverse((v), (v)+(a)))
#define REP(i, n) for (int (i)=0; (i) < (n); (i)++)
#define CONTAINS_MAP(m, a) (m).find((a)) != m.end()
#define CONTAINS_SET(m, a) (m).find((a)) != m.end()
void YesNo(bool b) { cout << (b ? "Yes" : "No") << endl; }
void YESNO(bool b) { cout << (b ? "YES" : "NO") << endl; }





signed main()
{
	string S;
	cin >> S;
	int ans = 700;
	REP(i, 3) if (S[i] == 'o') ans += 100;
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'void YesNo(bool)':
a.cc:27:22: error: 'cout' was not declared in this scope
   27 | void YesNo(bool b) { cout << (b ? "Yes" : "No") << endl; }
      |                      ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #include <set>
  +++ |+#include <iostream>
   10 | #include <array>
a.cc: In function 'void YESNO(bool)':
a.cc:28:22: error: 'cout' was not declared in this scope
   28 | void YESNO(bool b) { cout << (b ? "YES" : "NO") << endl; }
      |                      ^~~~
a.cc:28:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc: In function 'int main()':
a.cc:37:9: error: 'cin' was not declared in this scope
   37 |         cin >> S;
      |         ^~~
a.cc:37:9: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:40:9: error: 'cout' was not declared in this scope
   40 |         cout << ans << endl;
      |         ^~~~
a.cc:40:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main() {
  string S;
  cin >> S;
  int price = 700;
  for(int i=0;i<3;i++){
    if(S.at(i)=="o"){
      price = price + 100;
    }
  }
  cout << price;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(S.at(i)=="o"){
      |        ~~~~~~~^~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){

	int ans = 700;
	string S;
	cin >> S;
	
	for (int i = 0; i < S.size(); i++) {
		if (S[i] == 'o') {
			ans += 100;
		}

		else if{
			ans += 0;
		}
	}
		cout << ans << endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: expected '(' before '{' token
   17 |                 else if{
      |                        ^
      |                        (
Language: C++


#include <iostream>
#include <vector>
#include <string>

int main()
{
    int ans = 700;
    string S;
    cin >> S;
    
    for (int i = 0; i < S.size(); i++) {
        if (S[i] == 'o') {
            ans += 100;
        }
    }
    cout << ans << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'string' was not declared in this scope
    9 |     string S;
      |     ^~~~~~
a.cc:9: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,
                 from a.cc:2:
/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:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     cin >> S;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:12: error: 'S' was not declared in this scope
   10 |     cin >> S;
      |            ^
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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout << ans << endl;
      |                    ^~~~
      |                    std::endl
/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(){
  string s;
  cin >> s;
  int price = 700;
  
  if(s.at(0) == 'o') price += 100;
  if(s.at(1) == 'o') price += 100;
  if(s.at(2) == 'o') price += 100;
  
  cout <<　price << endl;
}


Compiler output:
a.cc:13:10: error: extended character 　 is not valid in an identifier
   13 |   cout <<　price << endl;
      |          ^
a.cc: In function 'int main()':
a.cc:13:10: error: '\U00003000price' was not declared in this scope; did you mean 'price'?
   13 |   cout <<　price << endl;
      |          ^~~~~~~
      |          price
Language: C++

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

int main(){
  string s;
  cin >> s;
  int price = 700;
  
  if(s.at(0) == 'o') price += 100;
  if(s.at(1) == 'o') price += 100;
  if(s.at(2) == 'o') price += 100;
  
  cout <<　price << endl;
}

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

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

int main() {
  stirng s;
  cin >> s;
  int ans = 0;
  for (int i = 0; i < 3 ; i++){
    if (s[i] == 'o') ans++;
  }
  cout << ans * 100 + 700 << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng s;
      |   ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  int count =0 ;
  for ( int i=0 ; i<3 ; i++){
    if ( s.at(i) == 'o' ){
      count++
    }
  }
  cout << 700+count*100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before '}' token
   10 |       count++
      |              ^
      |              ;
   11 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A;
  int B = 700;
  for(int i = 0; i < 3; i++) {
    if(A.at(i) == 'o') {
      B += 100+;
    }
  }
  cout << B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before ';' token
    8 |       B += 100+;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A;
  int B = 700;
  if(A.at(0) == o) {
    B += 100;
  }
  if(A.at(1) == o) {
    B += 100;
  }
  if(A.at(2) == o) {
    B += 100;
  }
  cout << B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'o' was not declared in this scope
    6 |   if(A.at(0) == o) {
      |                 ^
a.cc:9:17: error: 'o' was not declared in this scope
    9 |   if(A.at(1) == o) {
      |                 ^
a.cc:12:17: error: 'o' was not declared in this scope
   12 |   if(A.at(2) == o) {
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A;
  int B = 700;
  if(A.at(0) == o) {
    B += 100
  }
  if(A.at(1) == o) {
    B += 100
  }
  if(A.at(2) == o) {
    B += 100
  }
  cout << B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'o' was not declared in this scope
    6 |   if(A.at(0) == o) {
      |                 ^
a.cc:7:13: error: expected ';' before '}' token
    7 |     B += 100
      |             ^
      |             ;
    8 |   }
      |   ~          
a.cc:9:17: error: 'o' was not declared in this scope
    9 |   if(A.at(1) == o) {
      |                 ^
a.cc:10:13: error: expected ';' before '}' token
   10 |     B += 100
      |             ^
      |             ;
   11 |   }
      |   ~          
a.cc:12:17: error: 'o' was not declared in this scope
   12 |   if(A.at(2) == o) {
      |                 ^
a.cc:13:13: error: expected ';' before '}' token
   13 |     B += 100
      |             ^
      |             ;
   14 |   }
      |   ~
Language: Java

import java.io.IOException;
import java.util.Scanner;

public class HalfAndHalf {
    public static void main(String[] Arguments) throws IOException 
    {
        Scanner sc = new Scanner(System.in);
        long A = sc.nextInt(), B = sc.nextInt(), C = sc.nextInt(), X = sc.nextInt(), Y = sc.nextInt();
        
        // Cost of Buying A and B Pizzas separately:
        long costAB = A * X + B * Y;
        
        // Common Number of A and B Pizzas
        long Same = Math.min(X, Y);
        X = X - Same; 
        Y = Y - Same;
        long costCombine = Same * 2 * C + A * X + B * Y;
        long totalCost = Same * 2 * C + Math.max(X, Y) * 2 * C;
        
        // Is it better to buy A and B Pizzas Seperately, or should he use AB Pizzas?
        long Best = Math.min(costAB, costCombine);
        Best = Math.min(Best, totalCost);
        System.out.println(Best);
    }
}

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

#include <iostream>
using namespace std;

int main()
{
	

	int sum = 0

		for (int i = 0; i < 3; i++) {
			string S;
			cin >> S;

			if (S.at(i) = "o") {
				sum += 100;
			}
		}
	int ans = 700 + sam;
	cout << ans << endl;
	}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ',' or ';' before 'for'
   10 |                 for (int i = 0; i < 3; i++) {
      |                 ^~~
a.cc:10:33: error: 'i' was not declared in this scope
   10 |                 for (int i = 0; i < 3; i++) {
      |                                 ^
a.cc:18:25: error: 'sam' was not declared in this scope; did you mean 'sum'?
   18 |         int ans = 700 + sam;
      |                         ^~~
      |                         sum
Language: C++

#include <iostream> 
#include <string>
using namespace std;
int main() {
	string topping;
	cin >> topping;

	int P;
	P = 700;

	for (int i = 0; i < 3; i++) {
		if (topping.at(i) == 'o') {
			P += 100
		}
    }
		cout << P << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before '}' token
   13 |                         P += 100
      |                                 ^
      |                                 ;
   14 |                 }
      |                 ~
Language: C++

#include <iostream> 
using namespace std;
int main() {
	string topping;
	cin >> topping;

	int P;
	P = 700;

	for (int i = 0; i < 3; i++) {
		if (topping.at(i) == 'o') {
			P += 100
		}
		cout << P << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected ';' before '}' token
   12 |                         P += 100
      |                                 ^
      |                                 ;
   13 |                 }
      |                 ~                
a.cc:15:10: error: expected '}' at end of input
   15 |         }
      |          ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream> 
#include <string>
using namespace std;
int main() {
	string topping;
	cin >> topping;

	int P;
	P = 700;

	for (int i = 0; i < 3; i++) {
		if (topping.at(i) == 'o') {
			P += 100
		}
		cout << P << endl;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before '}' token
   13 |                         P += 100
      |                                 ^
      |                                 ;
   14 |                 }
      |                 ~                
a.cc:16:10: error: expected '}' at end of input
   16 |         }
      |          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int total = 0;
    total += 700;
    for(int i = 0; i<3; i++){
      if(s.charAt(i) == 'o'){
        total += 100; 
      }
    }
    System.out.println(total);
  }
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;
  int ans = 700;
  for ( int i = 0, i<3; i++){
    if ( S.at(i) == 'o' ){
      ans += 100;
    }
  }
  cout << ans << endl;
  return 0;
}


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

#include <iostream>
using namespace std;

int main()
{
  string s;
  int ans = 700;
  cin >> s;
  ans += count(s.begin(), s.end(), 'o') * 100;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'count' was not declared in this scope
    9 |   ans += count(s.begin(), s.end(), 'o') * 100;
      |          ^~~~~
Language: C++

#inclulde<iostream>
#include<string>
int main(){
	std::string S;
  	int counter=0;
  	std::cin>>S;
  	if(S[0]=='o')++counter;
  	if(S[1]=='o')++counter;
  	if(S[2]=='o')++counter;
  	std::cout<<(700+counter*100);
  
  
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclulde; did you mean #include?
    1 | #inclulde<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin>>S;
      |              ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | int main(){
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout<<(700+counter*100);
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inclulde<iostream>

int main(){
	std::string S;
  	int counter=0;
  	std::cin>>S;
  	if(S[0]=='o')++counter;
  	if(S[1]=='o')++counter;
  	if(S[2]=='o')++counter;
  	std::cout<<(700+counter*100);
  
  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclulde; did you mean #include?
    1 | #inclulde<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:14: error: 'string' is not a member of 'std'
    4 |         std::string S;
      |              ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #inclulde<iostream>
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin>>S;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclulde<iostream>
a.cc:6:19: error: 'S' was not declared in this scope
    6 |         std::cin>>S;
      |                   ^
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout<<(700+counter*100);
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int add = 0;
      	for(int i=0; i<s.length(); ++i){
            if(slist[i].equals("o")){
                add = add + 100;
            }
        }
      	System.out.println(700+add);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
            if(slist[i].equals("o")){
               ^
  symbol:   variable slist
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a =700;
    
    if(s.equals("ooo")){
      a = 1000;
    }else if(s.equals("oxo")||s.equals("oox")||s.equals("xoo")) {
      a = 900;
    } else if(s.equals("oxx")||s.equals("xxo")||s.equals("xox"))oxx{
      a = 800;
    }
    System.out.println(a);
  }
}

Compiler output:
Main.java:13: error: not a statement
    } else if(s.equals("oxx")||s.equals("xxo")||s.equals("xox"))oxx{
                                                                ^
Main.java:13: error: ';' expected
    } else if(s.equals("oxx")||s.equals("xxo")||s.equals("xox"))oxx{
                                                                   ^
2 errors
Language: C++

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

int main() {
  string s;
  cin >> s;
  sum = 700;
  for(int i = 0; i < 3; i++) {
    if(s[i] == 'o') sum += 100;
  }
  cout << sum << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'sum' was not declared in this scope
   10 |   sum = 700;
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  	string s;
  	int cnt(0);
  
  	cin >> s;
    for(int i + 0;i < 3;i++){
      if(s.at(i) == 'o'){
        cnt++;
      }
    }
  cout << 700 + cnt*100;
      
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '+' token
    9 |     for(int i + 0;i < 3;i++){
      |              ^~
      |              ;
a.cc:9:24: error: expected ')' before ';' token
    9 |     for(int i + 0;i < 3;i++){
      |        ~               ^
      |                        )
a.cc:9:25: error: 'i' was not declared in this scope
    9 |     for(int i + 0;i < 3;i++){
      |                         ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  int count = 0;
  for(int i = 0;i < 3;i++){
    if(S[i] == "o"){
    count++;
    }
  }
  cout << 700 + 100 * count << endl;
}


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

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

int main(){
  string S;
  cin >> S;
  int count = 0;
  for(int i == 0;i < 3;i++){
    if(S[i] = "o"){
    count++;
    }
  }
  cout << 700 + 100 * count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '==' token
    8 |   for(int i == 0;i < 3;i++){
      |            ^~~
      |            ;
a.cc:8:13: error: expected primary-expression before '==' token
    8 |   for(int i == 0;i < 3;i++){
      |             ^~
a.cc:8:23: error: expected ')' before ';' token
    8 |   for(int i == 0;i < 3;i++){
      |      ~                ^
      |                       )
a.cc:8:24: error: 'i' was not declared in this scope
    8 |   for(int i == 0;i < 3;i++){
      |                        ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  int count = 0;
  for(int i = 0;i < 3;i++){
    if(S[i] = "o"){
    count++;
    }
  }
  cout << 700 + 100 * count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |     if(S[i] = "o"){
      |               ^~~
      |               |
      |               const char*
Language: C++

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

int main() {
  string S;
  cin >> S;
  int count = 0;
  for(int i = 0;i < 3;i++){
    if(S[i] = "o"){
    count++;
    }
  }
  cout << 700 + 100 * count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |     if(S[i] = "o"){
      |               ^~~
      |               |
      |               const char*
Language: C++

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

int main() {
  string S;
  int count;
  for(int i = 0;i < 3;i++){
    if(S[i] = "o"){
    count++;
    }
  }
  cout << 700 + 100 * count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |     if(S[i] = "o"){
      |               ^~~
      |               |
      |               const char*
Language: C++

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


int main(){
  
  string S;
  cin >> S;
  int cnt = 0;
  
  for(int i = 0; i < 3; i++){
    if(S[i] == 'o') cnt++;
  }
  cout < 700 + 100 * cnt << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |   cout < 700 + 100 * cnt << endl;
      |          ~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main(){
  string A;
  cin >> A;
  int ans=700;
  for(int i=0;i<3;i++){
    if(A.at(i)==o){
      ans+=100;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'o' was not declared in this scope
    9 |     if(A.at(i)==o){
      |                 ^
Language: C

#include <stdio.h>

int main(void)
{
        char s[3];
        int c=0;
        scanf("%s",s);

        for(int i=0;i<3;i++)
                if(s[i]=='x')c++;
        pirntf("%d\n",700+c*100);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'pirntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         pirntf("%d\n",700+c*100);
      |         ^~~~~~
      |         printf
Language: C++

#include<iostream>
using namespace std;

int main(){
    string S;
    int count = 0;
    cin >> S;
    for(int i = 0; i < 3; i++){
        if(S[i] = 'o') count++;
    }
    y = 700 + 100 * count;
    cout << y << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'y' was not declared in this scope
   11 |     y = 700 + 100 * count;
      |     ^
Language: C

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
#define rep(i,n) for (ll i = 0; i < (ll)(n); ++i)
#define rrep(i,j,n) for(ll i = (ll)(j); i < (ll)(n); i++)
#define mrep(i,n) for (ll i = (ll)(n); i > 0; i--)
#define be(v) (v).begin(), (v).end()
#define dcout cout << fixed << setprecision(20) 
ll INF = 1LL << 60;
ll mod = 1e9 + 7;

int main() {
	string s;
	cin >> s;
	int c=0;
	rep(i,3) {
		if(s[i]=='o') c++;
	}
	c*=100;
	cout << 700+c << endl;
}

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

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


int main() {
  int cnt = 0;
  rep(i,3){
    char a;
    cin >> a;
    if(a == 'o')cnt++
  }
  int ans = 700 + 100 * cnt;
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
   12 |     if(a == 'o')cnt++
      |                      ^
      |                      ;
   13 |   }
      |   ~
Language: Java

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

	Scanner sc = new Scanner(System.in);
      
    int p = 700;
      
    String s = sc.next();
    for(int i = 0; i < s.length(); i++){
    	if(s.charAt(i).equals("o"){
          p+=100;
        }
    }
    System.out.println(p);

Compiler output:
Main.java:10: error: ')' expected
    	if(s.charAt(i).equals("o"){
    	                          ^
Main.java:14: error: reached end of file while parsing
    System.out.println(p);
                          ^
2 errors
Language: C++

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

int main() {
  string S;
  cin >> S;
  int price = 700;
  if (S[0] == "o") price+=100;
  if (S[1] == "o") price+=100;
  if (S[2] == "o") price+=100;
  cout << price << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if (S[0] == "o") price+=100;
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (S[1] == "o") price+=100;
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (S[2] == "o") price+=100;
Language: C++

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

int main() {
  string S;
  cin >> S;
  int price = 700;
  if (S[0] = "o") price+=100;
  if (S[1] = "o") price+=100;
  if (S[2] = "o") price+=100;
  cout << price << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    8 |   if (S[0] = "o") price+=100;
      |              ^~~
      |              |
      |              const char*
a.cc:9:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    9 |   if (S[1] = "o") price+=100;
      |              ^~~
      |              |
      |              const char*
a.cc:10:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   if (S[2] = "o") price+=100;
      |              ^~~
      |              |
      |              const char*
Language: C++

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

int main(){
    string S;
    cin >> S;

    int cnt = 0;
    if(s[0]=='o') cnt++;
    if(s[1]=='o') cnt++;
    if(s[2]=='o') cnt++;

    int ans = 700 + 100*cnt;

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 's' was not declared in this scope
   10 |     if(s[0]=='o') cnt++;
      |        ^
a.cc:11:8: error: 's' was not declared in this scope
   11 |     if(s[1]=='o') cnt++;
      |        ^
a.cc:12:8: error: 's' was not declared in this scope
   12 |     if(s[2]=='o') cnt++;
      |        ^
Language: C++

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

int main() {
  string S;
  cin>>S;
  int count=0;
  for(int i=0,i<3;i++){
    if(S.at(i)=='o'){
      count++;
    }
  }
  cout<<700+100*count<<endl;
}


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

#include <iostream>
#include <string>
using namespace std;
int main() {
    string str;
    cin >> str;
    int count = 700;
    if (str[0] == 'o'){
      	count += 100;
    }
    if (str[1] == 'o'){
    	count += 100;
    }
    if (str[2] == 'o'){
    	count += 100:;
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected ';' before ':' token
   15 |         count += 100:;
      |                     ^
      |                     ;
Language: C++

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

int main() {
  string s;
  cin >> s;
  int price =700;
  for(int i=0;i<3;i++){
    if(s[i]==o){
      price += 100;
    }
  }
  cout << price << endl;
}


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

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

int main () {
  String S;
  cin >> S;

  int answer = 700;
  for (int i = 0; i < 3; i++) {
    if (S.at(i) == 'o') {
      answer += 100;
    }
  }
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String S;
      |   ^~~~~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    string S;
    cin >> S;
    int answer = 700;
    if(S(0) == 'o' ){
        answer += 100;
    }
    if(S(1) == 'o' ){
        answer += 100;
    }
    if(S(2) == 'o' ){
        answer += 100;
    }
    cout << answer << endl;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |     if(S(0) == 'o' ){
      |        ~^~~
a.cc:10:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   10 |     if(S(1) == 'o' ){
      |        ~^~~
a.cc:13:9: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
   13 |     if(S(2) == 'o' ){
      |        ~^~~
Language: C++

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

int main(){
  
  string s;
  cin >> s;
  
  if(s == ooo){
    cout << "1000" << endl;
  }
  
  else if( s == xoo || s == oxo || s == oox ) {
    cout << "900" << endl;
  }
  
  else if( s == oxx || s == xox || s == xxo ){
    cout << "800" << endl;
  }
  
  else{
    cout << "700" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'ooo' was not declared in this scope
    9 |   if(s == ooo){
      |           ^~~
a.cc:13:17: error: 'xoo' was not declared in this scope
   13 |   else if( s == xoo || s == oxo || s == oox ) {
      |                 ^~~
a.cc:13:29: error: 'oxo' was not declared in this scope
   13 |   else if( s == xoo || s == oxo || s == oox ) {
      |                             ^~~
a.cc:13:41: error: 'oox' was not declared in this scope
   13 |   else if( s == xoo || s == oxo || s == oox ) {
      |                                         ^~~
a.cc:17:17: error: 'oxx' was not declared in this scope
   17 |   else if( s == oxx || s == xox || s == xxo ){
      |                 ^~~
a.cc:17:29: error: 'xox' was not declared in this scope
   17 |   else if( s == oxx || s == xox || s == xxo ){
      |                             ^~~
a.cc:17:41: error: 'xxo' was not declared in this scope
   17 |   else if( s == oxx || s == xox || s == xxo ){
      |                                         ^~~
Language: C++

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

int main() {
   string s;
   cin >> s;

   price = 700;

   rep (i, 3) {
       if (s[i] == 'o') {
           price += 100;
       }
   }

   cout << price << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'price' was not declared in this scope
   11 |    price = 700;
      |    ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <set>
#include <math.h>
#define pai arccos(-1);
#define keta(n) cout << fixed << setprecision((n));
#define ll long long;
int main()
{
  string s;
  cin>>s;
  int ans =0;
  for(int i=0;i<s.size(),i++){
    if(s[i]=='o')
      ans++;
  }
  cout<<700+100*ans;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: expected ';' before ')' token
   14 |   for(int i=0;i<s.size(),i++){
      |                             ^
      |                             ;
Language: C++

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

int main()
{
 	string a;
  	cin >> a;
  	cout << 700 + (a[0] == 'o'?100) + (a[1] == 'o'?100) + (a[2] == 'o'?100) << endl;
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: expected ':' before ')' token
    8 |         cout << 700 + (a[0] == 'o'?100) + (a[1] == 'o'?100) + (a[2] == 'o'?100) << endl;
      |                                       ^
      |                                       :
a.cc:8:39: error: expected primary-expression before ')' token
a.cc:8:59: error: expected ':' before ')' token
    8 |         cout << 700 + (a[0] == 'o'?100) + (a[1] == 'o'?100) + (a[2] == 'o'?100) << endl;
      |                                                           ^
      |                                                           :
a.cc:8:59: error: expected primary-expression before ')' token
a.cc:8:79: error: expected ':' before ')' token
    8 |         cout << 700 + (a[0] == 'o'?100) + (a[1] == 'o'?100) + (a[2] == 'o'?100) << endl;
      |                                                                               ^
      |                                                                               :
a.cc:8:79: error: expected primary-expression before ')' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
 
int main(){
  int sum = 700;
  string x;
  cin >> x;
  rep(i, 3){
    if(x[i] == "o"){
      sum += 100;
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(x[i] == "o"){
Language: C++

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

int main(){
  int sum = 700;
  string x;
  cin >> x;
  rep(i, 3){
    if(x[i] == "o"){
      sum += 100
    }
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(x[i] == "o"){
a.cc:12:17: error: expected ';' before '}' token
   12 |       sum += 100
      |                 ^
      |                 ;
   13 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 int main(){
 string a;
 cin >>a;
 int c=700;
   for(int i=0;i<3;i++){
   if(a.at(i)=="o"){
     c+=100;
   }
   }
   cout <<c<<endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(a.at(i)=="o"){
      |       ~~~~~~~^~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;

  int counter = 0;

  if (s[0] == "o") ++counter;
  if (s[1] == "o") ++counter;
  if (s[2] == "o") ++counter;

  cout << 700 + 100 * counter;

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[0] == "o") ++counter;
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (s[1] == "o") ++counter;
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (s[2] == "o") ++counter;
Language: C++

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

int main(){
  string s;
  cin >> s;

  int counter = 0;

  if (s[0] == o) ++counter;
  if (s[1] == o) ++counter;
  if (s[2] == o) ++counter;

  cout << 700 + 100 * counter;

  return 0;

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'o' was not declared in this scope
   11 |   if (s[0] == o) ++counter;
      |               ^
a.cc:12:15: error: 'o' was not declared in this scope
   12 |   if (s[1] == o) ++counter;
      |               ^
a.cc:13:15: error: 'o' was not declared in this scope
   13 |   if (s[2] == o) ++counter;
      |               ^
Language: C++

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

int main(){
  string s;
  cin >> s;

  int counter = 0;

  if (s[0] == o) counter++;
  if (s[1] == o) counter++;
  if (s[2] == o) counter++;

  cout << 700 + 100 * counter;

  return 0;

 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'o' was not declared in this scope
   11 |   if (s[0] == o) counter++;
      |               ^
a.cc:12:15: error: 'o' was not declared in this scope
   12 |   if (s[1] == o) counter++;
      |               ^
a.cc:13:15: error: 'o' was not declared in this scope
   13 |   if (s[2] == o) counter++;
      |               ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  string s;
  cin >> s;

  int counter = 0;

  if (s[0] == o) counter++;
  if (s[1] == o) counter++;
  if (s[2] == o) counter++;

  cout << 700 + 100 * counter;

  return 0;
  
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'o' was not declared in this scope
   10 |   if (s[0] == o) counter++;
      |               ^
a.cc:11:15: error: 'o' was not declared in this scope
   11 |   if (s[1] == o) counter++;
      |               ^
a.cc:12:15: error: 'o' was not declared in this scope
   12 |   if (s[2] == o) counter++;
      |               ^