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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: expected ';' before '}' token
   17 |   cout << y << endl
      |                    ^
      |                    ;
   18 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'o' was not declared in this scope
    8 |   if (s[0] == o) {
      |               ^
a.cc:11:15: error: 'o' was not declared in this scope
   11 |   if (s[1] == o) {
      |               ^
a.cc:14:15: error: 'o' was not declared in this scope
   14 |   if (s[2] == o) {
      |               ^
a.cc:17:20: error: expected ';' before '}' token
   17 |   cout << y << endl
      |                    ^
      |                    ;
   18 | }
      | ~
Language: C++

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

int main() {
  string s;
  cin >> s;
  int y = 700;
  if (s[0] == "o") {
    y = y + 100;
  }
  if (s[1] == "o") {
    y = y + 100;
  }
  if (s[2] == "o") {
    y = y + 100;
  }
  cout << y << 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") {
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if (s[1] == "o") {
a.cc:14:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if (s[2] == "o") {
a.cc:17:20: error: expected ';' before '}' token
   17 |   cout << y << endl
      |                    ^
      |                    ;
   18 | }
      | ~
Language: C++

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

int main() {
  string s;
  int y = 700;
  if (s[0] == "o") {
    y = y + 100;
  }
  if (s[1] == "o") {
    y = y + 100;
  }
  if (s[2] == "o") {
    y = y + 100;
  }
  cout << y << 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") {
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[1] == "o") {
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if (s[2] == "o") {
a.cc:16:20: error: expected ';' before '}' token
   16 |   cout << y << endl
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'o' was not declared in this scope
    7 |   if (s[0] == o) {
      |               ^
a.cc:10:15: error: 'o' was not declared in this scope
   10 |   if (s[1] == o) {
      |               ^
a.cc:13:15: error: 'o' was not declared in this scope
   13 |   if (s[2] == o) {
      |               ^
a.cc:16:20: error: expected ';' before '}' token
   16 |   cout << y << endl
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'o' was not declared in this scope
    7 |   if (s[0] = o) {
      |              ^
a.cc:10:14: error: 'o' was not declared in this scope
   10 |   if (s[1] = o) {
      |              ^
a.cc:13:14: error: 'o' was not declared in this scope
   13 |   if (s[2] = o) {
      |              ^
a.cc:16:20: error: expected ';' before '}' token
   16 |   cout << y << endl
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   if (s[0] = "o") {
      |              ^~~
      |              |
      |              const char*
a.cc:10:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   10 |   if (s[1] = "o") {
      |              ^~~
      |              |
      |              const char*
a.cc:13:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   13 |   if (s[2] = "o") {
      |              ^~~
      |              |
      |              const char*
a.cc:16:20: error: expected ';' before '}' token
   16 |   cout << y << endl
      |                    ^
      |                    ;
   17 | }
      | ~
Language: C++

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

int main() {
  string s;
  int y = 700;
  if (s[0] = "o") {
    y = y + 100;
  }
  if (s[1] = "o") {
    y = y + 100;
  }
  if (s[2] = "o") {
    y = y + 100;
  }
}

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

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

int main(){
  string S ;
  int counter,i ;

  cin >> S ;
  counter=0 ;

  for(i=0;i<=2;i++){
    if(S[i]=="o"){
      counter++ ;
    }
  }

  cout << 700+counter*100 << endl ;
  return 0;

}


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

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

int main(){
  string S ;
  int counter,i ;

  cin >> S ;
  counter=0 ;

  for(i=0;i<=2;i++){
    if(S[i]==o){
      counter++ ;
    }
  }

  cout << 700+counter*100 << endl ;
  return 0;

}


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

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

int main(){
  string S ;
  int counter,i ;

  cin >> S ;
  counter=0 ;

  for(i=0;i<=2;i++){
    if(S[i]==o){
      counter++ ;
    }
  }

  cout << 700+counter*100 << endl ;

}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'conter' was not declared in this scope; did you mean 'counter'?
   12 |     cout << 700 + 100*conter << endl;
      |                       ^~~~~~
      |                       counter
Language: C++

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


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

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			char[] N = scanner.next().toCharArray();
			Map<Character, Integer> map = new HashMap<>();
			map.put('o',0);
			map.put('x',0);

			for (char c : N) {
				map.put(c, map.get(c) + 1);
			}
			System.out.println(700 + (map.get('o') * 100));
		}
	

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'ans'
    9 |   s[0] == 'o' ans += 100;
      |              ^~~~
      |              ;
a.cc:10:14: error: expected ';' before 'ans'
   10 |   s[1] == 'o' ans += 100;
      |              ^~~~
      |              ;
a.cc:11:14: error: expected ';' before 'ans'
   11 |   s[2] == 'o' ans += 100;
      |              ^~~~
      |              ;
Language: C++

#include<iostream>
#include<numeric>
using namespace std;
 
int main(){
  string s;
  cin >> s;
  cout << 1000 + ((acclumulate(s.begin(), s.end(), 0) - 3 * 'x') / 'o') * 3 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'acclumulate' was not declared in this scope
    8 |   cout << 1000 + ((acclumulate(s.begin(), s.end(), 0) - 3 * 'x') / 'o') * 3 << endl;
      |                    ^~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  cout << 1000 + ((acclumulate(s.begin(), s.end(), 0) - 3 * 'x') / 'o') * 3 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'acclumulate' was not declared in this scope
    7 |   cout << 1000 + ((acclumulate(s.begin(), s.end(), 0) - 3 * 'x') / 'o') * 3 << endl;
      |                    ^~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

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


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") c++;
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[1] == "o") c++;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[2] == "o") c++;
Language: C++

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

int main() {
  string s;
  cin >> s;
  int count = 0;
  for(char t : s) {
    if(t =='') count++;
  }
  cout << 700 + count*100 << endl;
}


Compiler output:
a.cc:9:12: error: empty character constant
    9 |     if(t =='') count++;
      |            ^~
Language: C++

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

int main() {
  string s;
  cin >> s;
  int count = 0;
  for(char t : s) {
    if(t == "o") count++;
  }
  cout << 700 + count*100 << endl;
}


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

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

int main() {
  int s;
  cin >> s;
  int count = 0;
  for(char t : s) {
    if(t == "o") count++;
  }
  cout << 700 + count*100 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'begin' was not declared in this scope
    8 |   for(char t : s) {
      |                ^
a.cc:8:16: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:8:16: error: 'end' was not declared in this scope
    8 |   for(char t : s) {
      |                ^
a.cc:8:16: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(t == "o") count++;
      |        ~~^~~~~~
Language: C++

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

int main() {
  int s;
  cin >> s;
  int count = 0;
  for(char t : s;) {
    if(t == "o") count++;
  }
  cout << 700 + count*100 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'begin' was not declared in this scope
    8 |   for(char t : s;) {
      |                ^
a.cc:8:16: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:8:16: error: 'end' was not declared in this scope
    8 |   for(char t : s;) {
      |                ^
a.cc:8:16: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
a.cc:8:17: error: expected ')' before ';' token
    8 |   for(char t : s;) {
      |      ~          ^
      |                 )
a.cc:8:18: error: expected primary-expression before ')' token
    8 |   for(char t : s;) {
      |                  ^
Language: C++

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

int main() {
  int s;
  cin >> s;
  int count = 0;
  for(t : s;) {
    if(t == "o") count++;
  }
  cout << 700 + count*100 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: found ':' in nested-name-specifier, expected '::'
    8 |   for(t : s;) {
      |         ^
      |         ::
a.cc:8:7: error: 't' has not been declared
    8 |   for(t : s;) {
      |       ^
a.cc:8:13: error: expected primary-expression before ')' token
    8 |   for(t : s;) {
      |             ^
a.cc:8:13: error: expected ';' before ')' token
    8 |   for(t : s;) {
      |             ^
      |             ;
a.cc:9:8: error: 't' was not declared in this scope
    9 |     if(t == "o") count++;
      |        ^
Language: C++


using namespace std;
int main(){
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  string str;
  cin >> str;
  int x = 700;
  if(str[0]=='o')
    x += 100;
  if(str[1]=='o')
    x += 100;
  if(str[2]=='o')
    x += 100;

  cout<<x<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'std::ios' has not been declared
    4 |   std::ios::sync_with_stdio(false);
      |        ^~~
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin.tie(0);
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string str;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> str;
      |   ^~~
a.cc:7:3: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:10: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   cin >> str;
      |          ^~~
      |          std
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<x<<endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:12: error: 'endl' was not declared in this scope
   16 |   cout<<x<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

s = input()
count = 0
if s[0] == "o":
    count += 1
if s[1] == "o":
    count += 1
if s[2] == "o":
    count += 1
print(700 + count*100)


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: request for member 'at' in 's', which is of non-class type 'int'
    9 |    if(s.at(i) == 'o'){
      |         ^~
a.cc:13:21: error: expected '}' at end of input
   13 |   cout << t << endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include <stdio.h>

int int main(){

  char s[3];
  int count=0;

  scanf("%s",s);

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

  printf("%d\n",700+(100*count));
  
  return 0;
}

Compiler output:
main.c:3:5: error: two or more data types in declaration specifiers
    3 | int int main(){
      |     ^~~
Language: C++

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

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

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

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:14: error: 'o' was not declared in this scope
    8 |   if(s[0] == o)price += 100;
      |              ^
a.cc:9:14: error: 'o' was not declared in this scope
    9 |   if(s[1] == o)price += 100;
      |              ^
a.cc:10:14: error: 'o' was not declared in this scope
   10 |   if(s[2] == o)price += 100;
      |              ^
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << price << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << price << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:14: error: 'o' was not declared in this scope
    8 |   if(s[0] == o)price += 100;
      |              ^
a.cc:11:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   cout << price << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   cout << price << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5: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:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
a.cc:8:14: error: 'o' was not declared in this scope
    8 |   if(s[0] == o)price += 100;
      |              ^
Language: C++

#include<bits/stdc++.h>
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:7:43: error: expected unqualified-id before 'o'
    7 |     cout<<700+100*count(s.begin(),s.end().'o')<<endl;
      |                                           ^~~
Language: C++

#include <iostream>
# include<string>

using namespace std;

int main() {
	string ramen;
	cin >> ramen;
	int nedan = 700;
	if (ramen[0] == '〇')  nedan += 100;
	if (ramen[1] == '〇')  nedan += 100;
	if (ramen[2] == '〇')  nedan += 100;

	cout << nedan << endl;
	
	}

}

Compiler output:
a.cc:10:25: warning: multi-character character constant [-Wmultichar]
   10 |         if (ramen[0] == '〇')  nedan += 100;
      |                         ^~~~
a.cc:11:25: warning: multi-character character constant [-Wmultichar]
   11 |         if (ramen[1] == '〇')  nedan += 100;
      |                         ^~~~
a.cc:12:25: warning: multi-character character constant [-Wmultichar]
   12 |         if (ramen[2] == '〇')  nedan += 100;
      |                         ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
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]=="⚪︎"){
      n+=100;
    }
  }
  cout <<n;
  

}


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[i]=="⚪︎"){
Language: C++

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

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

    int count = std::count(topping.cbegin(), topping.cend(), 'o');

    cout << 700 + count * 100 << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
   11 |     int count = std::count(topping.cbegin(), topping.cend(), 'o');
      |                      ^~~~~
      |                      cout
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string x;
  cin>>x;
  int count;
  if(x[0]=="o")count +=100;
  if(x[1]=="o")count +=100;
  if(x[2]=="o")count +=100;
  cout<<count<<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(x[0]=="o")count +=100;
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(x[1]=="o")count +=100;
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(x[2]=="o")count +=100;
Language: C++

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

int main(){
 	char c1, c2, c3;
	cin >> c1 >> c2 >> c3;
 	cout << 700 + (c1 == 'o') + (c2 == 'o') + (c3 == 'o');
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 3include <bits/stdc++.h>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> c1 >> c2 >> c3;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << 700 + (c1 == 'o') + (c2 == 'o') + (c3 == 'o');
      |         ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin >> s;
    int ans = 700;
    for(int i = 0; i < (int)s.size();i++) if(s[i] ==’o’) ans += 100;
    cost << ans << endl;
    return 0;
}


Compiler output:
a.cc:8:53: error: extended character ’ is not valid in an identifier
    8 |     for(int i = 0; i < (int)s.size();i++) if(s[i] ==’o’) ans += 100;
      |                                                     ^
a.cc:8:53: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:53: error: '\U00002019o\U00002019' was not declared in this scope
    8 |     for(int i = 0; i < (int)s.size();i++) if(s[i] ==’o’) ans += 100;
      |                                                     ^~~
a.cc:9:5: error: 'cost' was not declared in this scope; did you mean 'const'?
    9 |     cost << ans << endl;
      |     ^~~~
      |     const
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    string s;
    cin >> s;
    int ans = 700;
    for(int i = 0; i < (int)s.size();i++) if(s[i] == ‘o’) ans += 100;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc:8:54: error: extended character ‘ is not valid in an identifier
    8 |     for(int i = 0; i < (int)s.size();i++) if(s[i] == ‘o’) ans += 100;
      |                                                      ^
a.cc:8:54: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:54: error: '\U00002018o\U00002019' was not declared in this scope
    8 |     for(int i = 0; i < (int)s.size();i++) if(s[i] == ‘o’) ans += 100;
      |                                                      ^~~
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define sort(a) sort((a).begin(),(a).end())
#define rev(a) reverse((a).begin(),(a).end())
using db = double;
using namespace std;
typedef long long ll;


int main() {
  int s;
  cin >> s;
  int cnt = 0;
  rep(i,2) {
    if (s[i] == 'o') cnt++;
  }
  cout << 700 + 100 * cnt << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: invalid types 'int[int]' for array subscript
   18 |     if (s[i] == 'o') cnt++;
      |          ^
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define sort(a) sort((a).begin(),(a).end())
#define rev(a) reverse((a).begin(),(a).end())
using db = double;
using namespace std;
typedef long long ll;


int main() {
  int s;
  cin >> s;
  int cnt = 0;
  rep(i,2) {
    if (s[i] == 'o') cnt++
  }
  cout << 700 + 100 * cnt << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: invalid types 'int[int]' for array subscript
   18 |     if (s[i] == 'o') cnt++
      |          ^
a.cc:18:27: error: expected ';' before '}' token
   18 |     if (s[i] == 'o') cnt++
      |                           ^
      |                           ;
   19 |   }
      |   ~
Language: C++

#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <algorithm>
#include <utility>
#include <set>
#include <queue>
 
using namespace std;
 
int main() {
    
 
    
    string s;
    cin >> s;
    int c = 0;
    for (int i = 0; i < s.size(); ++i)
    {
        if (s[i] == 'x')
        {
            c++;
        }
    }
    
    cout << 700 + c * 100 << endl;
    
    return 0;
}
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <algorithm>
#include <utility>
#include <set>
#include <queue>

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 + c * 100 << endl;
    
    return 0;
}
提出情報
提出日時

Compiler output:
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main() {
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main() {
      |     ^~~~
a.cc:61:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   61 | 提出情報
      | ^~~~~~~~
Language: C++

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

int main()
{
	string str;
  	cin>>str;
  	int toppings=0;
  	for(int i=0 ; i<str.length() ; ++i)
	toppings+=str[i]=='o';
  	cout<<(700+100*toppings)<<endkl
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:35: error: 'endkl' was not declared in this scope
   11 |         cout<<(700+100*toppings)<<endkl
      |                                   ^~~~~
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

int main(){
string S;
cin >> S;
int ans = 700;
REP(i, 3) if(S[i] == 'o') ans ;= 100;

print(ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:32: error: expected primary-expression before '=' token
   37 | REP(i, 3) if(S[i] == 'o') ans ;= 100;
      |                                ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

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


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

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

Compiler output:
Main.java:5: error: incompatible types: String cannot be converted to int
      int str = sc.next();
                       ^
Main.java:7: error: int cannot be dereferenced
	  if(str.substring(0,1).equals("o")) count++;
	        ^
Main.java:8: error: int cannot be dereferenced
      if(str.substring(1,2).equals("o")) count++;
            ^
Main.java:9: error: int cannot be dereferenced
      if(str.substring(2,3).equals("o")) count++;
            ^
4 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer 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++){
      |               ^
a.cc:9:9: error: 'a' was not declared in this scope
    9 |   cout<<a*100+700<<endl;
      |         ^
Language: C

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

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

#include <iostream>
using namespace std;
int main(){int A,B,C,X,Y,p;cin >> A >> B >> C >> X >> Y;
cout << min(min(A*X+B*Y,2*C*min(X,Y)+ (X > Y ? A * a : B * (Y - X))),2 * C * ( X > Y ? X : Y));
}

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc:5:1: error: two or more data types in declaration of 'main'
    5 | int int main() {
      | ^~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:4:1: error: two or more data types in declaration of 'main'
    4 | int int main() {
      | ^~~
Language: C++

##include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include <iostream>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include <iostream>
      |   ^~~~~~~
a.cc:4:1: error: two or more data types in declaration of 'main'
    4 | int int main() {
      | ^~~
Language: C++

##include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include <iostream>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include <iostream>
      |   ^~~~~~~
a.cc:4:1: error: two or more data types in declaration of 'main'
    4 | int int main() {
      | ^~~
Language: C++

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

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string a;
  cin >> a;
  cout << coutn(a.begin(), a.end(), 'o') * 100 + 700 << endl;
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  string a;
  cin >> a;
  cout << coutn(a.begin(), a.end(), o) * 100 + 700 << endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'A'
    5 |   cin A;
      |      ^~
      |      ;
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: two or more data types in declaration of 'i'
    9 |     for (auto int i = 0; i < S.size(); i++) {
      |          ^~~~
a.cc:9:26: error: 'i' was not declared in this scope
    9 |     for (auto int i = 0; i < S.size(); i++) {
      |                          ^
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    string x,y,z;
	cin >> x;
    int ans=700;
  fr(i,3){
    if(x[i]=="o")ans+=100;
  }
      cout << ans << endl;
}


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

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


int main() {
    string x,y,z;
	cin >> x;
    int ans=700;
  fr(i,n){
    if(x[i]==o)ans+=100;
  }
      cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'n' was not declared in this scope
   16 |   fr(i,n){
      |        ^
a.cc:8:31: note: in definition of macro 'fr'
    8 | #define fr(i,n) for(int i=0;i<n;i++)
      |                               ^
a.cc:17:14: error: 'o' was not declared in this scope
   17 |     if(x[i]==o)ans+=100;
      |              ^
Language: C++

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
  int c=0;
  for (int i=0;i<3;i++){
    if (s.at(i)=="o")c++;
  }
  cout << 700+100*c <<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.at(i)=="o")c++;
      |         ~~~~~~~^~~~~
Language: C++

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

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

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #indlude; did you mean #include?
    2 | #indlude <string>
      |  ^~~~~~~
      |  include