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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected initializer before '==' token
    7 |   int ans == 700; {
      |           ^~
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if (S[0] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:9:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if (S[1] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:10:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if (S[2] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected initializer before '==' token
    7 |   int ans == 700;
      |           ^~
a.cc:8:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if (S[0] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:9:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if (S[1] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:10:20: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if (S[2] == 'o') ans += 100;
      |                    ^~~
      |                    abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected initializer before '==' token
    7 |   int ans == 700;
      |           ^~
a.cc:8:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if (S[0] = 'o') ans += 100;
      |                   ^~~
      |                   abs
a.cc:9:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if (S[1] = 'o') ans += 100;
      |                   ^~~
      |                   abs
a.cc:10:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   if (S[2] = 'o') ans += 100;
      |                   ^~~
      |                   abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
char a[3];
int n=700;
int main()
{
  for(i=0;i<3;i++)
    {
      cin>>a[i];
      if(a[i]=='o')
        n+=100; 
	}
  cout<<n;
  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<3;i++)
      |       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: 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 p = 700;
  if(s.at(0)=='o'){
    p+=100;
  }
  if(s.at(1)=='o'){
    p+=100;
  }
  if(s.at(2)=='o'){
    p+=100;
  }
  cout << p << endl;
  return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected unqualified-id before '.' token
    9 |   if(string.at(0)=='o'){
      |            ^
a.cc:12:12: error: expected unqualified-id before '.' token
   12 |   if(string.at(1)=='o'){
      |            ^
a.cc:15:12: error: expected unqualified-id before '.' token
   15 |   if(string.at(2)=='o'){
      |            ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int i;
int price_base=700;
int price_add=0;

string S;

cin>>S;

for(i=0;i<3;i++){
if(S[i]=="○")
  price_add+=100;
}
cout<<price_base+price_add;
}


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

#include<iostream>
#include<string>
using namespace std;
int main(){
int i;
int price_base=700;
int price_add=0;

string S;

cin>>S;

for(i=0;i<3;i++){
if(S.[i]=="○")
  price_add+=100;
}
cout<<price_base+price_add;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: expected unqualified-id before '[' token
   14 | if(S.[i]=="○")
      |      ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int i;
int price_base=700;
int price_add=0;

string S;

cin>>S;

for(i=0;i<3;i++){
if(S.[i]=="○")
  price_add+=100;
}
cout<<price_base+price_add;


Compiler output:
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>S;
      | ^~~
a.cc:12:1: error: expected unqualified-id before 'for'
   12 | for(i=0;i<3;i++){
      | ^~~
a.cc:12:9: error: 'i' does not name a type
   12 | for(i=0;i<3;i++){
      |         ^
a.cc:12:13: error: 'i' does not name a type
   12 | for(i=0;i<3;i++){
      |             ^
a.cc:16:1: error: 'cout' does not name a type
   16 | cout<<price_base+price_add;
      | ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int price_base=700;
int price_add=0;

string S;

cin>>S;

for(i=0;i<3;i++){
if(S.[i]=="○")
  price_add+=100;
}
cout<<price_base+price_add;

Compiler output:
a.cc:9:1: error: 'cin' does not name a type
    9 | cin>>S;
      | ^~~
a.cc:11:1: error: expected unqualified-id before 'for'
   11 | for(i=0;i<3;i++){
      | ^~~
a.cc:11:9: error: 'i' does not name a type
   11 | for(i=0;i<3;i++){
      |         ^
a.cc:11:13: error: 'i' does not name a type
   11 | for(i=0;i<3;i++){
      |             ^
a.cc:15:1: error: 'cout' does not name a type
   15 | cout<<price_base+price_add;
      | ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
//#include <bits/stdc++.h>
#include<vector>
#include<float.h>
#include<iomanip>
#include<algorithm>
#include<string>
#include<cstring>
#include<math.h>
#include<cmath>
#include<sstream>
#include<set>
#include<map>
#include<queue>
#include <cassert>
#include <cmath>
#include<cstdint>

#define INF 1e9
#define rep(i,n)for(int i=0;(i)<(int)(n);i++)
#define REP(i,a,b)for(int i=(int)(a);(i)<=(int)(b);i++)
#define VEC(type, c, n) std::vector<type> c(n);for(auto& i:c)std::cin>>i;
#define vec(type,n) vector<type>(n)
#define vvec(m,n) vector<vector<int>> (int(m),vector<int>(n))
#define ALL(a)  (a).begin(),(a).end()

using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
using P = pair<int,int>;

vector<int>bitSearch(int bit,int n){
    vector<int>S;
    rep(i,n)if(bit&(1<<i))S.push_back(i);
    return S;
}



int main(){
    string s;cin>>s;
    cout<<700+100*s.count('o');
}



Compiler output:
a.cc: In function 'int main()':
a.cc:43:21: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
   43 |     cout<<700+100*s.count('o');
      |                     ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int count=0,s;
 
  cin >> s;
  
  
  if(s/100){
    count++;
    s-=100;
  }
 
  if(s/10){
    count++;
    s-=10;
  }
 
  if(s) {
  count++;
  }
 
  cout << count << endl;
 
  return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int value=700;
  string S;

  cin >> S;
  
  
  if(S.at(0)=='o') value+=100;

  if(S.at(1)=='o') value+=100;

  if(S.at(2)=='o') value+=100;


  cout << value << endl;
 
  return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: invalid types 'int[int]' for array subscript
    8 |     if (cnt[0] == 'o') { cnt++; }
      |            ^
a.cc:9:12: error: invalid types 'int[int]' for array subscript
    9 |     if (cnt[1] == 'o') { cnt++; }
      |            ^
a.cc:10:12: error: invalid types 'int[int]' for array subscript
   10 |     if (cnt[2] == 'o') { cnt++; }
      |            ^
Language: C++

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

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

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

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

int main(){


  string S;
  cin>>S;
  int n = sizeof(S) / sizeof(S[0])
  int plus=count(S,S+n,"o");
  int cost=700+100*plus;
  cout<<cost;
  
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'int'
   13 |   int plus=count(S,S+n,"o");
      |   ^~~
a.cc:14:24: error: missing template arguments before ';' token
   14 |   int cost=700+100*plus;
      |                        ^
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
    #define rep(i, n) for (int i = 0; i < (int)(n); i++)
     
    int main() {
      string A;
      cin >> A;
      int ans = 700;
      if (A[0] == 'o') {ans+100}
      if (A[1] == 'o') {ans+100}
      if (A[2] == 'o') {ans+100}
      cout << ans << endl;
      
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: expected ';' before '}' token
    9 |       if (A[0] == 'o') {ans+100}
      |                                ^
      |                                ;
a.cc:10:32: error: expected ';' before '}' token
   10 |       if (A[1] == 'o') {ans+100}
      |                                ^
      |                                ;
a.cc:11:32: error: expected ';' before '}' token
   11 |       if (A[2] == 'o') {ans+100}
      |                                ^
      |                                ;
Language: C++

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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #iclude; did you mean #include?
    2 | #iclude <string>
      |  ^~~~~~
      |  include
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  int counter = 700;
  if(s[0] == '○' && s[1] == '○' && s[2] == '○') {
    counter = counter + 300;
  }
  if(s[0] == '○' && s[1] == '○') {
    counter = counter + 200;
  }
  if(s[1] == '○' && s[2] == '○') {
    counter = counter + 200;
  }
  if(s[0] == '○' && s[2] == '○') {
    counter = counter + 200;
  }
  if(s[0] == '○') {
    counter = counter + 100;
  }
  if(s[1] == '○') {
    counter = counter + 100;
  }
  if(s[2] == '○') {
    counter = counter + 100;
  }
  cout << counter <<endl;
}

Compiler output:
a.cc:9:14: warning: multi-character character constant [-Wmultichar]
    9 |   if(s[0] == '○' && s[1] == '○' && s[2] == '○') {
      |              ^~~
a.cc:9:29: warning: multi-character character constant [-Wmultichar]
    9 |   if(s[0] == '○' && s[1] == '○' && s[2] == '○') {
      |                             ^~~
a.cc:9:44: warning: multi-character character constant [-Wmultichar]
    9 |   if(s[0] == '○' && s[1] == '○' && s[2] == '○') {
      |                                            ^~~
a.cc:12:14: warning: multi-character character constant [-Wmultichar]
   12 |   if(s[0] == '○' && s[1] == '○') {
      |              ^~~
a.cc:12:29: warning: multi-character character constant [-Wmultichar]
   12 |   if(s[0] == '○' && s[1] == '○') {
      |                             ^~~
a.cc:15:14: warning: multi-character character constant [-Wmultichar]
   15 |   if(s[1] == '○' && s[2] == '○') {
      |              ^~~
a.cc:15:29: warning: multi-character character constant [-Wmultichar]
   15 |   if(s[1] == '○' && s[2] == '○') {
      |                             ^~~
a.cc:18:14: warning: multi-character character constant [-Wmultichar]
   18 |   if(s[0] == '○' && s[2] == '○') {
      |              ^~~
a.cc:18:29: warning: multi-character character constant [-Wmultichar]
   18 |   if(s[0] == '○' && s[2] == '○') {
      |                             ^~~
a.cc:21:14: warning: multi-character character constant [-Wmultichar]
   21 |   if(s[0] == '○') {
      |              ^~~
a.cc:24:14: warning: multi-character character constant [-Wmultichar]
   24 |   if(s[1] == '○') {
      |              ^~~
a.cc:27:14: warning: multi-character character constant [-Wmultichar]
   27 |   if(s[2] == '○') {
      |              ^~~
a.cc: In function 'int main()':
a.cc:9:6: error: 's' was not declared in this scope
    9 |   if(s[0] == '○' && s[1] == '○' && s[2] == '○') {
      |      ^
a.cc:12:6: error: 's' was not declared in this scope
   12 |   if(s[0] == '○' && s[1] == '○') {
      |      ^
a.cc:15:6: error: 's' was not declared in this scope
   15 |   if(s[1] == '○' && s[2] == '○') {
      |      ^
a.cc:18:6: error: 's' was not declared in this scope
   18 |   if(s[0] == '○' && s[2] == '○') {
      |      ^
a.cc:21:6: error: 's' was not declared in this scope
   21 |   if(s[0] == '○') {
      |      ^
a.cc:24:6: error: 's' was not declared in this scope
   24 |   if(s[1] == '○') {
      |      ^
a.cc:27:6: error: 's' was not declared in this scope
   27 |   if(s[2] == '○') {
      |      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	cin>>s;
	int cnt=700;
	if(s[0]=='o')cnt+=100；
	if(s[1]=='o')cnt+=100;
	if(s[2]=='o')cnt+=100;
	cout<<cnt; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: unable to find numeric literal operator 'operator""\U0000ff1b'
    8 |         if(s[0]=='o')cnt+=100；
      |                           ^~~~~
Language: C++

#include <iostream>
#include <stdio.h>
using namespace std;

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

	int counter = 0;

	if (s[0] == 'o') {
	       counter += 100;
	}
	else if (s[0] == 'x') {
	       counter += 0;
	}
        if (s[1] == 'o') {
	       counter += 100;
	}
	else if (s[1] == 'x') {
	       counter += 0;
	}
        if (s[2] == 'o') {
	       counter += 100;
	}
	else if (s[2] == 'x') {
	       counter += 0;
	}
          
	int r = 700;
	int total = r + counter;

	cout << total << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid types 'int[int]' for array subscript
   12 |         if (s[0] == 'o') {
      |              ^
a.cc:15:19: error: invalid types 'int[int]' for array subscript
   15 |         else if (s[0] == 'x') {
      |                   ^
a.cc:18:14: error: invalid types 'int[int]' for array subscript
   18 |         if (s[1] == 'o') {
      |              ^
a.cc:21:19: error: invalid types 'int[int]' for array subscript
   21 |         else if (s[1] == 'x') {
      |                   ^
a.cc:24:14: error: invalid types 'int[int]' for array subscript
   24 |         if (s[2] == 'o') {
      |              ^
a.cc:27:19: error: invalid types 'int[int]' for array subscript
   27 |         else if (s[2] == 'x') {
      |                   ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    String x = sc.next();
    int count = 0;
    if(x.charAt(0) == 'o')  count++:
    if(x.charAt(1) == 'o')  count++:
    if(x.charAt(2) == 'o')  count++:
    System.out.println(700 + count*100);
  }
}

Compiler output:
Main.java:7: error: ';' expected
    if(x.charAt(0) == 'o')  count++:
                                   ^
Main.java:8: error: ';' expected
    if(x.charAt(1) == 'o')  count++:
                                   ^
Main.java:9: error: ';' expected
    if(x.charAt(2) == 'o')  count++:
                                   ^
3 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,3){
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,3){
      |   ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,3){
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,3){
      |   ^~~
Language: C++

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

int main(){
    string a; cin>>a
    int t=0;
    if(a.at(0)=="o")t++;
    if(a.at(1)=="o")t++;
    if(a.at(2)=="o")t++;

    cout<<700+100*t<<endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected ';' before 'int'
    5 |     string a; cin>>a
      |                     ^
      |                     ;
    6 |     int t=0;
      |     ~~~              
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(a.at(0)=="o")t++;
      |        ~~~~~~~^~~~~
a.cc:7:21: error: 't' was not declared in this scope
    7 |     if(a.at(0)=="o")t++;
      |                     ^
a.cc:8:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(a.at(1)=="o")t++;
      |        ~~~~~~~^~~~~
a.cc:8:21: error: 't' was not declared in this scope
    8 |     if(a.at(1)=="o")t++;
      |                     ^
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a.at(2)=="o")t++;
      |        ~~~~~~~^~~~~
a.cc:9:21: error: 't' was not declared in this scope
    9 |     if(a.at(2)=="o")t++;
      |                     ^
a.cc:11:19: error: 't' was not declared in this scope
   11 |     cout<<700+100*t<<endl;
      |                   ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'cour' was not declared in this scope
   12 |   cour << price<< endl;
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0]== "o") price = price + 100;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1]== "o") price = price + 100;
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[2]== "o") price = price + 100;
a.cc:12:3: error: 'cour' was not declared in this scope
   12 |   cour << price<< endl;
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0]=="o") price = price + 100;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1]=="o") price = price + 100;
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[2]=="o") price = price + 100;
a.cc:12:3: error: 'cour' was not declared in this scope
   12 |   cour << price<< endl;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s[0]=="o") price = price + 100:
a.cc:9:37: error: expected ';' before ':' token
    9 |   if (s[0]=="o") price = price + 100:
      |                                     ^
      |                                     ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:19: error: expected declaration specifiers or '...' before numeric constant
    3 |         char S[1](3);
      |                   ^
main.c:4:22: error: 'S' undeclared (first use in this function)
    4 |         scanf("%c", &S);
      |                      ^
main.c:4:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: implicit declaration of function 'S' [-Wimplicit-function-declaration]
    9 |                 if (S(i) == 'o') {
      |                     ^
Language: C

#include<stdio.h>
int main() {
	int S[1](3);
	scanf("%d", &S);
	int i, pay;
	i = 0;
	pay = 700;
	do {
		if (S(i) == 'o') {
			pay += 100;
		}
		i += 1;
	} while (i < 3);
	printf("%d\n", pay);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:18: error: expected declaration specifiers or '...' before numeric constant
    3 |         int S[1](3);
      |                  ^
main.c:4:22: error: 'S' undeclared (first use in this function)
    4 |         scanf("%d", &S);
      |                      ^
main.c:4:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:21: error: implicit declaration of function 'S' [-Wimplicit-function-declaration]
    9 |                 if (S(i) == 'o') {
      |                     ^
Language: C

#include<stdio.h>
int main() {
	int S[1];
	scanf("%c", &S);
	int i, pay;
	i = 0;
	pay = 700;
	do {
		if (S(i) == 'o') {
			pay += 100;
		}
		i += 1;
	} while (i < 3);
	printf("%d\n", pay);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:21: error: called object 'S' is not a function or function pointer
    9 |                 if (S(i) == 'o') {
      |                     ^
main.c:3:13: note: declared here
    3 |         int S[1];
      |             ^
Language: C

#include<stdio.h>
int main() {
	char S[3];
	scanf_s("%c", &S);
	int i, pay;
	i = 0;
	pay = 700;
	do {
		if (S[i] == 'o') {
			pay += 100;
		}
		i++;
	} while (i < 2);
	printf("%d\n", pay);
	return 0;
}


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

#include<stdio.h>
int main() {
	char[3];
	scanf_s("%c", &S);
	int i, pay;
	i = 0;
	pay = 700;
	do {
		if (S[i] == 'o') {
			pay += 100;
		}
		i++;
	} while (i < 2);
	printf("%d\n", pay);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:3:13: error: expected identifier or '(' before '[' token
    3 |         char[3];
      |             ^
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%c", &S);
      |         ^~~~~~~
      |         scanf
main.c:4:24: error: 'S' undeclared (first use in this function)
    4 |         scanf_s("%c", &S);
      |                        ^
main.c:4:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
  char S[3];
  scanf("%c",&S);
  int i,pay;
  pay = 700;
  do {
    if (S[i] = 'o'){
      pay += 100;
    }
    i++ ;
  }while(i < 2);
  prntf("%d",pay);
  return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |   prntf("%d",pay);
      |   ^~~~~
      |   printf
Language: C

#include<stdio.h>
int main(){
  char S[3];
  scanf("%c",&S);
  int i,pay;
  pay = 700;
  do {
    if (S[i] = 'o'){
      pay += 100;
      i ++;
    }
  }while(i < 2);
  prntf("%d",pay);
  return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |   prntf("%d",pay);
      |   ^~~~~
      |   printf
Language: C

#include<stdio.h>
int main(){
  char S[3];
  scanf("%c",&S);
  int i,pay;
  pay = 700
  do {
    if (S[i] = 'o'){
      pay += 100;
      i ++;
    }
  }while(i < 2);
  prntf("%d",pay);
  return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: expected ';' before 'do'
    6 |   pay = 700
      |            ^
      |            ;
    7 |   do {
      |   ~~        
main.c:13:3: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |   prntf("%d",pay);
      |   ^~~~~
      |   printf
Language: C++

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

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

}


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;
      |          ^
a.cc:9:16: error: overloaded function with no contextual type information
    9 |       count += 1;
      |                ^
a.cc:12:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator*'
   12 |   cout << count*100+700;
      |           ~~~~~^~~~
Language: C++

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

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

}


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:7:8: error: 's' was not declared in this scope
    7 |     if(s[i]=="o"){
      |        ^
a.cc:8:16: error: overloaded function with no contextual type information
    8 |       count += 1;
      |                ^
a.cc:11:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator*'
   11 |   cout << count*100+700;
      |           ~~~~~^~~~
Language: C++

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

int main() {
  int ans = 700;
 for(int i=0; i<3; i++;){
   char x;
   cin >> x;
   if(x == 'o')
     ans += 100;
 }
  cout << ans; 
}


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

#include <string>
#include <iostream>
using namespace std;
int main(){
string s;
cin>>s;
if(s[0]==o){t++}
if(s[1]==o){t++}
if(s[2]==o){t++}
cout<<o<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'o' was not declared in this scope
    7 | if(s[0]==o){t++}
      |          ^
a.cc:7:13: error: 't' was not declared in this scope
    7 | if(s[0]==o){t++}
      |             ^
a.cc:8:10: error: 'o' was not declared in this scope
    8 | if(s[1]==o){t++}
      |          ^
a.cc:8:13: error: 't' was not declared in this scope
    8 | if(s[1]==o){t++}
      |             ^
a.cc:9:10: error: 'o' was not declared in this scope
    9 | if(s[2]==o){t++}
      |          ^
a.cc:9:13: error: 't' was not declared in this scope
    9 | if(s[2]==o){t++}
      |             ^
a.cc:10:7: error: 'o' was not declared in this scope
   10 | cout<<o<<endl;
      |       ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string s;
    int x = 0;
    cin>>s;
    for(int = 0; i<3; i++){
        if(s[i] == 'o'){
            x++;
        }
    }
    cout<< 700 + 100*x <<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  strin s;
  cin>>s;
  int counter=0;
  if (s[0] == 'o') counter++;
  if (s[1] == 'o') counter++;
  if (s[2] == 'o') counter++;
  cout<<500+100*counter<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
    5 |   strin s;
      |   ^~~~~
      |   stdin
a.cc:6:8: 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 t = 0;
                for(int i = 0; i < 3; i++){
                    if(S.at(i) == o){
                        t = t + 100;
                    }else{}
                }
                    cout << 700 + t << endl;
    return 0;}

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

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

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

#include<iostream>
using namespace std;
int main(){
  	int x=700;
  	string s;
  	cin >> s;
  	for(i=0;i<s.size();i++){
    	if(s[i]=='o'){
        	x+=100;
        }
    }
  	cout << x << endl;
	return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main() {
	int a = 700;
	string s;
	cin >> s;
	char a = s[1];
	char b = s[2];
	char c = s[3];
	if (a == 'o') {
		a = a + 100;
	}
	if (b == 'o') {
		a = a + 100;
	}
	if (c == 'o') {
		a = a + 100;
	}
	cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: conflicting declaration 'char a'
    8 |         char a = s[1];
      |              ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a = 700;
      |             ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
	int a = 700;
	string s;
	char a = s[1];
	char b = s[2];
	char c = s[3];
	if (a == 'o') {
		a = a + 100;
	}
	if (b == 'o') {
		a = a + 100;
	}
	if (c == 'o') {
		a = a + 100;
	}
	cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: conflicting declaration 'char a'
    7 |         char a = s[1];
      |              ^
a.cc:5:13: note: previous declaration as 'int a'
    5 |         int a = 700;
      |             ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String t = sc.nextInt();
    if(t=="xxx"){
      System.out.print(700);
    }else if(t=="oxx"||t=="xox"||t=="xxo"){
      System.out.print(800);
    }else if(t=="oox"||t=="oxo"||t=="xoo"){
      System.out.print(900);
    }else{
      System.out.print(1000);
    }
  }
  

  
}


Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
    String t = sc.nextInt();
                         ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String t = sc.nextInt();
    if(t=="xxx"){
      System.out.print(700);
    }else if(t=="oxx"||t=="xox"||t=="xxo"){
      System.out.print(800);
    }else if(t=="oox"{{t=="oxo"||t=="xoo"){
      System.out.print(900);
    }else{
      System.out.print(1000);
    }
  }
  

  
}

Compiler output:
Main.java:10: error: ')' expected
    }else if(t=="oox"{{t=="oxo"||t=="xoo"){
                     ^
Main.java:10: error: not a statement
    }else if(t=="oox"{{t=="oxo"||t=="xoo"){
                               ^
Main.java:10: error: ';' expected
    }else if(t=="oox"{{t=="oxo"||t=="xoo"){
                                         ^
Main.java:12: error: 'else' without 'if'
    }else{
     ^
Main.java:19: error: reached end of file while parsing
}
 ^
5 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << '\n';
#define CFYN(n) cout << ( (n) ? "YES":"NO") << '\n';
#define OUT(n) cout << (n) << '\n';
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;

int main(void)
{
    IOS
    String s; cin >> s;
    int ans = 700;
    REP(i,s.size()) {
        if(s[i] == 'o') ans += 100;
    }

    cout << ans << '\n';

    return 0;
}

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

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

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

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

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

int main () {
  
  string s;
  cin >> s;
  int Odd = 0;
  if (s[0] == 'o') Odd +=100;
  if (s[1] == 'o') Odd +=100;
  if (s[2] == 'o') Odd +=100;
  cout << Odd << endl;

  return 0;
}

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

#include<bits/stdc++.h>
#include<bits/stdc++.h>
#include<iomanip>
using namespace std;
typedef long long ll;
typedef long  l;
typedef pair<int,int> P;
#define rep(i,n) for(int i=0;i<n;i++)
#define fs first
#define sc second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
const int INF=1000000001;
const double PI=3.141592653589;


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

  return 0;

}


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

#include<iostream>
using namespace std;
int main (){
    string A;
    cin>>A;
    int ramen=700;
    string ajitama;
    string chashoo;
    string negi;
    ajitama = A.substr(0,1);
    chashoo = A.substr(1,1);
    negi = A.substr(2,1);
    if (ajitama == o){
        ramen + 100;
    }
    if(chashoo == o){
        ramen + 100;
    }
    if(negi == o){
        ramen + 100;
    }
    cout<<ramen;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: 'o' was not declared in this scope
   13 |     if (ajitama == o){
      |                    ^
a.cc:16:19: error: 'o' was not declared in this scope
   16 |     if(chashoo == o){
      |                   ^
a.cc:19:16: error: 'o' was not declared in this scope
   19 |     if(negi == o){
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before 'return'
   10 |       price += 100
      |                   ^
      |                   ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

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

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

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

int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	string s; cin >>s;
	int cur=0;
	for (auto x : s)
	if (x=='o') cur++;
	cout<<700+100*cur<<"\n";
	

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: expected '}' at end of input
   10 |         cout<<700+100*cur<<"\n";
      |                                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  int a = 0;
  for (int i = 0; i < 2; i++) {
    if (S[i] == "○") {
      a += 100;
    }
  }
  cout << 700 + a << endl;  
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  vector<char> C(3);
  for(int i=0;i<3;i++){
    cin >> C.at(i);
  } 
  int top = 0;
  for(int i=0;i<3;i++){
    if(C.at(i) == "o"){
    top++;
  }
  }
  cout << 700+top*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(C.at(i) == "o"){
      |        ~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    string s;
    cin>>s;
    if(s=="o*o")
    {
       cout<<900;
    
    else if(s="ooo")
    {
        cout<<1000;
    }
    else if(s=="x*x")
    {
        cout<<1400;
    }
    else if(s=="xxx")
    {
        cout<<700;
    }



    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else if(s="ooo")
      |     ^~~~
a.cc:8:5: note: to match this '{'
    8 |     {
      |     ^
a.cc:11:14: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"ooo"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     else if(s="ooo")
      |             ~^~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

#include<iostream>
#include<string>
int main(void){
  string s;
  std::cin >> s;
  int a=700;
  for(int i=0;i<3;++i){
  if(s[0]=='o'){a+=100;}
  }
  std::cout << a << std::endl;
return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:4: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,
                 from a.cc:1:
/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:5:15: error: 's' was not declared in this scope
    5 |   std::cin >> s;
      |               ^
Language: C++

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

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

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")cnt+=100;
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[1]=="o")cnt+=100;
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[2]=="o")cnt+=100;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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: request for member 'at' in 'S', which is of non-class type 'int'
   10 |         if(S.at[i] == 'o'){
      |              ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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: request for member 'at' in 'S', which is of non-class type 'int'
   10 |         if(S.at(i) == 'o'){
      |              ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long                                    // long long省略
#define pb push_back                                    // push_back省略
#define mp make_pair                                    // make_pair省略
#define fi first                                        // first省略
#define se second                                       // second省略
#define itn int                                         // int誤字保険
#define count cout                                      // cout誤字保険
#define vecotr vector                                   // vector誤字保険
#define ednl endl                                       // endl誤字保険
#define opt() cin.tie(0); ios::sync_with_stdio(false)   // 入出力速度改善

#define rep(i,l,r) for(ll i=(l);i<(r);i++)               // 範囲[l, r)で刻み1のfor文(順方向)
#define repp(i,l,r,k) for(ll i=(l);i<(r);i+=(k))         // 範囲[l, r)で刻みkのfor文(順方向)
#define rrep(i,l,r) for(ll i=(r-1);i>=(l);i--)           // 範囲[l, r)で刻み1のfor文(逆方向)
#define rrepp(i,l,r,k) for(ll i=(r-1);i>=(l);i-=(k))     // 範囲[l, r)で刻みkのfor文(逆方向)
#define all(x) (x).begin(), (x).end()                   // vectorのポインタ位置指定用
#define max(p,q)((p)>(q)?(p):(q))                       // max拡張
#define min(p,q)((p)<(q)?(p):(q))                       // min拡張
#define bit(n,m)(((n)>>(m))&1)                          // 変数nのm番目のbitを取り出す

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int dy[]={0, 1, 0, -1};                                 // 4方向近傍
int dx[]={1, 0, -1, 0};                                 // 4方向近傍

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

Compiler output:
a.cc: In function 'int main()':
a.cc:31:47: error: expected ';' before 'cout'
   31 |     ll cnt=0; rep(i,0,2) if(s[i] == 'o') cnt++
      |                                               ^
      |                                               ;
   32 |     cout << 700+cnt*100 << endl;
      |     ~~~~