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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cou' was not declared in this scope; did you mean 'cos'?
    8 |   cou<<700+100*cnt<<endl;
      |   ^~~
      |   cos
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before 'int'
    9 |         int ans = 0;
      |         ^~~
a.cc:11:16: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |         cin >> str
      |                ^~~
      |                std
a.cc:13:24: error: 'i' was not declared in this scope
   13 |         for(int i = 0; i < 3; i++) {
      |                        ^
a.cc:19:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |         cout << 700 + ans << endl;
      |                       ^~~
      |                       abs
Language: C++

#include<bits/stdc++.h>
int main()
{
    string s;
    getline(cin,s);
    int j=700;
    for(int i=1;i<=3;i++)
    {
        if(s.at(i-1)=='o')
            j+=100;
    }
    cout<<j<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s;
      |     ^~~~~~
a.cc:4:5: 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:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     getline(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:17: error: 's' was not declared in this scope
    5 |     getline(cin,s);
      |                 ^
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<j<<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:12:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout<<j<<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>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'tst' was not declared in this scope; did you mean 'rst'?
   11 |   cout << tst <<endl;
      |           ^~~
      |           rst
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		char a[] = new char[3];
		String str = "";
		int price = 700;

		str = scan.next();

		for (int i=0; i<str.length; i++) {
			if (str.charAt(m) == '〇') {
				price += 100;
			}
		}

		System.out.println(price);

		scan.close();

	}

}


Compiler output:
Main.java:14: error: cannot find symbol
		for (int i=0; i<str.length; i++) {
		                   ^
  symbol:   variable length
  location: variable str of type String
Main.java:15: error: cannot find symbol
			if (str.charAt(m) == '?') {
			               ^
  symbol:   variable m
  location: class Main
2 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();
    int count = 700;
    for(int i = 0; i < 3; i++){
      if(s.CharAt(i) == 'o')
        count += 100;
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
      if(s.CharAt(i) == 'o')
          ^
  symbol:   method CharAt(int)
  location: variable s of type String
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as increment operand
    8 | for(int i=0;i<3;1++)
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
char a[3];
int b=700;
cin>>a;
for(int i=0;i<3;1++)
{
	if(a[i]==o)
	b+=100;
}
cout<<b<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as increment operand
    8 | for(int i=0;i<3;1++)
      |                 ^
a.cc:10:18: error: 'o' was not declared in this scope
   10 |         if(a[i]==o)
      |                  ^
Language: Java

import java.util.*;

	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int value=700;
		String something=sc.next();
		
		for(int i=0;i<something.length();i++) {
			if(something.charAt(i)=='o'){
				value+=100;
			}
		}
		System.out.println(value);
		sc.close();
	}

Compiler output:
Main.java:3: 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 Something {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int value=700;
		String something=sc.next();
		
		for(int i=0;i<something.length();i++) {
			if(something.charAt(i)=='o'){
				value+=100;
			}
		}
		System.out.println(value);
		sc.close();
	}
}

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

import java.util.*;

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

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 Something {
      | ^~~~~~
Language: C

//AnikModak
#include<iostream>
using namespace std;

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

    for(int i=0; i<3; i++) if(s[i]=='o') ans+=100;
    cout<<ans<<endl;
}


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

#include <stdio.h>

int main(){
    int price = 700;
   char top;
    for(int i = 0; i < 3; i++){
        scanf("%c", &top);
        if (top == o) price += 100;
    }
    printf("%d", price);
}

Compiler output:
main.c: In function 'main':
main.c:8:20: error: 'o' undeclared (first use in this function)
    8 |         if (top == o) price += 100;
      |                    ^
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits\stdc++.h>

using namespace std;

const int MAXN = 1e5 + 100;

char a[MAXN];

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


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<stdio.h>

int main()
{
    int a=700, i;
    char S;

    for(i=0;i<3;i++){
        scanf("%c", &S)
        if(S == 'o'){
            a+=100;
        }
    }
    
    printf("%d\n", a);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before 'if'
    9 |         scanf("%c", &S)
      |                        ^
      |                        ;
   10 |         if(S == 'o'){
      |         ~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

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


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

#incldue <bits/stdc++.h>
using namespace std;
int main(){
char a,b,c;
int n=0;
cin>>a>>b>>c;
if(a=='x')n++;
if(b=='x')n++;
if(c=='x')n++;
cout<<700 + n *100<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin>>a>>b>>c;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <bits/stdc++.h>
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<700 + n *100<<endl;
      | ^~~~
a.cc:10:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:21: error: 'endl' was not declared in this scope
   10 | cout<<700 + n *100<<endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <bits/stdc++.h>
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
int a=0;
int b=0;
int c=0;
char S[2];
scanf("%s", &S);
if(S[0] == ○){
    a=100;
}
if(S[1] == ○){
    b = 100;
}
if(S[2] == ○){
    c = 100;
}
printf("%d\n", 700+a+b+c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:12: error: stray '\342' in program
   10 | if(S[0] == <U+25CB>){
      |            ^~~~~~~~
main.c:10:13: error: expected expression before ')' token
   10 | if(S[0] == ○){
      |             ^
main.c:13:12: error: stray '\342' in program
   13 | if(S[1] == <U+25CB>){
      |            ^~~~~~~~
main.c:13:13: error: expected expression before ')' token
   13 | if(S[1] == ○){
      |             ^
main.c:16:12: error: stray '\342' in program
   16 | if(S[2] == <U+25CB>){
      |            ^~~~~~~~
main.c:16:13: error: expected expression before ')' token
   16 | if(S[2] == ○){
      |             ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
    int a=0;
    int b=0;
    int c=0;
    char S[2];
    scanf("%s", &S);
    if(S[0] == ○){
        a = 100;
    }
    if(S[1] == ○){
        b = 100;
    }
    if(S[2] == ○){
        c = 100;
    }
    printf("%d\n", 700+a+b+c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: stray '\342' in program
   10 |     if(S[0] == <U+25CB>){
      |                ^~~~~~~~
main.c:10:17: error: expected expression before ')' token
   10 |     if(S[0] == ○){
      |                 ^
main.c:13:16: error: stray '\342' in program
   13 |     if(S[1] == <U+25CB>){
      |                ^~~~~~~~
main.c:13:17: error: expected expression before ')' token
   13 |     if(S[1] == ○){
      |                 ^
main.c:16:16: error: stray '\342' in program
   16 |     if(S[2] == <U+25CB>){
      |                ^~~~~~~~
main.c:16:17: error: expected expression before ')' token
   16 |     if(S[2] == ○){
      |                 ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int a=0;
    int b=0;
    int c=0;
    char S[2];
    scanf("%s", S);
    if(S[0] == ○){
        a = 100;
    }
    if(S[1] == ○){
        b = 100;
    }
    if(S[2] == ○){
        c = 100;
    }
    printf("%d\n", 700+a+b+c);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:16: error: stray '\342' in program
   10 |     if(S[0] == <U+25CB>){
      |                ^~~~~~~~
main.c:10:17: error: expected expression before ')' token
   10 |     if(S[0] == ○){
      |                 ^
main.c:13:16: error: stray '\342' in program
   13 |     if(S[1] == <U+25CB>){
      |                ^~~~~~~~
main.c:13:17: error: expected expression before ')' token
   13 |     if(S[1] == ○){
      |                 ^
main.c:16:16: error: stray '\342' in program
   16 |     if(S[2] == <U+25CB>){
      |                ^~~~~~~~
main.c:16:17: error: expected expression before ')' token
   16 |     if(S[2] == ○){
      |                 ^
Language: C

#include<stdio.h>
int main()
{
    int a=0;
    int b=0;
    int c=0;
    char S[2];
    scanf("%s", S);
    if(S[0] == ○){
        a = 100;
    }
    if(S[1] == ○){
        b = 100;
    }
    if(S[2] == ○){
        c = 100;
    }
    printf("%d\n", 700+a+b+c);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: stray '\342' in program
    9 |     if(S[0] == <U+25CB>){
      |                ^~~~~~~~
main.c:9:17: error: expected expression before ')' token
    9 |     if(S[0] == ○){
      |                 ^
main.c:12:16: error: stray '\342' in program
   12 |     if(S[1] == <U+25CB>){
      |                ^~~~~~~~
main.c:12:17: error: expected expression before ')' token
   12 |     if(S[1] == ○){
      |                 ^
main.c:15:16: error: stray '\342' in program
   15 |     if(S[2] == <U+25CB>){
      |                ^~~~~~~~
main.c:15:17: error: expected expression before ')' token
   15 |     if(S[2] == ○){
      |                 ^
Language: C

#include<stdio.h>

int main()
{
    int a=0;
    int b=0;
    int c=0;
    char S[2];

    scanf("%s", &S);
    
    if(S[0] == ○){
        a = 100;
    }

    if(S[1] == ○){
        b = 100;
    }

    if(S[2] == ○){
        c = 100;
    }
    
    printf("%d", 700+a+b+c);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: stray '\342' in program
   12 |     if(S[0] == <U+25CB>){
      |                ^~~~~~~~
main.c:12:17: error: expected expression before ')' token
   12 |     if(S[0] == ○){
      |                 ^
main.c:16:16: error: stray '\342' in program
   16 |     if(S[1] == <U+25CB>){
      |                ^~~~~~~~
main.c:16:17: error: expected expression before ')' token
   16 |     if(S[1] == ○){
      |                 ^
main.c:20:16: error: stray '\342' in program
   20 |     if(S[2] == <U+25CB>){
      |                ^~~~~~~~
main.c:20:17: error: expected expression before ')' token
   20 |     if(S[2] == ○){
      |                 ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main(void)
{
    int a=0;
    int b=0;
    int c=0;
    char S1, S2, S3;

    scanf("%s%s%s", &S1, &S2, &S3);
    
    if(S1 == ○){
        a = 100;
    }

    if(S2 == ○){
        b = 100;
    }

    if(S3 == ○){
        c = 100;
    }
    
    printf("%d", 700+a+b+c);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: stray '\342' in program
   13 |     if(S1 == <U+25CB>){
      |              ^~~~~~~~
main.c:13:15: error: expected expression before ')' token
   13 |     if(S1 == ○){
      |               ^
main.c:17:14: error: stray '\342' in program
   17 |     if(S2 == <U+25CB>){
      |              ^~~~~~~~
main.c:17:15: error: expected expression before ')' token
   17 |     if(S2 == ○){
      |               ^
main.c:21:14: error: stray '\342' in program
   21 |     if(S3 == <U+25CB>){
      |              ^~~~~~~~
main.c:21:15: error: expected expression before ')' token
   21 |     if(S3 == ○){
      |               ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main(void)
{
    int a=0;
    int b=0;
    int c=0;
    char S1, S2, S3;

    scanf("%c%c%c", &S1, &S2, &S3);
    scanf("%c%c%c", &S1, &S2, &S3);

    if(S1 == ○){
        a = 100;
    }

    if(S2 == ○){
        b = 100;
    }

    if(S3 == ○){
        c = 100;
    }
    
    printf("%d", 700+a+b+c);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:14: error: stray '\342' in program
   14 |     if(S1 == <U+25CB>){
      |              ^~~~~~~~
main.c:14:15: error: expected expression before ')' token
   14 |     if(S1 == ○){
      |               ^
main.c:18:14: error: stray '\342' in program
   18 |     if(S2 == <U+25CB>){
      |              ^~~~~~~~
main.c:18:15: error: expected expression before ')' token
   18 |     if(S2 == ○){
      |               ^
main.c:22:14: error: stray '\342' in program
   22 |     if(S3 == <U+25CB>){
      |              ^~~~~~~~
main.c:22:15: error: expected expression before ')' token
   22 |     if(S3 == ○){
      |               ^
Language: C

#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main(void)
{
    int a, b, c;
    char Sa, Sb, Sc;

    scanf("%c%c%c", &Sa, &Sb, &Sc);

    if(Sa == ○){
        a = 100;
    }
    else{
        a = 0;
    }

    if(Sb == ○){
        b = 100;
    }
    else{
        b = 0;
    }

    if(Sc == ○){
        c = 100;
    }
    else{
        c = 0;
    }

    printf("%d", 700+a+b+c);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:14: error: stray '\342' in program
   11 |     if(Sa == <U+25CB>){
      |              ^~~~~~~~
main.c:11:15: error: expected expression before ')' token
   11 |     if(Sa == ○){
      |               ^
main.c:18:14: error: stray '\342' in program
   18 |     if(Sb == <U+25CB>){
      |              ^~~~~~~~
main.c:18:15: error: expected expression before ')' token
   18 |     if(Sb == ○){
      |               ^
main.c:25:14: error: stray '\342' in program
   25 |     if(Sc == <U+25CB>){
      |              ^~~~~~~~
main.c:25:15: error: expected expression before ')' token
   25 |     if(Sc == ○){
      |               ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected ';' before 'cout'
   23 |   fee += topping * 100
      |                       ^
      |                       ;
   24 |   cout << fee + topping * 100 << endl;
      |   ~~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string order;
  int topping = 0;
  int fee;
  cin >> order;
  if (order[0] == "o") {
    topping++;
  }
  if (order[1] == "o") {
    topping++;
  }
  if (order[2] == "o") {
    topping++;
  }
  cout << fee + topping * 100 << endl;
  return 0;
}


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

#include<iostream>
#define REP(i,a) for(int i=0;i<(a);i++)
using namespace std;
int main(){
  int pri=700;
  char s[3];
  cin>>s;
  REP(i,3) if(s[i]=="o") pri+=100;
  cout<<pri<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   REP(i,3) if(s[i]=="o") pri+=100;
      |               ~~~~^~~~~
Language: C++

#incluide <iostream>

using namespece std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incluide; did you mean #include?
    1 | #incluide <iostream>
      |  ^~~~~~~~
      |  include
a.cc:3:7: error: expected nested-name-specifier before 'namespece'
    3 | using namespece std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s; cin >> s;
      |   ^~~~~~
a.cc:7:13: error: 'cin' was not declared in this scope
    7 |   string s; cin >> s;
      |             ^~~
a.cc:7:20: error: 's' was not declared in this scope
    7 |   string s; cin >> s;
      |                    ^
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << ans << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<random>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<bitset>
#include<unordered_map>
using namespace std;
//---------------------------------------------------
//ライブラリゾーン！！！！
typedef long long ll;
typedef long double ld;
#define str string
#define rep(i,j) for(ll i=0;i<(long long)(j);i++)
#define all(a) (a).begin(),(a).end()
const ll Mod = 1000000007;
const ll gosenchou = 5000000000000000;
short gh[2][4] = { { 0,0,-1,1 },{ -1,1,0,0 } };
struct P {
	ll pos, cost;
};
bool operator<(P a, P b) { return a.cost < b.cost; }
bool operator>(P a, P b) { return a.cost > b.cost; }
struct B {//隣接リスト表現
	ll to, cost;
};
struct E {//辺の情報を入れる変数
	ll from, to, cost;
};
bool operator<(E a, E b) {
	return a.cost < b.cost;
}
struct H {
	ll x, y;
};
bool operator<(H a, H b) {
	if (a.x != b.x) return a.x < b.x;
	return a.y < b.y;
}
bool operator>(H a, H b) {
	if (a.x != b.x) return a.x > b.x;
	return a.y > b.y;
}
bool operator==(H a, H b) {
	return a.x == b.x&&a.y == b.y;
}
bool operator!=(H a, H b) {
	return a.x != b.x || a.y != b.y;
}
ll gcm(ll i, ll j) {//最大公約数
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcm(j%i, i);
}
ld rad(H a, H b) {
	return sqrt(pow(a.x - b.x, 2.0) + pow(a.y - b.y, 2.0));
}//rad＝座標上の2点間の距離
ll ari(ll a, ll b, ll c) {
	return (a + b)*c / 2;
}//等差数列の和
ll fact(ll x, ll k, ll p) {//最大値、個数、あまり
	ll sum = 1;
	for (int i = 0; i < k; i++) {
		sum *= (x--);
		sum %= p;
	}
	return sum;
}//階乗(正）
ll mod_pow(ll x, ll n, ll p) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = res*x%p;
		x = x*x%p;
		n >>= 1;
	}
	return res;
}//x^n%p
short ctos(char a) {
	return (int)(a - '0');
}
#define int long long
const long long Inf = 4523372036854775807;
const int inf = 15000000000;
//----------------------------------------------------
//++++++++++++++++++++++++++++++++++++++++++++++++++++
signed main() {
	string s;
	cin >> s;
	int sum = 700;
	for (int i = 0; i < 3; i++) {
		if (s[i] == 'o') 700 += 100;
	}
	cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:99:41: error: lvalue required as left operand of assignment
   99 |                 if (s[i] == 'o') 700 += 100;
      |                                         ^~~
Language: C++

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

int main()
{
	string str;
	char chr[3];
	cin >> str;
	strcpy(chr, str.c_str());
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if(chr[i]=="o"){
			cnt = cnt + 1;
		}
	}

	cout << 700 + cnt * 100;
}

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

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

int main()
{
	string str;
	char chr[3];
	cin >> str;
	strcpy(chr, str.c_str())
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if(chr[i]=="o"){
			cnt++;
		}
	}

	cout << 700 + cnt * 100;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before 'int'
    9 |         strcpy(chr, str.c_str())
      |                                 ^
      |                                 ;
   10 |         int cnt = 0;
      |         ~~~                      
a.cc:13:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |                 if(chr[i]=="o"){
      |                    ~~~~~~^~~~~
a.cc:14:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |                         cnt++;
      |                         ^~~
      |                         int
a.cc:18:23: error: 'cnt' was not declared in this scope; did you mean 'int'?
   18 |         cout << 700 + cnt * 100;
      |                       ^~~
      |                       int
Language: C++

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

int main()
{
	char[3] str;
	cin >> str;
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if(str[i]=="o"){
			cnt++;
		}
	}

	cout << 700 + cnt * 100;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected identifier before numeric constant
    6 |         char[3] str;
      |              ^
a.cc:6:14: error: expected ']' before numeric constant
    6 |         char[3] str;
      |              ^
      |              ]
a.cc:6:13: error: structured binding declaration cannot have type 'char'
    6 |         char[3] str;
      |             ^
a.cc:6:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:13: error: empty structured binding declaration
a.cc:6:17: error: expected initializer before 'str'
    6 |         char[3] str;
      |                 ^~~
a.cc:7:16: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |         cin >> str;
      |                ^~~
      |                std
Language: C++

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

int main()
{
	string str;
	cin >> str;
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if(str[i]=="o"){
			cnt++;
		}
	}

	cout << 700 + cnt * 100;
}

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

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

int main()
{
	string str;
	cin >> str;
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if(str[i]=="o"){
			cnt++;
		}
	}

	cout << 700 + cnt * 100
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if(str[i]=="o"){
a.cc:16:32: error: expected ';' before '}' token
   16 |         cout << 700 + cnt * 100
      |                                ^
      |                                ;
   17 | }
      | ~
Language: C++

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

int main()
{
	string str;
	int cnt = 0;
	for (int i = 0; i < 3; ++i)
	{
		if str[i]=="o" {
			cnt++;
		}
	}

	cout << 700 + cnt * 100
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected '(' before 'str'
   10 |                 if str[i]=="o" {
      |                    ^~~
      |                    (
a.cc:15:32: error: expected ';' before '}' token
   15 |         cout << 700 + cnt * 100
      |                                ^
      |                                ;
   16 | }
      | ~
Language: C++

#include <iostream>
#include <string>

using namespace std;


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

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

#include <iostream>
#include <string>

using namespace std;
bool topping(string s) {
    if (s == "o"){
        return true;
    } else if (s == "x") {
        return false;
    }
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: could not convert 's.std::__cxx11::basic_string<char>::operator[](((std::__cxx11::basic_string<char>::size_type)i))' from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   18 |         if(topping(s[i])== true) {
      |            ~~~~~~~^~~~~~
      |                   |
      |                   __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
a.cc: In function 'bool topping(std::string)':
a.cc:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;
bool topping(string s) {
    if (s == "o"){
        return true;
    } else if (s == "x") {
        return false;
    }
}

int main(){
    string s;
    cin >> s;
    int cost = 700;
    for (int i = 0; i < 3; i++) {
        if(bool == true) {
            cost = cost + 100;
        }
    }
    cout << cost << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected unqualified-id before '==' token
   18 |         if(bool == true) {
      |                 ^~
a.cc: In function 'bool topping(std::string)':
a.cc:11:1: warning: control reaches end of non-void function [-Wreturn-type]
   11 | }
      | ^
Language: C++

#include "stdafx.h"
#include "cstring"
#include "iostream"

using namespace std;

int main()
{
	char S[16];
	char T[16] = { "o" };
	cin >> S;

	int t;
	int kane=700;

	for (t = 0; t < 3; t++) {
		if (S[t] == T[0]) {
			kane += 100;
		}
	}
	cout << kane ;

    return 0;
}

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

#include "stdafx.h"
#include "cstring"
#include "iostream"

using namespace std;
int main()
{
	char S[3];
	char T[2] = { "o" };
	cin >> S;

	int t;
	int kane=700;

	for (t = 0; t < 3; t++) {
		if (S[t] == T[0]) {
			kane += 100;
		}
	}
	cout << kane ;

    return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;

public class AtCoderBeginner095A {
	static Scanner sc;

	public static void main(String[] args) throws Exception {
		InputStream in = System.in;
		//PrintStream out = new PrintStream("src/output.txt");

		//System.setOut(out);

		sc = new Scanner(in);

		String S = sc.next();
		int answer = 700;

		for(int i = 0; i < 3; i++){
			if(S.charAt(i) == 'o'){
				answer += 100;
			}
		}
		System.out.println(answer);

		//out.close();
	}
}

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

#include <iostrem>
#include <string>
using namespace std;
int main(){
  string S;
  cin>>S;
  int cnt=0;
  for(int i=0;i<3;i++){
    if(S[i]=='o){
       cnt++;
    }
  }
  cout<<cnt<<endl;
  return 0;
}

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

#include <iostream>
using namespace std;
int a, b, c, x, y, r1, r2, r3, big;
int main() {
  cin >> a >> b >> c >> x >> y;
  r1 = a*x+b*y;
  r2 = c*2*max(x,y);
  big = x>y ? a : b;
  r3 = min(x,y)*2*c+abs(x-y)*big;
  cout << min(r1,r2,r3);
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 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,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:10:14:   required from here
   10 |   cout << min(r1,r2,r3);
      |           ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int price = 700;
string s;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 's'
   10 |     if s[i]=='o';
      |        ^
      |        (
Language: Java

import java.util.Scanner;
public class Main4 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int n = sc.nextInt();
		int[] a = new int[n]; 
		
		for(int i = 0; i < n; ++i) {
			a[i] = sc.nextInt();
		}
		sc.close();
		System.out.println(a);
		
		for(int i = 0; i < n/2; ++i) {
			int tmp = a[i];
			a[i] = a[n-1-i];
			a[n-1-i] = tmp;			
		}
		
		System.out.print(a);
	}

}

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

#include <iostream> 
#include <cstdio> 
#include <fstream> 
#include <algorithm> 
#include <cmath> 
#include <deque> 
#include <vector> 
#include <queue> 
#include <string> 
#include <cstring> 
#include <map> 
#include <stack> 
#include <set> 
using namespace std;
int sum;
int last;
void die(){
cout<<sum;
exit(0);
}
bool cmp(pair<long long,int> a,pair<long long,int> b)
{
  if(a.first<last)
    a.first=n- last;
  if(a.second<last)
    a.second=n - last;
  return (a.first/a.second)<(b.first/b.second);
} 
int main(){
int n,c;
cin>>n>>c;
pair<long long,int> a[100001];
for(int i=0;i<n;i++)
cin>>a[i].first>>a[i].second;
for(int i=0;;i++)
sort(a,a+n,cmp);
if(a[0].first/a[0].second<1)
{sum=sum+a[0].second-a[0].first+last;
 last=a[0].first;
 for(int i=1;i<n;i++)
 {a[i-1].first=a[i].first;
  a[i-1].second=a[i].second;
 }
}
else
die();
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'bool cmp(std::pair<long long int, int>, std::pair<long long int, int>)':
a.cc:24:13: error: 'n' was not declared in this scope
   24 |     a.first=n- last;
      |             ^
a.cc:26:14: error: 'n' was not declared in this scope
   26 |     a.second=n - last;
      |              ^
Language: C++

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

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


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

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected unqualified-id before '[' token
   13 |    if(string[i] == "o"){
      |             ^
Language: C++

import java.util.Scanner;

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

        Scanner in = new Scanner(System.in);
        String s = in.nextLine();
        int sum = 0;
        for(int i = 0; i < 3; i++) {
            if(s.charAt(i) == 'o') sum+=100;
        }
        System.out.println(700+sum);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
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++

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#pragma comment(linker, "/STACK:16777216")

#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include <iostream>
#include <map>
#include <stack>
#include <set>
#include <queue>
#include <numeric>
#include <algorithm>
#include <utility>
#include <bitset>
#include <cmath>
#include <sstream>
#include <functional>
#include <iomanip>

#define all(a) (a).begin(),(a).end()
#define sz(a) (int)(a).size()
#define eps (1e-15)
using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector< vi > vvi;
typedef vector<double> vd;
typedef vector< vd > vvd;
typedef vector< string > vs;
typedef pair< int, int > pii;
typedef vector< pii > vpii;


int main()
{
#ifdef LOCAL_MACHINE
	freopen("input.txt", "rt", stdin);
	freopen("output.txt", "wt", stdout);
#endif
	int n, x;
	cin >> n >> x;
	int res = n;
	int min_el = INT_MAX;
	for (int i = 0; i < n; i++)
	{
		int curm;
		cin >> curm;
		x -= curm;
		min_el = min(min_el, curm);
	}
	res += x / min_el;
	cout << res;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:22: error: 'INT_MAX' was not declared in this scope
   48 |         int min_el = INT_MAX;
      |                      ^~~~~~~
a.cc:23:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
   22 | #include <iomanip>
  +++ |+#include <climits>
   23 |
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:87: error: 'ans' was not declared in this scope
    3 | char s[4];int i,a=700;scanf("%s",s);for(i=0;i<3;i++)if(s[i]=='o')a+=100;printf("%d\n",ans);
      |                                                                                       ^~~
Language: C++

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

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main(){char s[4];int i,a=700;scanf("%s",s);for(i=0;i<3;i++)if(s[i]=='o')a+=100;printf("%d\n",ans); return 0;}
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

import numpy as np

def new_state(sushi, x, N, C):
    #if sushi.shape[0] == 0:
    #    return None
    s_c = np.copy(sushi)
    s_cc = np.copy(sushi)
    s_c[:, 0] -= x
    s_cc[:, 0] = C - (s_cc[:, 0] - x)
    
    # 実際に歩いて獲得できるカロリーを計算
    kcal_c = s_c[:, 1] - s_c[:, 0]
    kcal_cc = s_cc[:, 1] - s_cc[:, 0]
    # 目標の寿司を見つける
    dest_c = np.argmax(kcal_c)
    dest_cc = np.argmax(kcal_cc)
    if kcal_c[dest_c] < 0 and kcal_cc[dest_cc] < 0:
        return None
    # 時計回りと反時計回りでどちらがたくさんのカロリーを摂取できるか計算
    #print(s_c[:dest_c+1])
    #print(s_cc[:dest_cc-1:-1])
    result_c = s_c[:dest_c+1][:,1].sum() - s_c[dest_c][0]
    result_cc = s_c[:dest_cc-1:-1][:,1].sum() - s_cc[dest_cc][0]
    
    idx = np.arange(N)
    if result_c > result_cc:
        # 時計回りに回って寿司を食いまくる
        result = result_c
        new_x = s_c[dest_c][0]
        new_state = np.delete(sushi, idx[:dest_c+1], axis=0)
    else:
        result = result_cc
        new_x = s_cc[dest_cc][0]
        new_state = np.delete(sushi, idx[:dest_cc-1:-1], axis=0)
        
    return (result, new_x, new_state)

def get_max(sushi, N, C):
    total = 0
    state = new_state(sushi, 0, N, C)
    while state is not None:
        result, new_x, new_s = state
        total += result
        N = new_s.shape[0]
        state = new_state(new_s, new_x, N, C)
    return total

header = np.array(list(map(int, input().split())))
sushi = []
for i in range(header[0]):
    sushi.append(list(map(int, input().split())))
sushi = np.array(sushi)

N = header[0]
C = header[1]
total = get_max(sushi, N, C)
print(total)

Compiler output:
a.cc:4:14: error: token "." is not valid in preprocessor expressions
    4 |     #if sushi.shape[0] == 0:
      |              ^
a.cc:4: error: unterminated #if
    4 |     #if sushi.shape[0] == 0:
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<n<<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:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout<<n<<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 ans = 700;
	if (s[0] == "○") {
		ans += 100;
	}
	if (s[1] == "○") {
		ans += 100;
	}
        if (s[2] == "○") {
		ans += 100;
	}
	cout << ans << 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] == "○") {
a.cc:12:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |         if (s[1] == "○") {
a.cc:15:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if (s[2] == "○") {
Language: C++

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

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

	int cnt = 0;
	for(char c : str) {
		cnt += (c == 'x');
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'c' was not declared in this scope
   13 |         cout << (700 + c * 100) << endl;
      |                        ^
Language: C++

s = gets()
y = 700
for i in 0...3 
  if s[i] == 'o'
    y += 100
  end
end
puts y


Compiler output:
a.cc:3:10: error: too many decimal points in number
    3 | for i in 0...3
      |          ^~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = gets()
      | ^
Language: C++

#include <iostream>
#include <string> 
using namespace std;
int main()
{
string a;
cin>>a;
int cnt=0;
for(int i=0;i<3;i++)
if (a[i]=="o")
cnt++;
cout<<700+100*cnt;
system ("pause");
return 0;
}

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

#include <iostream> 
#include <cstdio> 
#include <fstream> 
#include <algorithm> 
#include <cmath> 
#include <deque> 
#include <vector> 
#include <queue> 
#include <string> 
#include <cstring> 
#include <map> 
#include <stack> 
#include <set> 
using namespace std;
int cnt;
int main()
{
  string s;
  cin>>s;
  for(in ti=0;i<3;i++)
  if(s[i]=='x')
    cnt++;
  cout<<(700+100*cnt);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'in' was not declared in this scope; did you mean 'yn'?
   20 |   for(in ti=0;i<3;i++)
      |       ^~
      |       yn
a.cc:20:15: error: 'i' was not declared in this scope
   20 |   for(in ti=0;i<3;i++)
      |               ^
Language: C++

#include <iostream> 
#include <cstdio> 
#include <fstream> 
#include <algorithm> 
#include <cmath> 
#include <deque> 
#include <vector> 
#include <queue> 
#include <string> 
#include <cstring> 
#include <map> 
#include <stack> 
#include <set> 
using namespace std;
int cnt;
int main()
{
  string s;
  cin>>s;
  for(in ti=0;i<3;i++)
  if(s[i]=='x')
    cnt++;
  cout<<(700+100*cnt);

Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'in' was not declared in this scope; did you mean 'yn'?
   20 |   for(in ti=0;i<3;i++)
      |       ^~
      |       yn
a.cc:20:15: error: 'i' was not declared in this scope
   20 |   for(in ti=0;i<3;i++)
      |               ^
a.cc:23:23: error: expected '}' at end of input
   23 |   cout<<(700+100*cnt);
      |                       ^
a.cc:17:1: note: to match this '{'
   17 | {
      | ^
Language: C++

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

int main() {
    string s;

    cin >> s;

    price = 700;

    for(int i = 0; i < 3; i++) {
        if(s[i] == o) {
            price += 100;
        }
    }

    cout << price << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'price' was not declared in this scope
   10 |     price = 700;
      |     ^~~~~
a.cc:13:20: error: 'o' was not declared in this scope
   13 |         if(s[i] == o) {
      |                    ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int sum=700;
    char s[4];
    cin >> s;
    for(int i=0;i<3;i++){
        if(s[0]=='o')
        else    sum+=100;
    }
    cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before 'else'
    9 |         else    sum+=100;
      |         ^~~~
Language: C++

print(700+sum(list(map(lambda x:100 if x == 'o' else 0,list(input())))))

Compiler output:
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print(700+sum(list(map(lambda x:100 if x == 'o' else 0,list(input())))))
      |      ^