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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: break statement not within loop or switch
   11 |       break;
      |       ^~~~~
a.cc:15:7: error: break statement not within loop or switch
   15 |       break;
      |       ^~~~~
a.cc:19:7: error: break statement not within loop or switch
   19 |       break;
      |       ^~~~~
Language: C++

#include <stdio.h>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <cmath>
#include <utility>
#include <iomanip>
#define input(x) cin >> x
#define print(x) cout << x << endl
#define rep(n) for(int i = a; i < n; i++)
#define ll long long int
using namespace std;

int main(){
    string s; int ans = 700;
    input(s);
    rep(3){
        if (s[i]=='o') ans += 100;
    }
    print(ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: 'a' was not declared in this scope
   17 | #define rep(n) for(int i = a; i < n; i++)
      |                            ^
a.cc:24:5: note: in expansion of macro 'rep'
   24 |     rep(3){
      |     ^~~
Language: C++

#include <stdio.h>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <cmath>
#include <utility>
#include <iomanip>
#define input(x) cin >> x
#define print(x) cout << x << endl
#define rep(n) for(int i = a; i < n; i++)
#define ll long long int
using namespace std;

int main(){
    string s; ll ans = 700;
    input(s);
    rep(3){
        if (s[i]=='o') ans += 100;
    }
    print(ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: 'a' was not declared in this scope
   17 | #define rep(n) for(int i = a; i < n; i++)
      |                            ^
a.cc:24:5: note: in expansion of macro 'rep'
   24 |     rep(3){
      |     ^~~
Language: C++

#include <stdio.h>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <cmath>
#include <utility>
#include <iomanip>
#define input(x) cin >> x
#define print(x) cout << x << endl
#define rep(n) for(int i = a; i < n; i++)
#define ll long long int
using namespace std;

int main(){
    string s; ll ans = 700;
    input(s);
    rep(3){
        if s[i]=='o' ans += 100;
    }
    print(ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:28: error: 'a' was not declared in this scope
   17 | #define rep(n) for(int i = a; i < n; i++)
      |                            ^
a.cc:24:5: note: in expansion of macro 'rep'
   24 |     rep(3){
      |     ^~~
a.cc:25:12: error: expected '(' before 's'
   25 |         if s[i]=='o' ans += 100;
      |            ^
      |            (
Language: C++

#include <stdio.h>
#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <cmath>
#include <utility>
#include <iomanip>
#define input(x) cin >> x
#define print(x) cout << x << endl
#define rep(n) for(int i = a; i < n; i++)
#define ll long long int
using namespace std;

int main(){
    string s; ll ans = 700
    input(s);
    rep(3){
        if s[i]=='o' ans += 100;
    }
    print(ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected ',' or ';' before 'cin'
   15 | #define input(x) cin >> x
      |                  ^~~
a.cc:23:5: note: in expansion of macro 'input'
   23 |     input(s);
      |     ^~~~~
a.cc:17:28: error: 'a' was not declared in this scope
   17 | #define rep(n) for(int i = a; i < n; i++)
      |                            ^
a.cc:24:5: note: in expansion of macro 'rep'
   24 |     rep(3){
      |     ^~~
a.cc:25:12: error: expected '(' before 's'
   25 |         if s[i]=='o' ans += 100;
      |            ^
      |            (
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
	String a = sc.next();
    int count=0;
    for (int i == 0 ; i<3 ; i++) {
      if (a.substring(i,i+1).equals("o")) {
        count++;
      }
    }
    System.out.println(700+count*100);
  }
}

Compiler output:
Main.java:11: error: ';' expected
    for (int i == 0 ; i<3 ; i++) {
              ^
Main.java:11: error: illegal start of expression
    for (int i == 0 ; i<3 ; i++) {
               ^
Main.java:11: error: not a statement
    for (int i == 0 ; i<3 ; i++) {
                       ^
Main.java:11: error: ')' expected
    for (int i == 0 ; i<3 ; i++) {
                         ^
Main.java:11: error: ';' expected
    for (int i == 0 ; i<3 ; i++) {
                               ^
5 errors
Language: C++

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

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

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

int main(){
  int count=0;
  string str;
  cin>>str;
  
  if(str[0]=="〇")
    count++;
  if(str[1]=="〇")
    count++;
  if(str[2]=="〇")
    count++;
  
  cout<<700+(100*count)<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(str[0]=="〇")
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str[1]=="〇")
a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(str[2]=="〇")
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before ':' token
   13 |         cout << output + counter:100  << endl;
      |                                 ^
      |                                 ;
Language: C++

#include<bits/stdc++.h>
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++;
    }
    cout << 700+cnt*100 << endl;
}


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

#include <cstdio>
#include <cstring>
char a[4];int res=700;
int main()
{
    scanf("%s",a); // 注意这里不需要 &a
    for (register int i=0;i<strlen(a);++i)
        if (a[i]=='o')
            res += 100; // 判断 'o' 
    printg("%d\n",res); // 输出结果，记得要换行
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    7 |     for (register int i=0;i<strlen(a);++i)
      |                       ^
a.cc:10:5: error: 'printg' was not declared in this scope; did you mean 'printf'?
   10 |     printg("%d\n",res); // 输出结果，记得要换行
      |     ^~~~~~
      |     printf
a.cc:11:14: error: expected '}' at end of input
   11 |     return 0;
      |              ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main() {
  int 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:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(S[0]=='o')ans+=100;
      |       ^
a.cc:9:7: error: invalid types 'int[int]' for array subscript
    9 |   if(S[1]=='o')ans+=100;
      |       ^
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(S[2]=='o')ans+=100;
      |       ^
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: In function 'int main()':
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.at(0)="o"){
      |              ^~~
      |              |
      |              const char*
a.cc:14:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   14 |   if(S.at(1)="o"){
      |              ^~~
      |              |
      |              const char*
a.cc:20:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   20 |   if(S.at(2)="o"){
      |              ^~~
      |              |
      |              const char*
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: In function 'int main()':
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(S.at(0)=="o"){
      |      ~~~~~~~^~~~~
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(S.at(1)=="o"){
      |      ~~~~~~~^~~~~
a.cc:20:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   if(S.at(2)=="o"){
      |      ~~~~~~~^~~~~
Language: C

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

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

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String S = sc.next();
    String[] S =new String[3];
    int y=700;
    for(string s = 0; s<S.length; s++){
      if(s[0]=='o') y+=100;
      if(s[1]=='o') y+=100;
      if(s[2]=='o') y+=100;
      System.out.println(700+100*input().count('o'));
    }
  }
}


Compiler output:
Main.java:6: error: variable S is already defined in method main(String[])
    String[] S =new String[3];
             ^
Main.java:8: error: cannot find symbol
    for(string s = 0; s<S.length; s++){
        ^
  symbol:   class string
  location: class Main
Main.java:12: error: cannot find symbol
      System.out.println(700+100*input().count('o'));
                                 ^
  symbol:   method input()
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String S = sc.next();
    String[] s =new String[3];
    int y=700;
    for(string s = 0; s<S.length; s++){
      if(S[0]=='o') y+=100;
      if(S[1]=='o') y+=100;
      if(S[2]=='o') y+=100;
      System.out.println(700+100*input().count('o'));
    }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    for(string s = 0; s<S.length; s++){
        ^
  symbol:   class string
  location: class Main
Main.java:8: error: variable s is already defined in method main(String[])
    for(string s = 0; s<S.length; s++){
               ^
Main.java:8: error: cannot find symbol
    for(string s = 0; s<S.length; s++){
                         ^
  symbol:   variable length
  location: variable S of type String
Main.java:9: error: array required, but String found
      if(S[0]=='o') y+=100;
          ^
Main.java:10: error: array required, but String found
      if(S[1]=='o') y+=100;
          ^
Main.java:11: error: array required, but String found
      if(S[2]=='o') y+=100;
          ^
Main.java:12: error: cannot find symbol
      System.out.println(700+100*input().count('o'));
                                 ^
  symbol:   method input()
  location: class Main
7 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    String S = sc.next();
    String[] s =new String[3];
    int y=700;
    for(string s = 0; s<S.length; s++){
      if(S[0]=='o') y+=100;
      if(S[1]=='o') y+=100;
      if(S[2]=='o') y+=100;
      System.out.println(700+100*input().count('o'));
    }
  }

Compiler output:
Main.java:14: error: reached end of file while parsing
  }
   ^
1 error
Language: C++

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

int main() {
  // ここにプログラムを追記
  string S;
  int x=7;
  cin>> S;
  if(S.at(0)==○) x++;
  if(S.at(1)=='○') x++;
  if(S.at(2)=='○') x++;
  cout<<x*100<<endl;
 
}


Compiler output:
a.cc:9:15: error: extended character ○ is not valid in an identifier
    9 |   if(S.at(0)==○) x++;
      |               ^
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |   if(S.at(1)=='○') x++;
      |               ^~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |   if(S.at(2)=='○') x++;
      |               ^~~
a.cc: In function 'int main()':
a.cc:9:15: error: '\U000025cb' was not declared in this scope
    9 |   if(S.at(0)==○) x++;
      |               ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
int main() {
  std::string topping;
  std::cin >> topping;
  int total_price = 700;
  int n_topping = std::count(topping.begin(), topping.end(), 'o');
  total_price += 100 * n_topping;
  std:cout << total_price;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   std:cout << total_price;
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
int main() {
  std::string topping;
  std::cin >> topping;
  int total_price = 700;
  int n_topping = std::count(S.begin(), S.end(), 'o');
  total_price += 100 * n_topping;
  std:cout << total_price;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: 'S' was not declared in this scope
    8 |   int n_topping = std::count(S.begin(), S.end(), 'o');
      |                              ^
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   std:cout << total_price;
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'o' was not declared in this scope
   11 |     rep(i,3) if(s[i] == o) m += 100;
      |                         ^
Language: C++

#include<iostream>
#include<string>
#include<math.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+count*100;

return 0;
}

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (S == "o") {
      |         ~~^~~~~~
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:15: error: 'o' was not declared in this scope
    8 |   if (S[0] == o) price += 100;
      |               ^
a.cc:9:15: error: 'o' was not declared in this scope
    9 |   if (S[1] == o) price += 100;
      |               ^
a.cc:10:15: error: 'o' was not declared in this scope
   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;
       return 0;
       }
       

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ']' before '}' token
    9 |   if(s[2}=='o') price+=100;
      |         ^
      |         ]
a.cc:9:9: error: expected ')' before '}' token
    9 |   if(s[2}=='o') price+=100;
      |     ~   ^
      |         )
a.cc:9:9: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:9:10: error: expected unqualified-id before '==' token
    9 |   if(s[2}=='o') price+=100;
      |          ^~
a.cc:10:8: error: 'cout' does not name a type
   10 |        cout << price << endl;
      |        ^~~~
a.cc:11:8: error: expected unqualified-id before 'return'
   11 |        return 0;
      |        ^~~~~~
a.cc:12:8: error: expected declaration before '}' token
   12 |        }
      |        ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  int result = 700;
  if (s.at(0) == "o") result += 100;
  if (s.at(1) == "o") result += 100;
  if (s.at(2) == "o") result += 100;
  cout << result << 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(0) == "o") result += 100;
      |       ~~~~~~~~^~~~~~
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if (s.at(1) == "o") result += 100;
      |       ~~~~~~~~^~~~~~
a.cc:10:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s.at(2) == "o") result += 100;
      |       ~~~~~~~~^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'zize'; did you mean 'size'?
    9 |     if(s.zize[i]=='x'){
      |          ^~~~
      |          size
Language: C++

int main(){
  int price=700;
  for(int i=0; i<3; i++){
    char ch=getchar();
    if(ch=='o') price += 100;
  }
  std::cout << price << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'getchar' was not declared in this scope
    4 |     char ch=getchar();
      |             ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:7:8: error: 'cout' is not a member of 'std'
    7 |   std::cout << price << std::endl;
      |        ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:7:30: error: 'endl' is not a member of 'std'
    7 |   std::cout << price << std::endl;
      |                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C++

#include<vector>
#include<string>
#include<iostream>
using namespace std;
int main()
{
  string s, k = 0;
  cin >> s;
  if(s[0] == 'o')
    k++;
  else if(s[1] == 'o')
    k++;
  else if(s[2] == 'o')
    k++;
  cout << 700 + 100 * k;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   10 |     k++;
      |     ~^~
a.cc:12:6: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   12 |     k++;
      |     ~^~
a.cc:14:6: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   14 |     k++;
      |     ~^~
a.cc:15:21: error: no match for 'operator*' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   15 |   cout << 700 + 100 * k;
      |                 ~~~ ^ ~
      |                 |     |
      |                 int   std::string {aka std::__cxx11::basic_string<char>}
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:10:15: 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 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:10:10: 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 answer =700;
  for(int i=0;i<3;i++){
    if(S.size(i)=="o"){
      answer+=100;
    }
  }
  cout<<answer<<endl;
}

   
  
 


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: request for member 'size' in 'S', which is of non-class type 'int'
   10 |     if(S.size(i)=="o"){
      |          ^~~~
Language: C++

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

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

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

int main(){
  int 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:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(S[0]=="o") answer+=100;
      |       ^
a.cc:9:7: error: invalid types 'int[int]' for array subscript
    9 |   if(S[1]=="o") answer+=100;
      |       ^
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(S[2]=="o") answer+=100;
      |       ^
Language: C++

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

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



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'string' was not declared in this scope
    5 |  string s ;
      |  ^~~~~~
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  cin >> s ;
      |  ^~~
a.cc:6:9: error: 's' was not declared in this scope
    6 |  cin >> s ;
      |         ^
a.cc:11:2: error: 'cout' was not declared in this scope
   11 |  cout << counter << endl;
      |  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |  cout << counter << endl;
      |                     ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

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


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

#include<iostream>

using namespace std;

int main()
{
  char s[5];
  
  int ans=700;
  
  if(s[0]=="o")
  {
    ans+=100;
  }
  
  if(s[1]=="o")
  {
    ans+=100;
  }
  
  if(s[2]=="o")
  {
    ans+=100;
  }
  
  cout<<ans<<endl;
  
  return 0;
}


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

#include<iostream>

using namespace std;

int main()
{
  char[5] 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;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected identifier before numeric constant
    7 |   char[5] s;
      |        ^
a.cc:7:8: error: expected ']' before numeric constant
    7 |   char[5] s;
      |        ^
      |        ]
a.cc:7:7: error: structured binding declaration cannot have type 'char'
    7 |   char[5] s;
      |       ^
a.cc:7:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:7: error: empty structured binding declaration
a.cc:7:11: error: expected initializer before 's'
    7 |   char[5] s;
      |           ^
a.cc:11:6: error: 's' was not declared in this scope
   11 |   if(s[0]=="o")
      |      ^
a.cc:16:6: error: 's' was not declared in this scope
   16 |   if(s[1]=="o")
      |      ^
a.cc:21:6: error: 's' was not declared in this scope
   21 |   if(s[2]=="o")
      |      ^
Language: C++

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

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

    int tuikaryoukin = 0;

    for(int i=0; i<3; i++) {

        if(s.at(i) == 'o')
        tuikaryoukin++

    }

    tuikaryoukin *= 100;

    cout << 700 + tuikaryoukin << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before '}' token
   13 |         tuikaryoukin++
      |                       ^
      |                       ;
   14 | 
   15 |     }
      |     ~
Language: C++

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

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


Compiler output:
a.cc:3:1: error: 'typrdef' does not name a type; did you mean 'typedef'?
    3 | typrdef long long ll;
      | ^~~~~~~
      | typedef
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'i' was not declared in this scope
   10 |   for(i=0;i<2;i++){
      |       ^
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;
}


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



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

Compiler output:
a.cc:7:14: warning: multi-character character constant [-Wmultichar]
    7 |   if(s.at(1)='○') count++;
      |              ^~~
a.cc:8:14: warning: multi-character character constant [-Wmultichar]
    8 |   if(s.at(2)='○') count++;
      |              ^~~
a.cc:9:14: warning: multi-character character constant [-Wmultichar]
    9 |   if(s.at(0)='○') count++;
      |              ^~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string s;
      | ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> s;
      |   ^~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   10 |   cout << 700+(100*count) ;
      |   ^~~~
      |   count
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    string S;
    int count=S.count(S.cbegin(),S.cend(),'o');
    cout<<(700+count*100)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'count'
    5 |     int count=S.count(S.cbegin(),S.cend(),'o');
      |                 ^~~~~
Language: C++

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

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

#include <bits/stdc++.h>
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+counter*100<<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") ++counter;
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s[1]=="o") ++counter;
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if(s[2]=="o") ++counter;
Language: C++

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

	string a;
  	cin >> a;
  	int counter=0;
  	if(a[0]=="○")counter++;
  	if(a[1]=="○")counter++;
  	if(a[2]=="○")counter++;
  cout << 700+counter*100 << endl;
  
}

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

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

	string s;
  	cin >> s;
  	int counter=0;
  	if(s[0]=="○")counter++;
  	if(s[1]=="○")counter++;
  	if(s[2]=="○")counter++;
  cout << 700+counter*100 << endl;
  
}

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

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

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


Compiler output:
a.cc:11:25: error: extended character 　 is not valid in an identifier
   11 |     if(str.at(i) == 'o')　cnt++;
      |                         ^
a.cc: In function 'int main()':
a.cc:11:25: error: '\U00003000cnt' was not declared in this scope
   11 |     if(str.at(i) == 'o')　cnt++;
      |                         ^~~~~
Language: C++

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

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


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

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

int main(){
  int r=700;
  string s;
  cin >> s;
  if(s.at(0)=="o") r+=100;
  if(s.at(1)=="o") r+=100;
  if(s.at(2)=="o") r+=100;
  
  cout << r << 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.at(0)=="o") r+=100;
      |      ~~~~~~~^~~~~
a.cc:10:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s.at(1)=="o") r+=100;
      |      ~~~~~~~^~~~~
a.cc:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(s.at(2)=="o") r+=100;
      |      ~~~~~~~^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if (s[0]=='o') a+=100;
      |   ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if (s[0]=='o') ++a;
      |   ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'if'
   11 |     if (s[0]='o') {
      |     ^~
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if (s[1]='o') {
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'if'
   11 |     if (s[0]='o') {
      |     ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if (topping[i] == "o") ramen += 100;
Language: C++

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

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

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

#include <iostream>
#include <string>

using namespace std;

void main() {
	string s;
	cin >> s;
	int value = 700;
	if (s[1] == 'o') {
		value = value + 100;
	}
	if (s[2] == 'o') {
		value = value + 100;
	}
	if (s[3] == 'o') {
		value = value + 100;
	}
	cout << value;
}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if (s[1] == "o") {
a.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |         if (s[2] == "o") {
a.cc:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if (s[3] == "o") {
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (s[1] == "o") {
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if (s[2] == "o") {
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if (s[3] == "o") {
Language: C

#include <stdio.h>
int main(){
  
  char S;
  int i = 0;
  int N = 0;
  
  scanf("%s", &S);
  
  if (S[0] == 'o')
    ++i;
  if (S[1] == 'o')
    ++i;
  if (S[2] == 'o')
    ++i;
  N = 100*i + 700;
  
  printf("%d", &N);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: subscripted value is neither array nor pointer nor vector
   10 |   if (S[0] == 'o')
      |        ^
main.c:12:8: error: subscripted value is neither array nor pointer nor vector
   12 |   if (S[1] == 'o')
      |        ^
main.c:14:8: error: subscripted value is neither array nor pointer nor vector
   14 |   if (S[2] == 'o')
      |        ^
Language: C

#include <stdio.h>
int main(){
  
  char S[];
  int i = 0;
  int N = 0;
  
  scanf("%s", &S);
  
  if (S[0] == 'o')
    ++i;
  if (S[1] == 'o')
    ++i;
  if (S[2] == 'o')
    ++i;
  N = 100*i + 700;
  
  printf("%d", &N);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: array size missing in 'S'
    4 |   char S[];
      |        ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  
  string S;
  int i = 0;
  int N = 0;
  
  scanf("%s", &S);
  
  if (S[0] == 'o')
    ++i;
  if (S[1] == 'o')
    ++i;
  if (S[2] == 'o')
    ++i;
  N = 100*i + 700;
  
  printf("%d", &N);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'string'; did you mean 'stdin'?
    5 |   string S;
      |   ^~~~~~
      |   stdin
main.c:11:8: error: subscripted value is neither array nor pointer nor vector
   11 |   if (S[0] == 'o')
      |        ^
main.c:13:8: error: subscripted value is neither array nor pointer nor vector
   13 |   if (S[1] == 'o')
      |        ^
main.c:15:8: error: subscripted value is neither array nor pointer nor vector
   15 |   if (S[2] == 'o')
      |        ^
Language: C

#include <stdio.h>
#include <string.h>
int main(){
  
  string S;
  int i = 0;
  int N = 0;
  
  scanf("%s", &S);
  
  if (S[0] == 'o')
    ++i;
  if (S[1] == 'o')
    ++i;
  if (S[2] == 'o')
    ++i;
  N = (7+i)* 100;
  
  printf("%d", &N);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'string'; did you mean 'stdin'?
    5 |   string S;
      |   ^~~~~~
      |   stdin
main.c:11:8: error: subscripted value is neither array nor pointer nor vector
   11 |   if (S[0] == 'o')
      |        ^
main.c:13:8: error: subscripted value is neither array nor pointer nor vector
   13 |   if (S[1] == 'o')
      |        ^
main.c:15:8: error: subscripted value is neither array nor pointer nor vector
   15 |   if (S[2] == 'o')
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'lend' was not declared in this scope
   15 |   cout<<base<<lend;
      |               ^~~~
a.cc:15:20: error: expected '}' at end of input
   15 |   cout<<base<<lend;
      |                    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (S[0]=="o"){base=base+100;}
a.cc:12:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if (S[1]=="o"){base=base+100;}
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (S[2]=="o"){base=base+100;}
a.cc:15:15: error: 'lend' was not declared in this scope
   15 |   cout<<base<<lend;
      |               ^~~~
a.cc:15:20: error: expected '}' at end of input
   15 |   cout<<base<<lend;
      |                    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |   if (S[0]="o"){base=base+100;}
      |            ^~~
      |            |
      |            const char*
a.cc:12:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   12 |   if (S[1]="o"){base=base+100;}
      |            ^~~
      |            |
      |            const char*
a.cc:13:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |   if (S[2]="o"){base=base+100;}
      |            ^~~
      |            |
      |            const char*
a.cc:15:15: error: 'lend' was not declared in this scope
   15 |   cout<<base<<lend;
      |               ^~~~
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
    System.out.pritnln(700 + 100 * out);
              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

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

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