criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.*;
class Sample1
{
public static void main(String[] args) throws IOException
{
BufferedReader br =
    new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
char c = Integer.parseInt(str);
if(c == "ooo");{
System.out.println("1000");
}
if(c == "oox");{
System.out.println("900");
}
if(c == "oxo");{
System.out.println("900");
}
if(c == "oxx");{
System.out.println("800");
}
if(c == "xoo");{
System.out.println("900");
}
if(c == "xox");{
System.out.println("800");
}
if(c == "xxo");{
System.out.println("800");
}
if(c == "xxx");{
System.out.println("700");
}
}
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from int to char
char c = Integer.parseInt(str);
                         ^
Main.java:10: error: bad operand types for binary operator '=='
if(c == "ooo");{
     ^
  first type:  char
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
if(c == "oox");{
     ^
  first type:  char
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
if(c == "oxo");{
     ^
  first type:  char
  second type: String
Main.java:19: error: bad operand types for binary operator '=='
if(c == "oxx");{
     ^
  first type:  char
  second type: String
Main.java:22: error: bad operand types for binary operator '=='
if(c == "xoo");{
     ^
  first type:  char
  second type: String
Main.java:25: error: bad operand types for binary operator '=='
if(c == "xox");{
     ^
  first type:  char
  second type: String
Main.java:28: error: bad operand types for binary operator '=='
if(c == "xxo");{
     ^
  first type:  char
  second type: String
Main.java:31: error: bad operand types for binary operator '=='
if(c == "xxx");{
     ^
  first type:  char
  second type: String
9 errors
Language: Java

import java.io.*;
class Sample1
{
public static void main(String[] args) throws IOException
{
BufferedReader br =
    new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
char c = Integer.parseInt(str);
if(c == "ooo"){
System.out.println("1000");
}
else(c == "oox"){
System.out.println("900");
}
else(c == "oxo"){
System.out.println("900");
}
else(c == "oxx"){
System.out.println("800");
}
else(c == "xoo"){
System.out.println("900");
}
else(c == "xox"){
System.out.println("800");
}
else(c == "xxo"){
System.out.println("800");
}
else(c == "xxx"){
System.out.println("700");
}
}
}

Compiler output:
Main.java:13: error: not a statement
else(c == "oox"){
    ^
Main.java:13: error: ';' expected
else(c == "oox"){
                ^
Main.java:16: error: not a statement
else(c == "oxo"){
    ^
Main.java:16: error: ';' expected
else(c == "oxo"){
                ^
Main.java:16: error: 'else' without 'if'
else(c == "oxo"){
^
Main.java:19: error: not a statement
else(c == "oxx"){
    ^
Main.java:19: error: ';' expected
else(c == "oxx"){
                ^
Main.java:19: error: 'else' without 'if'
else(c == "oxx"){
^
Main.java:22: error: not a statement
else(c == "xoo"){
    ^
Main.java:22: error: ';' expected
else(c == "xoo"){
                ^
Main.java:22: error: 'else' without 'if'
else(c == "xoo"){
^
Main.java:25: error: not a statement
else(c == "xox"){
    ^
Main.java:25: error: ';' expected
else(c == "xox"){
                ^
Main.java:25: error: 'else' without 'if'
else(c == "xox"){
^
Main.java:28: error: not a statement
else(c == "xxo"){
    ^
Main.java:28: error: ';' expected
else(c == "xxo"){
                ^
Main.java:28: error: 'else' without 'if'
else(c == "xxo"){
^
Main.java:31: error: not a statement
else(c == "xxx"){
    ^
Main.java:31: error: ';' expected
else(c == "xxx"){
                ^
Main.java:31: error: 'else' without 'if'
else(c == "xxx"){
^
20 errors
Language: C++

#include <iostream>
using namespace std;
int main(){
    string S;
    cin >> S;
    int bace = 700;
    if(S[0] == '○') base += 100;
    if(S[1] == '○') base += 100;
    if(S[2] == '○') base += 100;
    cout << base << end1;
}

Compiler output:
a.cc:7:16: warning: multi-character character constant [-Wmultichar]
    7 |     if(S[0] == '○') base += 100;
      |                ^~~
a.cc:8:16: warning: multi-character character constant [-Wmultichar]
    8 |     if(S[1] == '○') base += 100;
      |                ^~~
a.cc:9:16: warning: multi-character character constant [-Wmultichar]
    9 |     if(S[2] == '○') base += 100;
      |                ^~~
a.cc: In function 'int main()':
a.cc:7:21: error: 'base' was not declared in this scope; did you mean 'bace'?
    7 |     if(S[0] == '○') base += 100;
      |                     ^~~~
      |                     bace
a.cc:8:21: error: 'base' was not declared in this scope; did you mean 'bace'?
    8 |     if(S[1] == '○') base += 100;
      |                     ^~~~
      |                     bace
a.cc:9:21: error: 'base' was not declared in this scope; did you mean 'bace'?
    9 |     if(S[2] == '○') base += 100;
      |                     ^~~~
      |                     bace
a.cc:10:13: error: 'base' was not declared in this scope; did you mean 'bace'?
   10 |     cout << base << end1;
      |             ^~~~
      |             bace
a.cc:10:21: error: 'end1' was not declared in this scope
   10 |     cout << base << end1;
      |                     ^~~~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();
		int Y = in.nextInt();
		int ans=A*X+B*Y;
		int N=X+Y;
		for(int i=0;i<Math.max(X, Y);i++){
			ans=Math.min(ans,2*C*i+A*Math.max(0,X-i)+B*Math.max(0,Y-i));
		}
		
	}


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

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc:14:2: error: 'os' does not name a type
   14 | }os
      |  ^~
Language: C++

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

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

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

#include <iostream>
#include <array>

int main()
{
  int a = 700;
  std::array<char, 3> S;
  for(int i = 0; i < 3; i++){
    std::cin >> S.at(i);
  }
  for(int i = 0; i < 3; i++){
    if(S.at(i) = 'o'){
      a += 100;
    }
  }
  srd::cout << a;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'srd' has not been declared
   16 |   srd::cout << a;
      |   ^~~
Language: C++

#include <iostream>
using namespace std;

 int main(){
 int N, X, m[101];
 cin >> N >> X;
 int S = 0, M = 1001001001;
 for(int i = 0; i < N; ++i){
 cin >> m[i];
 S += m[i];
 if(m[i] < M){
 M = m[i];
 }
 }
 	int ans = N + (X - S) / M;
	cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected '}' at end of input
   16 |         cout << ans << endl;
      |                             ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
	string s:
	cin>>s;
	int ans = 700;
	if (s[0] == 'o') ++ans;
	if (s[1]=='o') ++ans;
	if (s[2]=='o') ++ans;
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:5:17: error: found ':' in nested-name-specifier, expected '::'
    5 |         string s:
      |                 ^
      |                 ::
a.cc:5:16: error: 's' has not been declared
    5 |         string s:
      |                ^
a.cc:6:12: error: qualified-id in declaration before '>>' token
    6 |         cin>>s;
      |            ^~
a.cc:8:13: error: 's' was not declared in this scope
    8 |         if (s[0] == 'o') ++ans;
      |             ^
a.cc:9:13: error: 's' was not declared in this scope
    9 |         if (s[1]=='o') ++ans;
      |             ^
a.cc:10:13: error: 's' was not declared in this scope
   10 |         if (s[2]=='o') ++ans;
      |             ^
Language: C++

#include<iostream>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<algorithm>
#include<string>
using namespace std;
int a[10000];
int main()
{
	int n,m;
	cin>>n>>m;
	for(int i=0;i<n;i++)cin>>a[i];
	sort(a,a+n);
	int tem=0;
	for(int i=0;i<n;i++)
	{
		tem+=a[i];
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected '}' at end of input
   19 |         }
      |          ^
a.cc:10:1: note: to match this '{'
   10 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	string = S;
	cin>> S ;
	int n = 700;
	for (int i = 0; i < 3; ++i)
	{
		if(S[i] == 'o')n = n + 100;
		else;
	}
	cout << n << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected unqualified-id before '=' token
    5 |         string = S;
      |                ^
a.cc:6:15: error: 'S' was not declared in this scope
    6 |         cin>> S ;
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	sting = S;
	cin>> S ;
	int n = 700;
	for (int i = 0; i < 3; ++i)
	{
		if(S[i] == 'o')n = n + 100;
		else;
	}
	cout << n << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'sting' was not declared in this scope
    5 |         sting = S;
      |         ^~~~~
a.cc:5:17: error: 'S' was not declared in this scope
    5 |         sting = S;
      |                 ^
Language: Java

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

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

  for (char c : s) {
    if (c == 'o') ramenPrice += 100;
  }
  cout << ramenPrice << endl;

  return 0;
}


Compiler output:
a.cc:10:7: error: extended character 　 is not valid in an identifier
   10 |   int ramenPrice　= 700;
      |       ^
a.cc: In function 'int main()':
a.cc:13:19: error: 'ramenPrice' was not declared in this scope; did you mean 'ramenPrice　'?
   13 |     if (c == 'o') ramenPrice += 100;
      |                   ^~~~~~~~~~
      |                   ramenPrice　
a.cc:15:11: error: 'ramenPrice' was not declared in this scope; did you mean 'ramenPrice　'?
   15 |   cout << ramenPrice << endl;
      |           ^~~~~~~~~~
      |           ramenPrice
Language: C++

#include<queue>
#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
int ans;
char a;
int main()
{
	ans=700;
	for (int i=1;i<=n;i++)
	{
		cin>>a;
		if (a=='o') ans+=100;
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: 'n' was not declared in this scope
   12 |         for (int i=1;i<=n;i++)
      |                         ^
Language: C++

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

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

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


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

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string S;
  cin >> S;
  int count=0;
  for(int i=0;i<3;i++){
    if(S.at(i)!="x"){
      count++;
    }
  }
  cout << 700+100*count << endl;}

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

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

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

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

#include <string>
#include <iostream>

using namespace std;
int main() {
  string s;
  cin >> s;
  cout << 700 + count(s.begin(), s.end(), 'o') * 100 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'count' was not declared in this scope
    8 |   cout << 700 + count(s.begin(), s.end(), 'o') * 100 << endl;
      |                 ^~~~~
Language: C++

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

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

Compiler output:
a.cc:8:21: error: stray '\' in program
    8 |   for(int i=0;s[i]!=\0;i++){
      |                     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before ';' token
    8 |   cin >> string;
      |                ^
a.cc:9:3: error: 'price' was not declared in this scope
    9 |   price = 700;
      |   ^~~~~
a.cc:16:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |   return;
      |   ^~~~~~
Language: C++

#include<stdio.h>
#include<limits.h>
int main(void)
{

	int  S=700;
	char a, b, c;
	char d = 'o';


	scanf("%c%c%c"  &a, &b, &c);

	if (a == 'o') {
		S += 100;
	}

	if (b == 'o') {
		S += 100;
	}

	if (c == 'o') {
		S += 100;
	}

	printf("%d", S);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: invalid operands of types 'const char [7]' and 'char' to binary 'operator&'
   11 |         scanf("%c%c%c"  &a, &b, &c);
      |               ~~~~~~~~  ^~
      |               |          |
      |               |          char
      |               const char [7]
Language: C++

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

int ans =700;
cin>>s ;
int cnt =0;
for(int i=0;i <3;i ++){
cnt=s [i]==' o'?+1;
}
ans+=100*cnt;
cout<<ans<<endl;
return 0;
}


Compiler output:
a.cc:11:12: warning: multi-character character constant [-Wmultichar]
   11 | cnt=s [i]==' o'?+1;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:11:19: error: expected ':' before ';' token
   11 | cnt=s [i]==' o'?+1;
      |                   ^
      |                   :
a.cc:11:19: error: expected primary-expression before ';' token
Language: C++

#include<bits/stdc++.h>
string s;
vector<int> v;
int main(){ 

int ans =700;
cin>>s ;
int cnt =0;
for(int i=0;i <3;i ++){(s [i]==' o')?cnt++:cnt =cnt;}
ans+=100*cnt;
cout<<ans<<endl;
return 0;
}


Compiler output:
a.cc:9:32: warning: multi-character character constant [-Wmultichar]
    9 | for(int i=0;i <3;i ++){(s [i]==' o')?cnt++:cnt =cnt;}
      |                                ^~~~
a.cc:2:1: error: 'string' does not name a type; did you mean 'stdin'?
    2 | string s;
      | ^~~~~~
      | stdin
a.cc:3:1: error: 'vector' does not name a type
    3 | vector<int> v;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>s ;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:7:6: error: 's' was not declared in this scope
    7 | cin>>s ;
      |      ^
a.cc:11:1: 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:12: 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/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

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

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main {
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main {
      |              ^~~~
Language: C++

#include <iostream>
using namespace std;

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


    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |       count++;
      |       ~~~~~^~
a.cc:12:22: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   cout << 700 + count*100 << endl;
      |                 ~~~~~^~~~
      |                 |     |
      |                 |     int
      |                 std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <iostream>
using namespace std;

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


    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |       count++;
      |       ~~~~~^~
a.cc:12:20: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   cout << 700+count*100 << endl;
      |               ~~~~~^~~~
      |               |     |
      |               |     int
      |               std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include <iostream>
using namespace std;

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


    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |       count++
      |       ~~~~~^~
a.cc:12:20: error: no match for 'operator*' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   12 |   cout << 700+count*100 << endl;
      |               ~~~~~^~~~
      |               |     |
      |               |     int
      |               std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected initializer before '==' token
    7 |   int ans==700
      |          ^~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<3;i++){
      |               ^
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:9:12: error: extended character ‘ is not valid in an identifier
    9 | if(str[i]==‘o’){
      |            ^
a.cc:9:12: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:12: error: '\U00002018o\U00002019' was not declared in this scope
    9 | if(str[i]==‘o’){
      |            ^~~
Language: C++

#include<iostream>
#include<string>
int Main(){
std::string s[3];
  int y=700;
  std::cin>>s[0]>>s[1]>>s[2];
  for(int i=0;i<3;i++){
  if(s[i]='o'){
  y+=100;
  }
  }
  std::cout<<y<<std::endl;
}

Compiler output:
a.cc: In function 'int Main()':
a.cc:8:10: error: could not convert 's[i].std::__cxx11::basic_string<char>::operator=(111)' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |   if(s[i]='o'){
      |      ~~~~^~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
Language: C++

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

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

import java.util.Scanner;

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


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++

#include <iostream>
using namespace std;

int main(){
  char tp[3];
  for (size_t i = 0; i < 3; i++) {
    cin>>tp[i];
  }
  int num;
  for (size_t j = 0; j < 3; j++) {
    if(tp[j]==o){
      num++;
    }
  }
  cout<<700+100*num<<endl;

  return 0;
}



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

#include <iostream>
using namespace std;

int main(){
  char tp[3];
  for (size_t i = 0; i < 3; i++) {
    cin>>tp[i]
  }
  int num;
  for (size_t j = 0; j < 3; j++) {
    if(tp[j]==o){
      num++;
    }
  }
  cout<<700+100*num<<endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before '}' token
    7 |     cin>>tp[i]
      |               ^
      |               ;
    8 |   }
      |   ~            
a.cc:11:15: error: 'o' was not declared in this scope
   11 |     if(tp[j]==o){
      |               ^
Language: C++

#include<stdio.h>

int main(void) {

	int S[4] = { 'a', 'b', 'c' };
	int sum = 700;

	scanf("%d%d%d", S[0], S[1], S[2]);

	if (S[0] == o)
		sum += 100;
	if (S[1] == o)
		sum += 100;
	if (S[2] == o)
		sum += 100;

	printf("%d", sum);

	return 0;


}

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

#include<iostream>
#include<stdio.h>
#include <cstdlib>  // abs() for integer
#include <cmath>    // abs() for float, and fabs()

int main(void){
    char order[3];
    int cnt_o = 0;
    int i;

    std::cin >> order;

    for(i=0; i<3; i++){
        if(order[i] == "o")cnt_o++;
    }

    std::cout << 700+100*cnt_o << std::endl;
    return 0;
}

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

#include<iostream>

int main()
{
	int n,x,i;
	cin >> n >> x;

	int m[n];

	int Ado=0;
	for(i=0; i<n; i++){
		cin >> m[i];
		Ado += m[i];
	}

	int count=0;

	x -= Ado;
	count += n;

	int min=m[0];
	for(i=1; i<n; i++){
		if(m[i] < min) min=m[i];
	}

	count += x/min;

	cout << count << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> n >> x;
      |         ^~~
      |         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:28:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |         cout << count << 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:28:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   28 |         cout << count << 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;
    cout << 700 + 100 * count(s.begin(), s.end(), 'o') << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'count' was not declared in this scope
    8 |     cout << 700 + 100 * count(s.begin(), s.end(), 'o') << endl;
      |                         ^~~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str ord;
      |   ^~~
      |   std
a.cc:7:10: error: 'ord' was not declared in this scope
    7 |   cin >> ord;
      |          ^~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |   str ord;
      |   ^~~
      |   std
a.cc:7:10: error: 'ord' was not declared in this scope
    7 |   cin >> ord;
      |          ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before ':' token
   11 |   cout<<700+a*100<<endl:
      |                        ^
      |                        ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'o' was not declared in this scope
    8 |   for(int i=o;i<3;i++){
      |             ^
a.cc:11:24: error: expected ';' before ':' token
   11 |   cout<<700+a*100<<endl:
      |                        ^
      |                        ;
Language: C++

1 
#include <stdio.h>
2 
int main(void)
3 
{
4 
    printf("hello, world!");
5 
    return 0;
6 
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1
      | ^
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 2
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string S;
    cin >> S;
    int count = 0;
    for(int i = 0;i < 3;i++){
        if(S.at(i) == 'o'){
            count++;
        }
        else{
        continue;
        }
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: expected '}' at end of input
   15 |     }
      |      ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string S = Console.ReadLine();
            int value = 700;

            for (int i = 0; i < 3; i++)
            {
                if (S[i] == 'o') value += 100;
            }

            Console.WriteLine(value);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:23:6: error: expected ';' after class definition
   23 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder::Program::Main(int*)':
a.cc:13:13: error: 'string' was not declared in this scope
   13 |             string S = Console.ReadLine();
      |             ^~~~~~
a.cc:18:21: error: 'S' was not declared in this scope
   18 |                 if (S[i] == 'o') value += 100;
      |                     ^
a.cc:21:13: error: 'Console' was not declared in this scope
   21 |             Console.WriteLine(value);
      |             ^~~~~~~
Language: C++

int main()
{
	string str;
	cin >> str;
	int price = 700;
	for (char& c : str) {
		if (c == 'o')
		{
			price += 100;
		}
	}
	cout << price;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string str;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> str;
      |         ^~~
a.cc:4:16: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |         cin >> str;
      |                ^~~
      |                std
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << price;
      |         ^~~~
Language: C++

int main()
{
	std::string S;
	std::cin >> S;
	int y = 0;
	for (auto x : S)
	{
		if (x == 'o')
		{
			y++;
		}
	}
	std::cout << y << std::endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'string' is not a member of 'std'
    3 |         std::string S;
      |              ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main()
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> S;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:4:21: error: 'S' was not declared in this scope
    4 |         std::cin >> S;
      |                     ^
a.cc:13:14: error: 'cout' is not a member of 'std'
   13 |         std::cout << y << std::endl;
      |              ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:32: error: 'endl' is not a member of 'std'
   13 |         std::cout << y << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

int main()
{
	std::string S;
	std::cin >> S;
	int y = 0;
	for (auto x : S)
	{
		if (x == '〇')
		{
			y++;
		}
	}
	std::cout << y << std::endl;
	return 0;
}

Compiler output:
a.cc:8:26: warning: multi-character character constant [-Wmultichar]
    8 |                 if (x == '〇')
      |                          ^~~~
a.cc: In function 'int main()':
a.cc:3:14: error: 'string' is not a member of 'std'
    3 |         std::string S;
      |              ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main()
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> S;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:4:21: error: 'S' was not declared in this scope
    4 |         std::cin >> S;
      |                     ^
a.cc:13:14: error: 'cout' is not a member of 'std'
   13 |         std::cout << y << std::endl;
      |              ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:32: error: 'endl' is not a member of 'std'
   13 |         std::cout << y << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

#include<iostream>
using namespace std;



int main() {
	int N, X,count=0;
	cin >> N;
	cin >> X;
	int m[1000000];
	for (int i = 0; i < N; i++) {
		cin >> m[i];
	}
	int j = m[0];
	for (int i = 1; i < N; i++) {
		if (j > m[i]) {
			j = m[i];
		}
	}

		for (int i = 0; i < N; i++) {
			X = X - m[i];
			count++;
		}

		while (true){
			X = X - j;
			if (X < 0) {
				break
			}
			count++;
	}

	cout << count << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:38: error: expected ';' before '}' token
   29 |                                 break
      |                                      ^
      |                                      ;
   30 |                         }
      |                         ~
Language: C++

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

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

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

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

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

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

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

int main(int argc, char const *argv[]) {
	string s;
	cin >> s;
	int count =0;
	if(s[0]=="o")count+=1;
	if(s[1]=="o")count+=1;
	if(s[2]=="o")count+=1;
	cout << count*100+700 << endl;
	return 0;
}

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

#include <iostream>
using namespace std;

int main(void){
    char topping[3];
    cin >> topping;

    int count = 0:
    for(int i = 0; i < 3; i++){
        if(topping[i] == 'o'){ count++; }
    }
    
    cout << (700 + count * 100) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ',' or ';' before ':' token
    8 |     int count = 0:
      |                  ^
a.cc:9:20: error: 'i' was not declared in this scope
    9 |     for(int i = 0; i < 3; i++){
      |                    ^
Language: C

#include <stdio.h>
int main(void)
{
	int i;
	int N;
	int m;
	int X;
	if (N >= 2 && N <= 100 && 1 <= m && m <= 1000 && X<=100000)
	{
		scanf_s("%d",&N);

		for (i = 0;i < N;i++)
		{
			scanf("%d", &m);
		}

	}
}

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <queue>
#include <cmath>

int main(void){
	
	std::string s; 

	std::cin >> s;

	std::cout << 700 + 100 * std::count(s.begin(), s.end(), "o") << std::endl;


	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 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/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Value = const char [2]]':
/usr/include/c++/14/bits/stl_algobase.h:2163:12:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 2163 |         if (__pred(__first))
      |             ~~~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4033:29:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 4033 |       return std::__count_if(__first, __last,
      |              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4034 |                              __gnu_cxx::__ops::__iter_equals_val(__value));
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:14:37:   required from here
   14 |         std::cout << 700 + 100 * std::count(s.begin(), s.end(), "o") << std::endl;
      |                                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:270:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  270 |         { return *__it == _M_value; }
      |                  ~~~~~~^~~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 | string a,i=700;
      |            ^~~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
      string S;
      cin >> S;
      int y = 700
        for(int i=0;i<3;i++)
          if (S[i]==”o”）{
            y+=700}
              cout<<y<<endl;
              }
     
      

Compiler output:
a.cc:9:21: error: extended character ” is not valid in an identifier
    9 |           if (S[i]==”o”）{
      |                     ^
a.cc:9:21: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: expected ',' or ';' before 'for'
    8 |         for(int i=0;i<3;i++)
      |         ^~~
a.cc:8:21: error: 'i' was not declared in this scope
    8 |         for(int i=0;i<3;i++)
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int r=0,b=0,data;
	char s[3]
	cin>>s;
	for(int i=0;i<3;i++)
	{
		if(s[i]=='x')
		{
			r=1;
		}
		else
		{
			b++;
		}
	}		
	
	data = (700*r)+(100*b)

	cout<<data<<endl;		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected initializer before 'cin'
    7 |         cin>>s;
      |         ^~~
a.cc:10:20: error: 's' was not declared in this scope
   10 |                 if(s[i]=='x')
      |                    ^
a.cc:20:31: error: expected ';' before 'cout'
   20 |         data = (700*r)+(100*b)
      |                               ^
      |                               ;
   21 | 
   22 |         cout<<data<<endl;
      |         ~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String[] S = new String[3];
		int sum = 700;
		int add = 0;
		for (int i = 0; i < 3; i++) {
			S[i] = scan.next();
			if (S[i].equals("o")) {
				add += 100;
			}
		}
		System.out.print(sum + add);
	}

}


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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'o' was not declared in this scope
   10 |         if(str[i]==o){
      |                    ^
Language: Java

import java.util.*;
public class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int price = 700;
		String s = sc.next();
		for(int i = 0; i < 3; i++){
			String a = s.substring(i,i+1);
			if(a.equals("o")){
				price += 100;
			}
		}
		System.out.println(price.toString());
	}
}

Compiler output:
Main.java:14: error: int cannot be dereferenced
		System.out.println(price.toString());
		                        ^
1 error
Language: Java

import java.util.*;
public class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int price = 700;
		String s = sc.next();
		for(int i = 0; i < 3; i++){
			a = s.substring(i,i+1);
			if(a.equals("o")){
				price += 100;
			}
		}

	}
}

Compiler output:
Main.java:9: error: cannot find symbol
			a = s.substring(i,i+1);
			^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
			if(a.equals("o")){
			   ^
  symbol:   variable a
  location: class Main
2 errors
Language: C++

let s=prompt();
let res=0;
for(let i=0;i<s.length;i++)if(s[i]=='o')res++;
console.log(700+res*100);

Compiler output:
a.cc:1:1: error: 'let' does not name a type
    1 | let s=prompt();
      | ^~~
a.cc:2:1: error: 'let' does not name a type
    2 | let res=0;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'for'
    3 | for(let i=0;i<s.length;i++)if(s[i]=='o')res++;
      | ^~~
a.cc:3:13: error: 'i' does not name a type
    3 | for(let i=0;i<s.length;i++)if(s[i]=='o')res++;
      |             ^
a.cc:3:24: error: 'i' does not name a type
    3 | for(let i=0;i<s.length;i++)if(s[i]=='o')res++;
      |                        ^
a.cc:4:1: error: 'console' does not name a type; did you mean 'const'?
    4 | console.log(700+res*100);
      | ^~~~~~~
      | const
Language: C++

#include<bits/stdc++.h>
#define pi 3.141592653897932384626
#define abs(x) ((x)>0?(x):(-(x)))
#define eps (double)(0.0000001)
//freopen("in.txt","r",stdin);freopen("out.txt","w",stdout);
using namespace std;
int main()
{
    char a[10];
    gets(a);
    long s=0;
    for(long i=0;i<3;++i)if(a[i]=='o')++s;
    cout<<100*(7+s)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |     gets(a);
      |     ^~~~
      |     getw
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
typedef long long ll;
int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int A,B,C,X,Y,val,min,max,ans;
  cin>>A>>B>>C>>X>>Y;
  if(X<=Y){
    min=X;
    max=Y;
  }else{
    min=Y;
    max=X;
  }
  ans=A*X+B*Y+C*(2X+2Y);
  for(int i=0;i<=max;i++){
    val=C*2*i;
    if(X>i){
      val+=(X-i)*A;
    }
    if(Y>i){
      val+=(Y-i)*B;
    }
    if(ans>=val)ans=val;
  }
  cout<<val;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: unable to find numeric literal operator 'operator""X'
   17 |   ans=A*X+B*Y+C*(2X+2Y);
      |                  ^~
a.cc:17:21: error: unable to find numeric literal operator 'operator""Y'
   17 |   ans=A*X+B*Y+C*(2X+2Y);
      |                     ^~