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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #indlude; did you mean #include?
    2 | #indlude <string>
      |  ^~~~~~~
      |  include
a.cc:9:14: warning: multi-character character constant [-Wmultichar]
    9 |   if (s[0] =='○')
      |              ^~~
a.cc:11:14: warning: multi-character character constant [-Wmultichar]
   11 |   if (s[1] =='○')
      |              ^~~
a.cc:13:14: warning: multi-character character constant [-Wmultichar]
   13 |   if(s[2] == '○')
      |              ^~~
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();
      char c[]=s.toCharArray;
      int n = 700;
for(int i=0;i<=2;i++){
if(c[i]=='o'){
n+=100;
}
}
      
System.out.println(n);
	}}


Compiler output:
Main.java:8: error: cannot find symbol
      char c[]=s.toCharArray;
                ^
  symbol:   variable toCharArray
  location: variable s of type String
1 error
Language: C++

import java.util.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(scanner.next().replace("x", "o").length() * 100 + 700);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  int count;
  for (int i = 0; i < 3; i++) {
    if (S[i] == "x") count++;
  }
  cout << 700 + count * 100 << 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] == "x") count++;
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string s;
      | ^~~~~~
a.cc:3:1: 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:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>s;
      | ^~~
      | std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:6: error: 's' was not declared in this scope
    4 | cin>>s;
      |      ^
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<700+cnt*100<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<700+cnt*100<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++



#include <iostream>
#include <string>
#include <cmath>
#include <sstream>
#include <iomanip>

using namespace std;

int main(int argc, char* argv[])
{

	string S;
	int sum = 700;

	cin >> S;

	for(int i=0;i<S.length();i++){
		if(S[i]=='o') sum+=100
	}

	cout << sum << endl;

	return 0;

}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:20:39: error: expected ';' before '}' token
   20 |                 if(S[i]=='o') sum+=100
      |                                       ^
      |                                       ;
   21 |         }
      |         ~
Language: C++

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

int main(void)
{

  string s;
  cin>>s;

  int stellanumber=0;
  typedf stellanumber ste;
  if(s[0]=='o')
    ste++;
  else if(s[1]=='o')
    ste++;
  else if(s[2]=='o')
    ste++;
  cout<<100*ste+700;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'typedf' was not declared in this scope; did you mean 'typeof'?
   11 |   typedf stellanumber ste;
      |   ^~~~~~
      |   typeof
a.cc:13:5: error: 'ste' was not declared in this scope; did you mean 'std'?
   13 |     ste++;
      |     ^~~
      |     std
a.cc:15:5: error: 'ste' was not declared in this scope; did you mean 'std'?
   15 |     ste++;
      |     ^~~
      |     std
a.cc:17:5: error: 'ste' was not declared in this scope; did you mean 'std'?
   17 |     ste++;
      |     ^~~
      |     std
a.cc:18:13: error: 'ste' was not declared in this scope; did you mean 'std'?
   18 |   cout<<100*ste+700;
      |             ^~~
      |             std
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before ':' token
   10 |       x++:
      |          ^
      |          ;
Language: Java

public class Main{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String order = s.nextLine();
    int cost = 700;
    for(int i = 0; i < 3 ; i++)
      if(order.charAt(i) == 'o')cost += 100;
    System.out.printf("%d",cost);
  }
}

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

public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String order = s.nextLine();
    int cost = 700;
    for(int i = 0; i < 3 ; i++)
      if(order.charAt(i) == 'o')cost += 100;
    System.out.printf("%d",cost);
  }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.*;
public class ASomething{
  public static void main(String[] args) {
    Scanner s = new Scanner(System.in);
    String order = s.nextLine();
    int cost = 700;
    for(int i = 0; i < 3 ; i++)
      if(order.charAt(i) == 'o')cost += 100;
    System.out.printf("%d",cost);
  }
}


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

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

    

Compiler output:
a.cc:9:17: warning: multi-character character constant [-Wmultichar]
    9 |     if(S.at(i)=='○'){
      |                 ^~~
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before ')' token
    8 |   for(int i=0;i<S.size(),i++){
      |                             ^
      |                             ;
Language: C++

#include <iostream>
using namespace std;

int main(){
int s = 0;
    char a;
    for (int i=0;i<3;i++){
            cin >> a;

        if (a == 'o') {
            s++;
         }
    }
cout << int( 700 + 100*s) << endl;
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected '}' at end of input
   15 | return 0;
      |          ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

#include <iostream>
using namespace std;

main(){
	string s;
	cin >> s;
	int counter =0;
	if(s[0]) == 'o' ++counter;
	if(s[1]) == 'o' ++counter;
	if(s[2]) == 'o' ++counter;

 	cout << 700 + (100 * counter ) << endl;
	}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:18: error: expected primary-expression before '==' token
    8 |         if(s[0]) == 'o' ++counter;
      |                  ^~
a.cc:8:21: error: lvalue required as increment operand
    8 |         if(s[0]) == 'o' ++counter;
      |                     ^~~
a.cc:9:18: error: expected primary-expression before '==' token
    9 |         if(s[1]) == 'o' ++counter;
      |                  ^~
a.cc:9:21: error: lvalue required as increment operand
    9 |         if(s[1]) == 'o' ++counter;
      |                     ^~~
a.cc:10:18: error: expected primary-expression before '==' token
   10 |         if(s[2]) == 'o' ++counter;
      |                  ^~
a.cc:10:21: error: lvalue required as increment operand
   10 |         if(s[2]) == 'o' ++counter;
      |                     ^~~
Language: C++

#include <iostream>
#include <string.h>
#include <math.h>
using namespace std;

int main(){
    char s[4];
    cin>>s;
    int nedan = 700;
    for(i=0; i<3; i++){
        if(s[i]=='o'){
            nedan += 100;
        }
    }

    cout<<nedan<<endl;
    return 0;
}

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

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

int main(){
  int ans = 700;
  srting s;
  cin >> s;
  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:6:3: error: 'srting' was not declared in this scope
    6 |   srting s;
      |   ^~~~~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C++

#include<bits/stdc++.h>

int main(){
  string s;
  cin >> s;
  
  int price = 700;
  for (int i = 0; i < 3; i++){
    if(s.at(i) == 'o'){
      price += 100;
    }
  }
  
  cout << price << 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/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s;
      |          ^
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << price << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << price << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

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


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

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

Compiler output:
a.cc:11:3: error: extended character 　 is not valid in an identifier
   11 |   　if(s[i] == 'o')sum++;
      |   ^
a.cc: In function 'int main()':
a.cc:11:3: error: '\U00003000if' was not declared in this scope
   11 |   　if(s[i] == 'o')sum++;
      |   ^~~~
Language: C

#include<stdio.h>

int main(){
  char str[4];
  int ans = 700;
  int i;
  scanf("%s", &str);
  for(i = 0; i < 3; i++){
    if(str[i] == 'o'){
      ans += 100;
    }
  }
  printf("%d", ans)
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected ';' before '}' token
   13 |   printf("%d", ans)
      |                    ^
      |                    ;
   14 | }
      | ~
Language: C

int main(){
  char str[4];
  int ans = 700;
  int i;
  scanf("%s", &str);
  for(i = 0; i < 3; i++;){
    if(str[i] == 'o'){
      ans += 100;
    }
  }
  printf("%d", ans)
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%s", &str);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%s", &str);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:24: error: expected ')' before ';' token
    6 |   for(i = 0; i < 3; i++;){
      |      ~                 ^
      |                        )
main.c:11:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |   printf("%d", ans)
      |   ^~~~~~
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:20: error: expected ';' before '}' token
   11 |   printf("%d", ans)
      |                    ^
      |                    ;
   12 | }
      | ~
Language: Java

public class Main {

	public static void main(String[] args) {
		int total = 700;

		Scanner scanner = new Scanner(System.in);

		String string = scanner.next();
		string = string.replaceAll("x", "");

		total = 700 + 100*string.length();

		System.out.println(total);

		scanner.close();

	}

}


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

#include<iostream>
using namespace std;
int main(){
  char a,b,c;
  int ans==700;
  cin>>a>>b>>c;
  if(a=='o')ans+=100;
  if(b=='o')ans+=100;
  if(c=='o')ans+=100;
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected initializer before '==' token
    5 |   int ans==700;
      |          ^~
a.cc:7:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(a=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:8:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(b=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:9:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(c=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

#include<iostream>
using namespace std;
int main(){
  char a,b,c;
  int ans==700
  cin>>a>>b>>c;
  if(a=='o')ans+=100;
  if(b=='o')ans+=100;
  if(c=='o')ans+=100;
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected initializer before '==' token
    5 |   int ans==700
      |          ^~
a.cc:7:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(a=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:8:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(b=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:9:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(c=='o')ans+=100;
      |             ^~~
      |             abs
a.cc:10:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   cout<<ans;
      |         ^~~
      |         abs
Language: C++

#include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<iostream>
#include<queue>
#include<vector>
#include <bitset>
using namespace std;
#define MAX 1000000007
typedef long long ll;

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


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

#include <cstdio>  
using namespace std;  
int main() { 	
	char a,b,c,d=700,e; 	
	scanf("%c%c%c", &a, &b, &c);
	if(a=='o'){
		d+=100;
	}
	if(b=='o'){
		d+=100;
	}
	if(c=='o'){
		d+=100;
	}
	printf("%c", o);

}






Compiler output:
a.cc: In function 'int main()':
a.cc:4:22: warning: overflow in conversion from 'int' to 'char' changes value from '700' to '-68' [-Woverflow]
    4 |         char a,b,c,d=700,e;
      |                      ^~~
a.cc:15:22: error: 'o' was not declared in this scope
   15 |         printf("%c", o);
      |                      ^
Language: C++

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

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

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

#include <iostream>
using namespace std;
#include <string>
 
int main() {
	string S;
	sin >> S;
	
	int sum = 700;
	
   //冗長だが
	if(S[0]=='o') sum+= 100;
	if(S[1]=='o') sum+=100;
	if(S[2]=='o') sum+=100;
	
	cout << sum;
	
	cout << endl;
	
	return 0;
}
#include <iostream>
using namespace std;
#include <string>

int main() {
	string S;
	cin >> S;
	
	int sum = 700;
	
   //冗長だが
	if(S[0]=='o') sum+= 100;
	if(S[1]=='o') sum+=100;
	if(S[2]=='o') sum+=100;
	
	cout << sum;
	
	cout << endl;
	
	return 0;
}
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'sin' was not declared in this scope
    7 |         sin >> S;
      |         ^~~
a.cc: At global scope:
a.cc:26:5: error: redefinition of 'int main()'
   26 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
a.cc:43:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   43 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main() {
	string S;
	sin >> S;
	
	int sum = 700;
	
   //冗長だが
	if(S[0]=='o') sum+= 100;
	if(S[1]=='o') sum+=100;
	if(S[2]=='o') sum+=100;
	
	cout << sum;
	
	cout << endl;
	
	return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'o' was not declared in this scope
   10 |   if (A[i]==o) {
      |             ^
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[i]=='o')
      t+=100
  }
  cout <<700+t <<endl;
}

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

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

int main(){
  vector<char> S(3);
  for(int i=0;i<3;i++)
    cin >>i.at(i);
  int t=0;
  for(int i=0;i<3;i++){
    if(S.at(i)=='o')
      t+=100;
  }
  cout <<700+t <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: request for member 'at' in 'i', which is of non-class type 'int'
    7 |     cin >>i.at(i);
      |             ^~
Language: C++

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

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

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

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

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


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

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

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

}
  
    
    
       
      
      


Compiler output:
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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


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

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


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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string S;
      |         ^~~~~~
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> S;
      |     ^~~
a.cc:3:12: error: 'S' was not declared in this scope
    3 |     cin >> S;
      |            ^
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << 700+100*k;
      |         ^~~~
Language: C++

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

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

import java.util.Scanner;
import java.io.*;

public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a && 2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)ap =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}



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

import java.util.Scanner;
import java.io.*;
public class At95 {
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int a = Integer.parseInt(sc.next()); //Aの値段
		int b = Integer.parseInt(sc.next()); //Bの値段
		int c = Integer.parseInt(sc.next()); //ABの値段
		int d = Integer.parseInt(sc.next()); //Aの枚数
		int e = Integer.parseInt(sc.next()); //Bの枚数
		int ap =0;							//A買う枚数
		int bp =0;							//B買う枚数
		int cp = 0;							//C買う枚数
		if(2*c <= a && 2*c <= b){
			if(d<=e)cp =2*e;
			if(e<d)cp =2*d;
		}else if(2*c <= a){						//A一枚がAB二枚よりも高い場合
			cp =d*2;
			if(d<e)bp =e-d;
		}else if(2*c <= b){					//B一枚がAB二枚よりも高い場合
			cp =e*2;
			if(e<d)ap =d-e;
		}else if(a+b>2*c) {					//A+BがAB二枚よりも高い場合
			if(d>=e) {
				cp=2*e;
				ap=d-e;
			}else if(d<e){
				cp=2*d;
				bp=e-d;
			}
		}else{
			ap=d;
			bp=e;
		}
		System.out.println(ap*a+bp*b+cp*c); 
	}
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[i]=="○"){
a.cc:15:24: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     count << 700+count << endl;
      |     ~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main() {
  string S;
  cin >> S
  int cnt = 0;
  for (char c : S) {
  	if (c == 'o') cnt++;
  }
  cout << 700 + 100 * cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'int'
    8 |   cin >> S
      |           ^
      |           ;
    9 |   int cnt = 0;
      |   ~~~      
a.cc:11:23: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |         if (c == 'o') cnt++;
      |                       ^~~
      |                       int
a.cc:13:23: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |   cout << 700 + 100 * cnt << endl;
      |                       ^~~
      |                       int
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         for(int i=0;i<3;++i)if(s[i]=="o")++count;
Language: C++

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

int main(){
  string s;
  int answer=700;
  cin >> s;
  
  for(int i=0; i<3; i++){
    if(s.at(i) == 'o'){
      answer += 100;
    }
  }
  
  cout << answer << 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:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> s;
      |   ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << answer << endl;
      |   ^~~~
a.cc:15:21: error: 'endl' was not declared in this scope
   15 |   cout << answer << endl;
      |                     ^~~~
Language: C++

#include <iostream>
#include <set>

int main() {
    
  std::string S;
    
  std::cin >> S;
  std::multiset<char> mset;
    
  mset.insert(S[0]);
  mset.insert(S[1]);
  mset.insert(S[2]);
    
  std::size_t n = s.count('o');
    
  int sum = 0;
  sum = 700 + n * 100;
    
  std::cout << sum << std::endl;
    
  return 0;
}   

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 's' was not declared in this scope
   15 |   std::size_t n = s.count('o');
      |                   ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next().replace("x", "");
    System.out.println(700 + 100 * s.length());
    }
  }
}

Compiler output:
Main.java:9: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <iostream>
using namespace std;

int main(void){
  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;
  return 0;
}

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

#include <iostream>
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;
  return 0;
}

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

#include <iostream>
use 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;
  return 0;
}

Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'String' was not declared in this scope
    5 |   String S;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> S;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cost' was not declared in this scope; did you mean 'const'?
    8 |         cost = 700;
      |         ^~~~
      |         const
a.cc:9:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (s[0] == "o") cost = cost + 100;
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if (s[1] == "o") cost = cost + 100;
a.cc:11:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (s[2] == "o") cost = cost + 100;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected primary-expression before '<' token
   12 |     cout<<<cost<<endl;
      |           ^
a.cc:12:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   12 |     cout<<<cost<<endl;
      |            ~~~~^~~~~~
Language: C++

#include <iostream>
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+100*cnt)<<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[0]=="o") ++cnt;
      |      ^
a.cc:10:6: error: 's' was not declared in this scope
   10 |   if(s[1]=="o") ++cnt;
      |      ^
a.cc:11:6: error: 's' was not declared in this scope
   11 |   if(s[2]=="o") ++cnt;
      |      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: expected primary-expression before ')' token
   13 |     for(int i = 0;i<3;++){if(s[i] == 'o'){count++;}}
      |                         ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before ')' token
   13 |     for(int i = 0;i<3<i++){if(s[i] == 'o'){count++;}}
      |                          ^
      |                          ;
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int cnt = 700;
		String S = sc.next();
    
      	for(int i=0;i<3;i++){
        	if(S.charAt(i)=='o')cnt += 100:;
        }
      	System.out.println(cnt);
      
      	
    }
}

Compiler output:
Main.java:10: error: ';' expected
        	if(S.charAt(i)=='o')cnt += 100:;
        	                              ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int cnt = 700;
		String S = sc.next();
    
      	for(int i=0;i<3;i++){
        	S.charAt(i)=='o' ? cnt += 100:;
        }
      	System.out.println(cnt);
      
      	
    }
}

Compiler output:
Main.java:10: error: illegal start of expression
        	S.charAt(i)=='o' ? cnt += 100:;
        	                              ^
Main.java:10: error: not a statement
        	S.charAt(i)=='o' ? cnt += 100:;
        	                 ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int cnt = 700;
		String S = sc.next();
    
      	for(int i=0;i<3;i++){
        	if S.charAt(i)=='o' ? cnt += 100:;
        }
      	System.out.println(cnt);
      
      	
    }
}

Compiler output:
Main.java:10: error: '(' expected
        	if S.charAt(i)=='o' ? cnt += 100:;
        	  ^
Main.java:10: error: illegal start of expression
        	if S.charAt(i)=='o' ? cnt += 100:;
        	                                 ^
2 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int cnt = 700;
		String S = sc.next();
      	String a[] = S.split();
      	for(int i=0;i<3;i++){
        	if(a[i].equals("o")){
            	cnt += 100;
            }
        }
      	System.out.println(cnt);
      
      	
    }
}

Compiler output:
Main.java:8: error: no suitable method found for split(no arguments)
      	String a[] = S.split();
      	              ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

#include <iostream>
#include <string>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
signed main(){
  
  string 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:15:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if( s[i] == "o" ) ans+=100;
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String s = scan.next();
      	int counter = 0;
      	if(s.charAt(0) == o){
        	counter++;
        }
      	if(s.charAt(1) == o){
        	counter++;
        }
      	if(s.charAt(2) == o){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      	if(s.charAt(0) == o){
      	                  ^
  symbol:   variable o
  location: class Main
Main.java:11: error: cannot find symbol
      	if(s.charAt(1) == o){
      	                  ^
  symbol:   variable o
  location: class Main
Main.java:14: error: cannot find symbol
      	if(s.charAt(2) == o){
      	                  ^
  symbol:   variable o
  location: class Main
3 errors
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String s = scan.next();
      	int counter = 0;
      	if(s.charAt(0) = "o"){
        	counter++;
        }
      	if(s.charAt(1) = "o"){
        	counter++;
        }
      	if(s.charAt(2) = "o"){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:8: error: unexpected type
      	if(s.charAt(0) = "o"){
      	           ^
  required: variable
  found:    value
Main.java:11: error: unexpected type
      	if(s.charAt(1) = "o"){
      	           ^
  required: variable
  found:    value
Main.java:14: error: unexpected type
      	if(s.charAt(2) = "o"){
      	           ^
  required: variable
  found:    value
3 errors
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String s = scan.next();
      	int counter = 0;
      	if(s.charAt(0) == "o"){
        	counter++;
        }
      	if(s.charAt(1) == "o"){
        	counter++;
        }
      	if(s.charAt(2) == "o"){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '=='
      	if(s.charAt(0) == "o"){
      	               ^
  first type:  char
  second type: String
Main.java:11: error: bad operand types for binary operator '=='
      	if(s.charAt(1) == "o"){
      	               ^
  first type:  char
  second type: String
Main.java:14: error: bad operand types for binary operator '=='
      	if(s.charAt(2) == "o"){
      	               ^
  first type:  char
  second type: String
3 errors
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String s = scan.next();
      	int counter = 0;
      	if(s[0] == "o"){
        	counter++;
        }
      	if(s[1] == "o"){
        	counter++;
        }
      	if(s[2] == "o"){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:8: error: array required, but String found
      	if(s[0] == "o"){
      	    ^
Main.java:11: error: array required, but String found
      	if(s[1] == "o"){
      	    ^
Main.java:14: error: array required, but String found
      	if(s[2] == "o"){
      	    ^
3 errors
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	string s = scan.next();
      	int counter = 0;
      	if(s[0] == "o"){
        	counter++;
        }
      	if(s[1] == "o"){
        	counter++;
        }
      	if(s[2] == "o"){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
      	string s = scan.next();
      	^
  symbol:   class string
  location: class Main
1 error
Language: Java

java.util.*;

public class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	string s = scan.next();
      	int counter = 0;
      	if(s[0] == "o"){
        	counter++;
        }
      	if(s[1] == "o"){
        	counter++;
        }
      	if(s[2] == "o"){
        	counter++;
        }
      	System.out.print(700 + counter * 100);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
java.util.*;
^
1 error
Language: C++

#include<iostream>
#include<char>

using namespace std;

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






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

#include<iostream>
#include<string>

using namespace std;

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






Compiler output:
a.cc:12:14: error: extended character ○ is not valid in an identifier
   12 |   if(S[0] == ○) mon=mon+100;
      |              ^
a.cc:13:14: error: extended character ○ is not valid in an identifier
   13 |   if(S[1] == ○) mon=mon+100;
      |              ^
a.cc:14:14: error: extended character ○ is not valid in an identifier
   14 |   if(S[2] == ○) mon=mon+100;
      |              ^
a.cc: In function 'int main()':
a.cc:12:14: error: '\U000025cb' was not declared in this scope
   12 |   if(S[0] == ○) mon=mon+100;
      |              ^
a.cc:13:14: error: '\U000025cb' was not declared in this scope
   13 |   if(S[1] == ○) mon=mon+100;
      |              ^
a.cc:14:14: error: '\U000025cb' was not declared in this scope
   14 |   if(S[2] == ○) mon=mon+100;
      |              ^