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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <stdio.h>
#include <list>
#include <numeric>
#include <stack>
#include <queue>
#include <tuple>
#include <bitset>
#include <map>
#include <math.h>
//　ceil(a/b)   (a + (b - 1))/ b
using namespace std;
#define rep(i,n) for(int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int,int> P;
const int inf=1000000007;
const int mod=1000000007;
const double PI=3.14159265358979323846;
int dx[] = {1,-1,0,0};
int dy[] = {0,0,1,-1};

int gcd(int a, int b){
  if (a%b==0){
    return(b);
  }
  else{
    return(gcd(b,a%b));
  }
}


// ll memo[2020][2020];
// int pascal_triangle(){
//   for(int i = 0; i < 2020; i++){
//     for(int j = 0; j < i+1; j++){
//       if(j == 0 || j == i) memo[i][j] = 1;
//       else{
// 	memo[i][j] = (memo[i-1][j-1]+memo[i-1][j]);
//       }
//     }
//   }
//   return 0;
// }


int factorial(int n){
  if(n == 0) return 1;
  return n*factorial(n-1);
}

int divisor(int a){
  int cnt = 0;
  for(int i=1; i <= a; i++) if(a%i == 0) cnt++;
  return cnt;
}

int comb(int n, int k){
  return factorial(n) / (factorial(n-k)*factorial(k));
}

int answer(bool f){
  if(f) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}






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









Compiler output:
a.cc: In function 'int main()':
a.cc:81:16: error: invalid types 'int[int]' for array subscript
   81 |   rep(i,3) if(s[i] == 'o') ans+=100;
      |                ^
Language: Java

class Main {
	public static void main (String args[]);
  Scanner sc =  nwe Scanner(System.in);
  int S = 700;
  int o = 100;
  int x = 0;
  System.out.println(S + x + o);

Compiler output:
Main.java:3: error: ';' expected
  Scanner sc =  nwe Scanner(System.in);
                   ^
Main.java:3: error: invalid method declaration; return type required
  Scanner sc =  nwe Scanner(System.in);
                    ^
Main.java:3: error: <identifier> expected
  Scanner sc =  nwe Scanner(System.in);
                                     ^
Main.java:7: error: <identifier> expected
  System.out.println(S + x + o);
                    ^
Main.java:7: error: <identifier> expected
  System.out.println(S + x + o);
                      ^
Main.java:7: error: reached end of file while parsing
  System.out.println(S + x + o);
                                ^
6 errors
Language: C++

(define (input->string x)
  (cond
    ((symbol? x) (symbol->string x))
    ((number? x) (number->string x))
    ((string? x) x)
    (else #f)
    )
  )
(define str (input->string (read)))
(define (chk str x)
  (if (char=? (string-ref str x) #\o) 1 0))
(print (+ 700 (* 100 (+ (chk str 0) (chk str 1) (chk str 2)))))

Compiler output:
a.cc:6:11: error: stray '#' in program
    6 |     (else #f)
      |           ^
a.cc:11:34: error: stray '#' in program
   11 |   (if (char=? (string-ref str x) #\o) 1 0))
      |                                  ^
a.cc:11:35: error: stray '\' in program
   11 |   (if (char=? (string-ref str x) #\o) 1 0))
      |                                   ^
a.cc:1:8: error: expected ')' before '(' token
    1 | (define (input->string x)
      | ~      ^~
      |        )
Language: C++

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

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

Compiler output:
a.cc:9:22: error: extended character 　 is not valid in an identifier
    9 |     if (S[0] == 'o') counter　+= 100;
      |                      ^
a.cc:10:22: error: extended character 　 is not valid in an identifier
   10 |     if (S[1] == 'o') counter　+= 100;
      |                      ^
a.cc:11:22: error: extended character 　 is not valid in an identifier
   11 |     if (S[2] == 'o') counter　+= 100;
      |                      ^
a.cc: In function 'int main()':
a.cc:9:22: error: 'counter\U00003000' was not declared in this scope; did you mean 'counter'?
    9 |     if (S[0] == 'o') counter　+= 100;
      |                      ^~~~~~~~~
      |                      counter
a.cc:10:22: error: 'counter\U00003000' was not declared in this scope; did you mean 'counter'?
   10 |     if (S[1] == 'o') counter　+= 100;
      |                      ^~~~~~~~~
      |                      counter
a.cc:11:22: error: 'counter\U00003000' was not declared in this scope; did you mean 'counter'?
   11 |     if (S[2] == 'o') counter　+= 100;
      |                      ^~~~~~~~~
      |                      counter
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++) 

using namespace std;

int main(){
	string s; cin>>s;
	int ans=700;
	rep(i,3) if(s[i]==‘o’) ans+=100;
	cout<<ans<<endl;
}


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

#Include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++) 

using namespace std;

int main(){
	string s; cin>>s;
	int ans=700;
	rep(i,3) if(s[i]==‘o’) ans+=100;
	cout<<ans<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:10:27: error: extended character ‘ is not valid in an identifier
   10 |         rep(i,3) if(s[i]==‘o’) ans+=100;
      |                           ^
a.cc:10:27: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string s; cin>>s;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #Include <bits/stdc++.h>
a.cc:8:19: error: 'cin' was not declared in this scope
    8 |         string s; cin>>s;
      |                   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include <bits/stdc++.h>
a.cc:8:24: error: 's' was not declared in this scope
    8 |         string s; cin>>s;
      |                        ^
a.cc:10:27: error: '\U00002018o\U00002019' was not declared in this scope
   10 |         rep(i,3) if(s[i]==‘o’) ans+=100;
      |                           ^~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<ans<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |         cout<<ans<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include <bits/stdc++.h>
Language: C++

#Include <bits/stdc++.h>

int main(){
	string s; cin>>s;
	int ans=700;
	rep(i,3) if(s[i]==‘o’) ans+=100;
	cout<<ans<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:6:27: error: extended character ‘ is not valid in an identifier
    6 |         rep(i,3) if(s[i]==‘o’) ans+=100;
      |                           ^
a.cc:6:27: error: extended character ’ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s; cin>>s;
      |         ^~~~~~
a.cc:4:19: error: 'cin' was not declared in this scope
    4 |         string s; cin>>s;
      |                   ^~~
a.cc:4:24: error: 's' was not declared in this scope
    4 |         string s; cin>>s;
      |                        ^
a.cc:6:13: error: 'i' was not declared in this scope
    6 |         rep(i,3) if(s[i]==‘o’) ans+=100;
      |             ^
a.cc:6:9: error: 'rep' was not declared in this scope
    6 |         rep(i,3) if(s[i]==‘o’) ans+=100;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<ans<<endl;
      |         ^~~~
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |         cout<<ans<<endl;
      |                    ^~~~
Language: C++

#include <cstdio>
#include <algorithm>
using namespace std;
 
int price　=　700,topping = 100;
string Order;
int main()
{
  cin >> Order;
  for(int i=0;i<Order.size;i++)
  {
  if(Order[i]=='o')
   {
    price+=topping;
   }
  }
  cout << price;
	return 0;
}

Compiler output:
a.cc:5:5: error: extended character 　 is not valid in an identifier
    5 | int price　=　700,topping = 100;
      |     ^
a.cc:5:13: error: extended character 　 is not valid in an identifier
    5 | int price　=　700,topping = 100;
      |             ^
a.cc:5:13: error: '\U00003000700' was not declared in this scope
    5 | int price　=　700,topping = 100;
      |             ^~~~~
a.cc:6:1: error: 'string' does not name a type; did you mean 'stdin'?
    6 | string Order;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> Order;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <algorithm>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:9:10: error: 'Order' was not declared in this scope
    9 |   cin >> Order;
      |          ^~~~~
a.cc:14:5: error: 'price' was not declared in this scope
   14 |     price+=topping;
      |     ^~~~~
a.cc:14:12: error: 'topping' was not declared in this scope
   14 |     price+=topping;
      |            ^~~~~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << price;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:11: error: 'price' was not declared in this scope
   17 |   cout << price;
      |           ^~~~~
Language: C

#include <stdio.h>

void main()
{
  	char moji[3],o;
  	int i,kaunto=0,en=700;
  
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        en=en+100;
        kaunto++;

    }
  printf("%d",en)
}



Compiler output:
main.c: In function 'main':
main.c:16:18: error: expected ';' before '}' token
   16 |   printf("%d",en)
      |                  ^
      |                  ;
   17 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[3],o;
  	int i,kaunto=0,en=700;
  
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        en=en+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:16:15: error: 'nedan' undeclared (first use in this function)
   16 |   printf("%d",nedan)
      |               ^~~~~
main.c:16:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:21: error: expected ';' before '}' token
   16 |   printf("%d",nedan)
      |                     ^
      |                     ;
   17 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[3],o;
  	int i,kaunto=0,nedan=700;
  
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan=nedan+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:16:21: error: expected ';' before '}' token
   16 |   printf("%d",nedan)
      |                     ^
      |                     ;
   17 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[3],maru=o;
  	int i,kaunto=0,nedan=700;
  
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==maru)
        nedan=nedan+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:5:27: error: 'o' undeclared (first use in this function)
    5 |         char moji[3],maru=o;
      |                           ^
main.c:5:27: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:21: error: expected ';' before '}' token
   16 |   printf("%d",nedan)
      |                     ^
      |                     ;
   17 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[3];
  	int i,kaunto=0,nedan=700;
  
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan=nedan+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:11:21: error: 'o' undeclared (first use in this function)
   11 |         if(moji[i]==o)
      |                     ^
main.c:11:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:21: error: expected ';' before '}' token
   16 |   printf("%d",nedan)
      |                     ^
      |                     ;
   17 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],o;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan=nedan+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:15:21: error: expected ';' before '}' token
   15 |   printf("%d",nedan)
      |                     ^
      |                     ;
   16 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],maru,batu;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan=nedan+100;
        kaunto++;

    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'o' undeclared (first use in this function)
   10 |         if(moji[i]==o)
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:21: error: expected ';' before '}' token
   15 |   printf("%d",nedan)
      |                     ^
      |                     ;
   16 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],maru,batu;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan=nedan+100;
        kaunto++;
      	
        else
          kaunto++;
    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'o' undeclared (first use in this function)
   10 |         if(moji[i]==o)
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
main.c:17:21: error: expected ';' before '}' token
   17 |   printf("%d",nedan)
      |                     ^
      |                     ;
   18 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],maru,batu;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan+100;
        kaunto++;
      	
        else
          kaunto++;
    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'o' undeclared (first use in this function)
   10 |         if(moji[i]==o)
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:9: error: 'else' without a previous 'if'
   14 |         else
      |         ^~~~
main.c:17:21: error: expected ';' before '}' token
   17 |   printf("%d",nedan)
      |                     ^
      |                     ;
   18 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],maru,batu;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan+100;
        kaunto++;
    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'o' undeclared (first use in this function)
   10 |         if(moji[i]==o)
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:21: error: expected ';' before '}' token
   14 |   printf("%d",nedan)
      |                     ^
      |                     ;
   15 | }
      | ~
Language: C

#include <stdio.h>

void main()
{
  	char moji[10],maru,batu;
  	int i,kaunto=0,nedan=700;
  	scanf("%s",moji);
  	for(i=0; moji[i]!='\0'; i++)
    {
      	if(moji[i]==o)
        nedan+100
        kaunto++
    }
  printf("%d",nedan)
}



Compiler output:
main.c: In function 'main':
main.c:10:21: error: 'o' undeclared (first use in this function)
   10 |         if(moji[i]==o)
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: expected ';' before 'kaunto'
   11 |         nedan+100
      |                  ^
      |                  ;
   12 |         kaunto++
      |         ~~~~~~    
main.c:14:21: error: expected ';' before '}' token
   14 |   printf("%d",nedan)
      |                     ^
      |                     ;
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected initializer before '==' token
    6 |         int a == 700;
      |               ^~
a.cc:7:25: error: 'a' was not declared in this scope
    7 |         if(S[0] == 'o') a += 100;
      |                         ^
a.cc:8:25: error: 'a' was not declared in this scope
    8 |         if(S[1] == 'o') a += 100;
      |                         ^
a.cc:9:25: error: 'a' was not declared in this scope
    9 |         if(S[2] == 'o') a += 100;
      |                         ^
a.cc:10:17: error: 'a' was not declared in this scope
   10 |         cout << a << endl;
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |  int a == 700;
      |        ^~
a.cc:7:18: error: 'a' was not declared in this scope
    7 |  if(S[0] == 'o') a += 100;
      |                  ^
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(S[1] == 'o') a += 100;
      |                  ^
a.cc:9:18: error: 'a' was not declared in this scope
    9 |  if(S[2] == 'o') a += 100;
      |                  ^
a.cc:10:10: error: 'a' was not declared in this scope
   10 |  cout << a << endl;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'S' was not declared in this scope
    4 |  cin >> S;
      |         ^
a.cc:5:8: error: expected initializer before '==' token
    5 |  int a == 700;
      |        ^~
a.cc:6:18: error: 'a' was not declared in this scope
    6 |  if(S[0] == 'o') a += 100;
      |                  ^
a.cc:7:18: error: 'a' was not declared in this scope
    7 |  if(S[1] == 'o') a += 100;
      |                  ^
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(S[2] == 'o') a += 100;
      |                  ^
a.cc:9:10: error: 'a' was not declared in this scope
    9 |  cout << a << endl;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '==' token
    6 |  int a == 700;
      |        ^~
a.cc:7:18: error: 'a' was not declared in this scope
    7 |  if(S[0] == 'o') a += 100;
      |                  ^
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(S[1] == 'o') a += 100;
      |                  ^
a.cc:9:18: error: 'a' was not declared in this scope
    9 |  if(S[2] == 'o') a += 100;
      |                  ^
a.cc:10:10: error: 'a' was not declared in this scope
   10 |  cout << a << endl;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '==' token
    7 |  int a == 700;
      |        ^~
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(S[0] == 'o') a += 100;
      |                  ^
a.cc:9:18: error: 'a' was not declared in this scope
    9 |  if(S[1] == 'o') a += 100;
      |                  ^
a.cc:10:18: error: 'a' was not declared in this scope
   10 |  if(S[2] == 'o') a += 100;
      |                  ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |  cout << a << endl;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '==' token
    7 |  int a == 700;
      |        ^~
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(s[0] == 'o') a = a + 100;
      |                  ^
a.cc:9:18: error: 'a' was not declared in this scope
    9 |  if(s[1] == 'o') a = a + 100;
      |                  ^
a.cc:10:18: error: 'a' was not declared in this scope
   10 |  if(s[2] == 'o') a = a + 100;
      |                  ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |  cout << a << endl;
      |          ^
Language: C++

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

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

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

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

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

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

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

Compiler output:
a.cc:5:7: error: expected initializer before '==' token
    5 | int a == 700;
      |       ^~
a.cc: In function 'int main()':
a.cc:7:9: error: 'S' was not declared in this scope
    7 |  cin << S;
      |         ^
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |  if(s[0] == "o") a = a + 100;
a.cc:8:18: error: 'a' was not declared in this scope
    8 |  if(s[0] == "o") a = a + 100;
      |                  ^
a.cc:9:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |  if(s[1] == "o") a = a + 100;
a.cc:9:18: error: 'a' was not declared in this scope
    9 |  if(s[1] == "o") a = a + 100;
      |                  ^
a.cc:10:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |  if(s[2] == "o") a = a + 100;
a.cc:10:18: error: 'a' was not declared in this scope
   10 |  if(s[2] == "o") a = a + 100;
      |                  ^
a.cc:11:10: error: 'a' was not declared in this scope
   11 |  cout << a << endl;
      |          ^
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.substr(i,1)==o){
            ans += 100;
        }
    }
    cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: 'o' was not declared in this scope
    7 |         if(s.substr(i,1)==o){
      |                           ^
Language: C++

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


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

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


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

#include <stdio.h>

void main() {
    int counter;
  	char c;
    scanf("%s",c);
 	counter = 700;
  	while(c!='\0')
    	if(c='o')
          counter+100;
  		else
  			counter+0;
  }

}

Compiler output:
main.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^
Language: C

#include <stdio.h>

void main() {
    int c counter;
    scanf("%s",c);
 	counter = 700;
  	while(c!='\0')
    	if(c='o')
          counter+100;
  		else
  			counter+0;
  }

}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'counter'
    4 |     int c counter;
      |           ^~~~~~~
main.c:4:11: error: 'counter' undeclared (first use in this function)
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'c' undeclared (first use in this function)
    5 |     scanf("%s",c);
      |                ^
main.c: At top level:
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

#include <stdio.h>

void main() {
    int c counter;
    scanf("%s",c);
 	counter = 700;
    if (c== x) {
      counter=counter+100;
    }
  else{
    counter=counter
  }

}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'counter'
    4 |     int c counter;
      |           ^~~~~~~
main.c:4:11: error: 'counter' undeclared (first use in this function)
main.c:4:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: 'c' undeclared (first use in this function)
    5 |     scanf("%s",c);
      |                ^
main.c:7:13: error: 'x' undeclared (first use in this function)
    7 |     if (c== x) {
      |             ^
main.c:11:20: error: expected ';' before '}' token
   11 |     counter=counter
      |                    ^
      |                    ;
   12 |   }
      |   ~
Language: C++

#include <stdio.h>

void main() {
    int c counter;
    scanf("%s",c);
 	counter = 700;
    if (c== x) {
      counter=counter+100;
    }
  else{
    counter=counter
  }

}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:11: error: expected initializer before 'counter'
    4 |     int c counter;
      |           ^~~~~~~
a.cc:5:16: error: 'c' was not declared in this scope
    5 |     scanf("%s",c);
      |                ^
a.cc:6:9: error: 'counter' was not declared in this scope
    6 |         counter = 700;
      |         ^~~~~~~
a.cc:7:13: error: 'x' was not declared in this scope
    7 |     if (c== x) {
      |             ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'string'; did you mean 'stdin'?
    5 |     string s;
      |     ^~~~~~
      |     stdin
main.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin >> s;
      |     ^~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:10: error: subscripted value is neither array nor pointer nor vector
    8 |     if (s[0] == '1') ++counter;
      |          ^
main.c:9:10: error: subscripted value is neither array nor pointer nor vector
    9 |     if (s[1] == '1') ++counter;
      |          ^
main.c:10:10: error: subscripted value is neither array nor pointer nor vector
   10 |     if (s[2] == '1') ++counter;
      |          ^
main.c:11:5: error: 'cout' undeclared (first use in this function); did you mean 'counter'?
   11 |     cout << counter << endl;
      |     ^~~~
      |     counter
main.c:11:24: error: 'endl' undeclared (first use in this function)
   11 |     cout << counter << endl;
      |                        ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: lvalue required as left operand of assignment
   10 |   if (s[02='o') ans+= 100;
      |         ^~
a.cc:10:15: error: expected ']' before ')' token
   10 |   if (s[02='o') ans+= 100;
      |               ^
      |               ]
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin >> s;
  int c = 0;
  for(int i = 0;i < n;i++){
    if(s[i] == 'o') c++;
  }
  cout << c*100+700 << endl;
}
  

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

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

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

Compiler output:
a.cc: In function 'int mmain()':
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/std.c>
using namespace std;

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

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

#include<iostream>
using namespace std;
int main()
{
	string s;
  	int count =0;
  	gets(s);
  	for(int i=0;i<s.size();i++)
    {
      if(s[i]=='o')
      {
        count++;
      }
    }
  cout<<(700+cout*100);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(s);
      |         ^~~~
      |         getw
a.cc:15:18: error: no match for 'operator*' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
   15 |   cout<<(700+cout*100);
      |              ~~~~^~~~
      |              |    |
      |              |    int
      |              std::ostream {aka std::basic_ostream<char>}
a.cc:15:18: note: candidate: 'operator*(int, int)' (built-in)
   15 |   cout<<(700+cout*100);
      |              ~~~~^~~~
a.cc:15:18: note:   no known conversion for argument 1 from 'std::ostream' {aka 'std::basic_ostream<char>'} to 'int'
Language: C++

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

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<2;i++){
      |       ^
Language: C++

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

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

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

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

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

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

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

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


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

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

int main () {
  string x
  cin >> x;
  
  int cost = 700;
  
  if ( x.at(0) == 'o' ) cost += 100;
  if ( x.at(1) == 'o' ) cost += 100;
  if ( x.at(2) == 'o' ) cost += 100;
  

    cout << cost << endl;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> x;
      |   ^~~
a.cc:10:8: error: 'x' was not declared in this scope
   10 |   if ( x.at(0) == 'o' ) cost += 100;
      |        ^
a.cc:11:8: error: 'x' was not declared in this scope
   11 |   if ( x.at(1) == 'o' ) cost += 100;
      |        ^
a.cc:12:8: error: 'x' was not declared in this scope
   12 |   if ( x.at(2) == 'o' ) cost += 100;
      |        ^
Language: C++

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

int main () {
  string x;
  cin >> x;
  
  int cost = 700;
  
  if ( x.at(0) == "o" ) cost += 100;
  if ( x.at(1) == "o" ) cost += 100;
  if ( x.at(2) == "o" ) cost += 100;
  

    cout << cost << endl;
  }


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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if ( x.at(i) == "o" ) {
      |          ~~~~~~~~^~~~~~
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:13: note: to match this '{'
    4 | int main () {
      |             ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(){
  string s; 
  int sum = 700;
  
  cin >> s;
  
  if(s[0] == "o") sum += 100;
  if(s[1] == "o") sum += 100;
  if(s[2] == "o") sum += 100;
  
  cout << sum << 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] == "o") sum += 100;
a.cc:13:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(s[1] == "o") sum += 100;
a.cc:14:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(s[2] == "o") sum += 100;
Language: C++

#include <iostream>
#include <string>

using namespace std;

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

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

#include <iostream>
#include <string>

using namespace std;

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

Compiler output:
a.cc:7:11: error: stray '\' in program
    7 |   string s\;
      |           ^
a.cc: In function 'int main()':
a.cc:12:14: error: 'o' was not declared in this scope
   12 |   if(s[0] == o) sum += 100;
      |              ^
a.cc:13:14: error: 'o' was not declared in this scope
   13 |   if(s[1] == o) sum += 100;
      |              ^
a.cc:14:14: error: 'o' was not declared in this scope
   14 |   if(s[2] == o) sum += 100;
      |              ^
Language: C++

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


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

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

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

string s;
  int counter;
  
  cin >> s;
  if(s.at(0)=='◦'){counter++;} 
  if(s.at(1)=='◦'){counter++;}
  if(s.at(2)=='◦'){counter++:}
  
  int price = counter * 100 + 700;
  cout << price << endl;
  
  return 0;
 
 
}

Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |   if(s.at(0)=='◦'){counter++;}
      |               ^~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |   if(s.at(1)=='◦'){counter++;}
      |               ^~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |   if(s.at(2)=='◦'){counter++:}
      |               ^~~
a.cc:1:1: error: 'string' does not name a type
    1 | string s;
      | ^~~~~~
a.cc:4:3: error: 'cin' does not name a type
    4 |   cin >> s;
      |   ^~~
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(s.at(0)=='◦'){counter++;}
      |   ^~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(s.at(1)=='◦'){counter++;}
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(s.at(2)=='◦'){counter++:}
      |   ^~
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout << price << endl;
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#include <cstdlib>  // abs() for integer 絶対値求めやつ

#include <cmath>    // abs() for float, and fabs()

#include <algorithm>
#include <vector>
#define rep(i,n) for(int i = 0; i< (n);i++)

#define SORT(a) sort((a).begin(),(a).end());

#define che(a,string) cout<<string<<":"<<(a)<<endl;

#define ch(a,string) cout<<string<<":"<<(a)<<" ";

using namespace std;

typedef pair<int,int> P;

int main(){
	string S;
	cin >>S;
	int ans =700;
	rep(i,3){
		if(S.at(i)!=='x'){
		  ans+=100;
		  }
	  }
	  cout<<ans<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:29: error: expected primary-expression before '=' token
   26 |                 if(S.at(i)!=='x'){
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int s;
  cin>>s;
  cout<<700+100+count(s.begin(),s.end(),'o')<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: request for member 'begin' in 's', which is of non-class type 'int'
    6 |   cout<<700+100+count(s.begin(),s.end(),'o')<<endl;
      |                         ^~~~~
a.cc:6:35: error: request for member 'end' in 's', which is of non-class type 'int'
    6 |   cout<<700+100+count(s.begin(),s.end(),'o')<<endl;
      |                                   ^~~
Language: C

#include<stdio.h>

int main(void) {
    int y = 700, i;
    char s;

    scanf("%s", s);

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

    printf("%d", y);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:13: error: subscripted value is neither array nor pointer nor vector
   10 |         if(s[i] == 'o') y += 100;
      |             ^
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.at(i) == "o"){
          N = N + 100;
      }
  }
  cout << N;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected '(' before 'S'
   10 |         if S[i] == 'o';
      |            ^
      |            (
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected initializer before '==' token
    4 |   int N == 700;
      |         ^~
a.cc:7:18: error: 'o' was not declared in this scope
    7 |   if (S.at(0) == o) {
      |                  ^
a.cc:8:5: error: 'N' was not declared in this scope
    8 |     N == N + 100;
      |     ^
a.cc:10:18: error: 'o' was not declared in this scope
   10 |   if (S.at(1) == o) {
      |                  ^
a.cc:11:5: error: 'N' was not declared in this scope
   11 |     N == N + 100;
      |     ^
a.cc:13:18: error: 'o' was not declared in this scope
   13 |   if (S.at(2) == o) {
      |                  ^
a.cc:14:5: error: 'N' was not declared in this scope
   14 |     N == N + 100;
      |     ^
a.cc:16:11: error: 'N' was not declared in this scope
   16 |   cout << N << endl;
      |           ^
Language: C++

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

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