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

#include<iostream>
#include<string>

using namespace std;

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




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

#include<iostream>
#include<string>

using namespace std;

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



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

#include<iostream>
#include<string>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'sting' was not declared in this scope
    8 |   sting S;
      |   ^~~~~
a.cc:11:6: error: 'S' was not declared in this scope
   11 |   if(S[0] == "○") mon=mon+100;
      |      ^
a.cc:12:6: error: 'S' was not declared in this scope
   12 |   if(S[1] == "○") mon=mon+100;
      |      ^
a.cc:13:6: error: 'S' was not declared in this scope
   13 |   if(S[2] == "○") mon=mon+100;
      |      ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

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

Compiler output:
a.cc:11:14: warning: multi-character character constant [-Wmultichar]
   11 |   if(S[0] == '○') ++mon=100;
      |              ^~~
a.cc:12:14: warning: multi-character character constant [-Wmultichar]
   12 |   if(S[1] == '○') ++mon=100;
      |              ^~~
a.cc:13:14: warning: multi-character character constant [-Wmultichar]
   13 |   if(S[2] == '○') ++mon=100;
      |              ^~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'sting' was not declared in this scope
    8 |   sting S;
      |   ^~~~~
a.cc:11:6: error: 'S' was not declared in this scope
   11 |   if(S[0] == '○') ++mon=100;
      |      ^
a.cc:12:6: error: 'S' was not declared in this scope
   12 |   if(S[1] == '○') ++mon=100;
      |      ^
a.cc:13:6: error: 'S' was not declared in this scope
   13 |   if(S[2] == '○') ++mon=100;
      |      ^
Language: C++

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

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

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

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

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

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


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

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


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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: expected ';' before '}' token
    8 |     if(S.at(i)=='o')sum++
      |                          ^
      |                          ;
    9 |   }
      |   ~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before '}' token
    9 |     if(s.at(i)=='o') cnt++
      |                           ^
      |                           ;
   10 |   }
      |   ~
Language: C


#include <stdio.h>
int main(void){
char a[4];
  int a=0;
  if(a[0]=="o"){a++;}
    if(a[1]=="o"){a++;}
    if(a[2]=="o"){a++;}
  printf("%d",700+a*100);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: conflicting types for 'a'; have 'int'
    5 |   int a=0;
      |       ^
main.c:4:6: note: previous declaration of 'a' with type 'char[4]'
    4 | char a[4];
      |      ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<string>

using namespace std;

int main(void){
	
	int yen;
	yen = 700;

	string s;

	cin >> s;

	for (k = 0; k < 3; k++) {
		if (s[k] == 'o')yen += 100;
	}
	cout << yen << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'k' was not declared in this scope
   16 |         for (k = 0; k < 3; k++) {
      |              ^
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+100*a<<endl;
}


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

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

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


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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ')' before ';' token
   11 |    a++;
      |       ^
      |       )
a.cc:10:3: note: to match this '('
   10 | if(s[i]=='o';
      |   ^
Language: C++

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

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

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

#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>

using namespace std;
typedef long long ll;

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

#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>

using namespace std;
typedef long long ll;

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

#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>

using namespace std;
typedef long long ll;

int main(){
  string a;cin>>a;
  int x;
  for(int i=0; i<3; i++){
    if(a[i]=="o")
      x++:
  }
  cout<<700+100*x<<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(a[i]=="o")
a.cc:14:10: error: expected ';' before ':' token
   14 |       x++:
      |          ^
      |          ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main(){

  string s;
  cin >> s;

  ll counter = 0;

  for (ll i = 0; s.size();i++){
    if(s[i]=='o')
      counter++;
  }

  count << counter * 100 + 700 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: invalid operands of types '<unresolved overloaded function type>' and 'll' {aka 'long long int'} to binary 'operator<<'
   18 |   count << counter * 100 + 700 << endl;
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>

using namespace std;
int main(){
  sting s;
  int counter=0;
  if(s[0]=='o')++counter;
  if(s[0]=='o')++counter;
  if(s[0]=='o')++counter;
  cout << counter*100+700 << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting s;
      |   ^~~~~
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s[0]=='o')++counter;
      |      ^
a.cc:8:6: error: 's' was not declared in this scope
    8 |   if(s[0]=='o')++counter;
      |      ^
a.cc:9:6: error: 's' was not declared in this scope
    9 |   if(s[0]=='o')++counter;
      |      ^
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>

using namespace std;

int main()
{
    string s;

    cin >> s;

    int price = 700;
    for(int i = 0;i < 3;i++){
        if(s[i] == 'o') p += 100;
    }
    cout << p << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'p' was not declared in this scope
   13 |         if(s[i] == 'o') p += 100;
      |                         ^
a.cc:15:13: error: 'p' was not declared in this scope
   15 |     cout << p << endl;
      |             ^
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 + counter * 100 <<endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[0] == "o") ++counter;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[1] == "o") ++counter;
a.cc:11:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(s[2] == "o") ++counter;
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 + counter * 100 <<endl;
  return 0;
  
}

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

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

int main () {
  int answer = 0 ;
  for (int i = 0 ; i < 3 ; i++ ) {
    char a ;
    a = '' ;
    if(a == 'o') answer++ ;
  }
  
  cout << 700 + 100 * answer << endl ;
  
}


Compiler output:
a.cc:8:9: error: empty character constant
    8 |     a = '' ;
      |         ^~
Language: C++

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

int main(){
  string s;
  cin >> s;
  
  int price = 700;
  
  for(auto c: s){
    if c == 'o'
      price += 100;
  }
  
  cout << price << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected '(' before 'c'
   12 |     if c == 'o'
      |        ^
      |        (
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> s;
      |   ^~~
a.cc:3:10: error: 's' was not declared in this scope
    3 |   cin >> s;
      |          ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << counter << endl
      |   ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |   cout << counter << endl
      |                      ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:9:14: warning: multi-character character constant [-Wmultichar]
    9 |   if(S[0] == '○') count++;
      |              ^~~
a.cc:10:14: warning: multi-character character constant [-Wmultichar]
   10 |   if(S[1] == '○') count++;
      |              ^~~
a.cc:11:14: warning: multi-character character constant [-Wmultichar]
   11 |   if(S[2] == '○') count++;
      |              ^~~
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'int'
    6 |   cin >> S
      |           ^
      |           ;
    7 | 
    8 |   int count = 0;
      |   ~~~      
a.cc:9:19: error: 'count' was not declared in this scope
    9 |   if(S[0] == '○') count++;
      |                   ^~~~~
a.cc:10:19: error: 'count' was not declared in this scope
   10 |   if(S[1] == '○') count++;
      |                   ^~~~~
a.cc:11:19: error: 'count' was not declared in this scope
   11 |   if(S[2] == '○') count++;
      |                   ^~~~~
a.cc:13:17: error: 'count' was not declared in this scope
   13 |   cout << 700 + count*100 << endl;
      |                 ^~~~~
Language: C++

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

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

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

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

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

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

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

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

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

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


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

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

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = 700;
      |   ^~~
      |   abs
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = 700;
      |   ^~~
      |   abs
a.cc:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (S[i] == "o") {
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = 700;
      |   ^~~
      |   abs
a.cc:8:8: error: 'i' was not declared in this scope
    8 |   for (i = 0; i < 3; i++) {
      |        ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'counter' was not declared in this scope
    8 |   if (S[0] == 'o') counter += 100;
      |                    ^~~~~~~
a.cc:9:20: error: 'counter' was not declared in this scope
    9 |   if (S[1] == 'o') counter += 100;
      |                    ^~~~~~~
a.cc:10:20: error: 'counter' was not declared in this scope
   10 |   if (S[2] == 'o') counter += 100;
      |                    ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

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

,>,>,>>+++++++++++[<++++++++++>-]<+[<-<-<->>>-]++++++++++>+<
<<<
[>>>->[-]<<<<[-]]>
[>>->[-]<<<[-]]>
[>->[-]<<[-]]>
>>>+++++++[<+++++++>-]<<
[<[-]>>.<[-]]<-
[>>+<<-]>>.[-]
>+++++++[<+++++++>-]<-..


Compiler output:
a.cc:1:1: error: expected unqualified-id before ',' token
    1 | ,>,>,>>+++++++++++[<++++++++++>-]<+[<-<-<->>>-]++++++++++>+<
      | ^
a.cc:1:2: error: expected unqualified-id before '>' token
    1 | ,>,>,>>+++++++++++[<++++++++++>-]<+[<-<-<->>>-]++++++++++>+<
      |  ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main(){

  char S[3];
  int num = 0;

  scanf("%s", &S);

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

  printf("%d\n", num+700);

  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  
  int n = 700;
  
  int(s[0] == '○') {n++;}
  int(s[1] == '○') {n++;}
  int(s[2] == '○') {n++;}
  
  cout << s <<endl;
  
}
    

Compiler output:
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |   int(s[0] == '○') {n++;}
      |               ^~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |   int(s[1] == '○') {n++;}
      |               ^~~
a.cc:12:15: warning: multi-character character constant [-Wmultichar]
   12 |   int(s[2] == '○') {n++;}
      |               ^~~
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '{' token
   10 |   int(s[0] == '○') {n++;}
      |                   ^~
      |                   ;
a.cc:11:19: error: expected ';' before '{' token
   11 |   int(s[1] == '○') {n++;}
      |                   ^~
      |                   ;
a.cc:12:19: error: expected ';' before '{' token
   12 |   int(s[2] == '○') {n++;}
      |                   ^~
      |                   ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  
  int n = 700;
  
  int(s[0] == '○') ++n;
  int(s[1] == '○') ++n;
  int(s[2] == '○') ++n;
  
  cout << s <<endl;
  
}
    

Compiler output:
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |   int(s[0] == '○') ++n;
      |               ^~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |   int(s[1] == '○') ++n;
      |               ^~~
a.cc:12:15: warning: multi-character character constant [-Wmultichar]
   12 |   int(s[2] == '○') ++n;
      |               ^~~
a.cc: In function 'int main()':
a.cc:10:3: error: lvalue required as increment operand
   10 |   int(s[0] == '○') ++n;
      |   ^~~~~~~~~~~~~~~~
a.cc:11:3: error: lvalue required as increment operand
   11 |   int(s[1] == '○') ++n;
      |   ^~~~~~~~~~~~~~~~
a.cc:12:3: error: lvalue required as increment operand
   12 |   int(s[2] == '○') ++n;
      |   ^~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >> s;
    int c = 0;
    if (s.at(0) == 'o') c++:
    if (s.at(1) == 'o') c++:
    if (s.at(2) == 'o') c++:
    cout << 700 + (100 * c) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expected ';' before ':' token
    7 |     if (s.at(0) == 'o') c++:
      |                            ^
      |                            ;
Language: C++

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

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

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


import java.util.*;

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

Compiler output:
Main.java:11: error: cannot find symbol
        if(charAt(i)=='o'){
           ^
  symbol:   method charAt(int)
  location: class Main
1 error
Language: C++

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


int main(){

    string S;
    cin >> S;

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

    cout << price << endl;

    return 0;



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

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

Compiler output:
main.c: In function 'main':
main.c:6:28: error: 'o' undeclared (first use in this function)
    6 |   for(i=0;i<=2;i++)if(s[i]=o)n+=100;
      |                            ^
main.c:6:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
  int count = 0, i;
  char top[4];
  
  scanf("%s", top);
  
  for(i = 0; i < 3; i++){
    if(s[i] == 'o'){
      count++;
    }
  }
  
  printf("%d\n", 700 + 100*count);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: 's' undeclared (first use in this function)
   10 |     if(s[i] == 'o'){
      |        ^
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  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 << 700 + 100*count << endl;
}

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

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

int main() {
  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 << 700 + 100*count << endl;
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class ABC095A {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strList = str.split("");
		int ans = 700;
		if(strList[0] == "o"){
			ans += 100;
		}
		if(strList[1] == "o"){
			ans += 100;
		}
		if(strList[2] == "o"){
			ans += 100;
		}
		System.out.println(ans);
	}
}


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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int ramen = 700;
		char[] ary = sc.next().toCharArray();
		for (char c : ary) {
			if(c == 'o') ramen += 100;
		}
		System.out.println(ramen);
	}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String S = scanner.next();
		int price = 700;

		for (int i = 0; i < 3; i++) {
			//文字列Sを1文字ずつに分解し、listに追加
			String s = S.substring(i,i+1);

			//もし、"o"であれば、priceにプラス100
			if (s.equals("o")) {
				price += 100;
			}
		}
		System.out.println(price);
	

Compiler output:
Main.java:19: error: reached end of file while parsing
		System.out.println(price);
		                          ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'i' undeclared (first use in this function)
    6 |     for(i=0;i<4;i++){
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
	int price;
	char order[8];
	cin >> order;
	price = 700;

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

	cout << price;
	
	return 0;
}


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

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

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

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

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


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

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



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

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



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

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



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

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
  string s; cin >> s;
  int count = 700;
  for(int i = 0; i <= 2; ++i){
    if(s[i] == "o") count += 100;
  }
  cout << count << endl;
}

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

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main()
{
  string s; cin >> s;
  int count = 700;
  for(int i = 0; i <= 2; ++i){
    if(a[i] == "o") count += 100;
  }
  cout << count << endl;
}

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

#include<iostream>
#include<string>
using namespace std;
int main() {
	string S;
	int cnt = 0;
	cin >> S;
	if (S[0] == '〇') {
		cnt++:
	}
	if (S[1] == '〇') {
		cnt++:
	}if (S[2] == '〇') {
		cnt++:
	}
	cout << 700 + cnt * 100 << endl;
}

Compiler output:
a.cc:8:21: warning: multi-character character constant [-Wmultichar]
    8 |         if (S[0] == '〇') {
      |                     ^~~~
a.cc:11:21: warning: multi-character character constant [-Wmultichar]
   11 |         if (S[1] == '〇') {
      |                     ^~~~
a.cc:13:22: warning: multi-character character constant [-Wmultichar]
   13 |         }if (S[2] == '〇') {
      |                      ^~~~
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before ':' token
    9 |                 cnt++:
      |                      ^
      |                      ;
a.cc:12:22: error: expected ';' before ':' token
   12 |                 cnt++:
      |                      ^
      |                      ;
a.cc:14:22: error: expected ';' before ':' token
   14 |                 cnt++:
      |                      ^
      |                      ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'for'
    6 |   for(int i=0;i<3;i++){
      |   ^~~
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   for(int i=0;i<3;i++){
      |               ^
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;
  int a = counter*100;
  cout << 700 + a << endl;
}

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

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

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

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

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

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

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

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'nameapaca'
    3 | using nameapaca std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>s;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 's' was not declared in this scope
    7 |   cin>>s;
      |        ^
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<700+100*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:16:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |   cout<<700+100*count<<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected ';' before '}' token
    7 |         if(a[k]=='o')i++
      |                         ^
      |                         ;
    8 |     }
      |     ~
Language: C++

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

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





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

#include<stdio.h>
#include<string.h>
int main(void)
{
	int cnt,x;
	char s[4];
	scanf(""%s",&s);
	cnt=0;
	if(s[0]=='o'){
		cnt++;
	}
	if(s[1]=='o'){
		cnt++;
	}
	if(s[2]=='o'){
		cnt++;
	}
	x=700+cnt*100;
	printf("%d\n",x);
	return 0;
}

Compiler output:
a.cc:7:19: warning: missing terminating " character
    7 |         scanf(""%s",&s);
      |                   ^
a.cc:7:19: error: missing terminating " character
    7 |         scanf(""%s",&s);
      |                   ^~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: invalid operands of types 'const char [1]' and 'char [4]' to binary 'operator%'
    7 |         scanf(""%s",&s);
      |               ~~^~
      |               |  |
      |               |  char [4]
      |               const char [1]
Language: C++

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

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

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

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

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

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

}

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'for'
    8 |   for(int i=0;i<3;i++){
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<3;i++){
      |               ^
a.cc:13:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |   cout<<700+100*cnt<<endl;
      |                 ^~~
      |                 int
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();
int num = Integer.parseInt(str);
if(num == "ooo");{
System.out.println("1000");
}
if(num == "oox");{
System.out.println("900");
}
if(num == "oxo");{
System.out.println("900");
}
if(num == "oxx");{
System.out.println("800");
}
if(num == "xoo");{
System.out.println("900");
}
if(num == "xox");{
System.out.println("800");
}
if(num == "xxo");{
System.out.println("800");
}
if(num == "xxx");{
System.out.println("700");
}
}
}

Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
if(num == "ooo");{
       ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '=='
if(num == "oox");{
       ^
  first type:  int
  second type: String
Main.java:16: error: bad operand types for binary operator '=='
if(num == "oxo");{
       ^
  first type:  int
  second type: String
Main.java:19: error: bad operand types for binary operator '=='
if(num == "oxx");{
       ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '=='
if(num == "xoo");{
       ^
  first type:  int
  second type: String
Main.java:25: error: bad operand types for binary operator '=='
if(num == "xox");{
       ^
  first type:  int
  second type: String
Main.java:28: error: bad operand types for binary operator '=='
if(num == "xxo");{
       ^
  first type:  int
  second type: String
Main.java:31: error: bad operand types for binary operator '=='
if(num == "xxx");{
       ^
  first type:  int
  second type: String
8 errors