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

#include<bits/stdc++.h>
#define lowbit(i) ((i)&(-(i)))
#define lson(i) ((i)<<1)
#define rson(i) ((i)<<1|1)
#define fi first
#define se second
#define m_p(x,y) make_pair((x),(y))
using namespace std;

typedef long long ll;typedef unsigned long long ul;
typedef pair<int,int> pii;typedef pair<ll,ll> pll;
typedef vector<string> vss;
typedef vector<int> vii;typedef vector<pii> vpi;
typedef queue<int> qii;typedef queue<pii> qpi;

const int inf=0x3f3f3f3f;
const int maxn=100007;

int n=700;

int main()
{
// 	freopen("","r",stdin);
// 	freopen("","w",stdout);
	char c;
	for(int i=0;i<3;i++){
		c=getchar()
		n+=(c=='o')*100;
	}
	printf("%d",n);
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:27:28: error: expected ';' before 'n'
   27 |                 c=getchar()
      |                            ^
      |                            ;
   28 |                 n+=(c=='o')*100;
      |                 ~
Language: C++

#include <stdio.h>

int main(void){
	char str[4];
	int count=0;

	scanf("%s", str);

	for(int i=0; i<3; i++){
		if(str[i]=='o') count++;
	}
	printf("%d\n", 100*count+700);

	return 0;

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

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int main(){
int A,B,C;
cin>>A>>B>>C;
int X,Y;
cin>>X>>Y;
for (int i=0;i<10^5;i++){
int k;
cin>>k;


}
cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:7: error: unable to find numeric literal operator 'operator""Ck'
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |       ^~~
a.cc:37:21: error: invalid type argument of unary '*' (have 'int')
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |                     ^~
a.cc:37:34: error: invalid type argument of unary '*' (have 'int')
   37 | cout<<2Ck+max{X-k,0}*A+max{Y-k,0}*B<<endl;
      |                                  ^~
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int main(){
string s;
cin>> s;
int ans=700;
if(s[0]==`o`)ans+=100;
if(s[1]==`o`)ans+=100;
if(s[2]==`o`)ans+=100;
cout<<ans<<endl;
}


Compiler output:
a.cc:30:10: error: stray '`' in program
   30 | if(s[0]==`o`)ans+=100;
      |          ^
a.cc:30:12: error: stray '`' in program
   30 | if(s[0]==`o`)ans+=100;
      |            ^
a.cc:31:10: error: stray '`' in program
   31 | if(s[1]==`o`)ans+=100;
      |          ^
a.cc:31:12: error: stray '`' in program
   31 | if(s[1]==`o`)ans+=100;
      |            ^
a.cc:32:10: error: stray '`' in program
   32 | if(s[2]==`o`)ans+=100;
      |          ^
a.cc:32:12: error: stray '`' in program
   32 | if(s[2]==`o`)ans+=100;
      |            ^
a.cc: In function 'int main()':
a.cc:30:11: error: 'o' was not declared in this scope
   30 | if(s[0]==`o`)ans+=100;
      |           ^
a.cc:31:11: error: 'o' was not declared in this scope
   31 | if(s[1]==`o`)ans+=100;
      |           ^
a.cc:32:11: error: 'o' was not declared in this scope
   32 | if(s[2]==`o`)ans+=100;
      |           ^
Language: C++

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int main(){
string s;
cin>> s;
int ans=700;
if (s[0]==`o`)ans+=100;
if (s[1]==`1`)ans+=100;
if (s[2]==`2`)ans+=100;
cout<<ans<<endl;
}


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

#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <sstream>
#include <algorithm>
#include <deque>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <list>
#include <cstdio>
#include <iostream>
#include <cmath>
#include <climits>
#include <bitset>
#include <functional>
#include <numeric>
#include <ctime>
#include <cassert>
#include <cstring>
#include <fstream>
 
using namespace std;
int main(){
string s;
cin>> s;
int ans=700;
if(s[0]==`o`)ans+=100;
if(s[1]==`1`)ans+=100;
if(s[2]==`2`)ans+=100;
cout<<ans<<endl;
}


Compiler output:
a.cc:30:10: error: stray '`' in program
   30 | if(s[0]==`o`)ans+=100;
      |          ^
a.cc:30:12: error: stray '`' in program
   30 | if(s[0]==`o`)ans+=100;
      |            ^
a.cc:31:10: error: stray '`' in program
   31 | if(s[1]==`1`)ans+=100;
      |          ^
a.cc:31:12: error: stray '`' in program
   31 | if(s[1]==`1`)ans+=100;
      |            ^
a.cc:32:10: error: stray '`' in program
   32 | if(s[2]==`2`)ans+=100;
      |          ^
a.cc:32:12: error: stray '`' in program
   32 | if(s[2]==`2`)ans+=100;
      |            ^
a.cc: In function 'int main()':
a.cc:30:11: error: 'o' was not declared in this scope
   30 | if(s[0]==`o`)ans+=100;
      |           ^
Language: C

#include <iostream>
using namespace std;

int main(){
    string s;
    cin >> s;
    cout << 700 + 100 * count(s.begin(), s.end(), 'o') << "\n";
    return 0;

}

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

#include <iostream>
using namespace std;

int main(){
    string s;
    cin >> s;
    cout << 700 + 100 * count(s.begin(), s.end(), 'o') << "\n";
    return 0;

}

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

#include <iostream>
using namespace std;

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define fs first
#define sc second
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define ALL(A) A.begin(),A.end()
#define RALL(A) A.rbegin(),A.rend()
typedef long long LL;
typedef pair<LL,LL> P;
const LL mod=1e9+7;
const LL LINF=1LL<<62;



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

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

#include <iostream>
using namespace std;
 
int main() {
    int A,B,C,X,Y;
    cin >> A >> B >> C >> X >> Y;
 
    int total = 0;
    int min_sum = 100000000;
    int sum = 0;
    for(int i = 0; i < =X; i++) {
        sum = i * 2 * C + max(0, X-i) * A + max(0, Y - i) * B;
        min_sum = min(sum, min_sum);
    }
    cout << min_sum << endl;
    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if(s[0] == "o")ans += 100;
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(s[1] == "o")ans += 200;
a.cc:11:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if(s[2] == "o")ans += 300;
a.cc:14:18: error: expected '}' at end of input
   14 |         return 0;
      |                  ^
a.cc:5:9: note: to match this '{'
    5 |         {
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(s[0] == "o")ans += 100
a.cc:9:30: error: expected ';' before 'if'
    9 |     if(s[0] == "o")ans += 100
      |                              ^
      |                              ;
   10 |     if(s[1] == "o")ans += 200
      |     ~~
Language: C++

#include<iostream>
using namespace std;

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

return 0;
}

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

#include <iostream.h>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'n' was not declared in this scope
   10 |     for(int i = 0; i < n; i++) if(s[i] == 'o') price+=100;
      |                        ^
Language: C++

#include <iostream.h>

using namespace std;

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

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

include<bits/stdc++.h>
using namespace std;
 
#define ll              long long int
#define mod             1000000007
 
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;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<bits/stdc++.h>
      |        ^
main.c: In function 'main':
main.c:10:5: error: unknown type name 'string'
   10 |     string s;
      |     ^~~~~~
main.c:11:5: error: 'cin' undeclared (first use in this function)
   11 |     cin>>s;
      |     ^~~
main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:21: error: request for member 'size' in something not a structure or union
   13 |     for(int i=0; i<s.size(); i++)
      |                     ^
main.c:15:13: error: subscripted value is neither array nor pointer nor vector
   15 |         if(s[i]=='o'){
      |             ^
main.c:20:5: error: 'cout' undeclared (first use in this function)
   20 |     cout<<700+(c*100)<<endl;
      |     ^~~~
main.c:20:24: error: 'endl' undeclared (first use in this function)
   20 |     cout<<700+(c*100)<<endl;
      |                        ^~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
 
#define ll              long long int
#define mod             1000000007
 
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;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'string' was not declared in this scope
   10 |     string s;
      |     ^~~~~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin>>s;
      |     ^~~
a.cc:11:10: error: 's' was not declared in this scope
   11 |     cin>>s;
      |          ^
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout<<700+(c*100)<<endl;
      |     ^~~~
a.cc:20:24: error: 'endl' was not declared in this scope
   20 |     cout<<700+(c*100)<<endl;
      |                        ^~~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 |   ans=700;
      |   ^~~
      |   abs
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,3)if(s[i]=='o')ans+=100;
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i,3)if(s[i]=='o')ans+=100;
      |   ^~~
Language: C

#include <stdio.h>

int main (void)
{
    cher s[3];
    int a = 700;
     
    scanf("%s", s);
    if(s[0] = "o"){
         a += 100;
    }
    if(s[1] = "o"){
         a += 100;
    }
    if(s[2] = "o"){
         a += 100;
    }
    printf("%d", a);
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'cher'; did you mean 'char'?
    5 |     cher s[3];
      |     ^~~~
      |     char
main.c:9:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 |     if(s[0] = "o"){
      |             ^
main.c:12:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     if(s[1] = "o"){
      |             ^
main.c:15:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   15 |     if(s[2] = "o"){
      |             ^
Language: C

#include <stdio.h>

int main (void)
{
    cher s[3];
    int a = 700;
     
    scanf("%s", s);
    if(s[0] = "○"){
         a += 100;
    }
    if(s[1] = "○"){
         a += 100;
    }
    if(s[2] = "○"){
         a += 100;
    }
    printf("%d", a);
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'cher'; did you mean 'char'?
    5 |     cher s[3];
      |     ^~~~
      |     char
main.c:9:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    9 |     if(s[0] = "○"){
      |             ^
main.c:12:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |     if(s[1] = "○"){
      |             ^
main.c:15:13: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   15 |     if(s[2] = "○"){
      |             ^
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner sc = new Scanner(System.in)) {
            while (sc.hasNext()) {
                String s = sc.nextLine();
                int t = 0;
                if(s.charAt(0).equals("o")) t++;
                if(s.charAt(1).equals("o")) t++;
                if(s.charAt(2).equals("o")) t++;
                System.out.println(700 + 100 * t);
            }
        }
    }
}

Compiler output:
Main.java:8: error: char cannot be dereferenced
                if(s.charAt(0).equals("o")) t++;
                              ^
Main.java:9: error: char cannot be dereferenced
                if(s.charAt(1).equals("o")) t++;
                              ^
Main.java:10: error: char cannot be dereferenced
                if(s.charAt(2).equals("o")) t++;
                              ^
3 errors
Language: C++

#include <stdio.h>

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

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

#include <stdio.h>
#include <string.h>
int main(void)
{
    char test1[4],test2[4] = xxx;
    scanf("%s",test1[4]);
    if(strcmp(test1,test2)==0)
    {
        printf("700\n");
    }
    test2[4] = xxo;
    if(strcmp(test1,test2)==0)
    {
        printf("800\n");
    } 
        test2[4] = oxx;
    if(strcmp(test1,test2)==0)
    {
        printf("800\n");
    } 
        test2[4] = xox;
    if(strcmp(test1,test2)==0)
    {
        printf("800\n");
    } 
    test2[4] = oox;
    if(strcmp(test1,test2)==0)
    {
        printf("900\n");
    }     
    test2[4] = xoo;
    if(strcmp(test1,test2)==0)
    {
        printf("900\n");
    } 
    test2[4] = oxo;
    if(strcmp(test1,test2)==0)
    {
        printf("900\n");
    } 
    test2[4] = ooo;
    if(strcmp(test1,test2)==0)
    {
        printf("1000\n");
    } 
}

Compiler output:
main.c: In function 'main':
main.c:5:30: error: 'xxx' undeclared (first use in this function)
    5 |     char test1[4],test2[4] = xxx;
      |                              ^~~
main.c:5:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:16: error: 'xxo' undeclared (first use in this function)
   11 |     test2[4] = xxo;
      |                ^~~
main.c:16:20: error: 'oxx' undeclared (first use in this function)
   16 |         test2[4] = oxx;
      |                    ^~~
main.c:21:20: error: 'xox' undeclared (first use in this function)
   21 |         test2[4] = xox;
      |                    ^~~
main.c:26:16: error: 'oox' undeclared (first use in this function)
   26 |     test2[4] = oox;
      |                ^~~
main.c:31:16: error: 'xoo' undeclared (first use in this function)
   31 |     test2[4] = xoo;
      |                ^~~
main.c:36:16: error: 'oxo' undeclared (first use in this function)
   36 |     test2[4] = oxo;
      |                ^~~
main.c:41:16: error: 'ooo' undeclared (first use in this function)
   41 |     test2[4] = ooo;
      |                ^~~
Language: C++

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

int main(void) {
int a, b, c, d, e, x, y;
int p;
bool f = 0;

std::cin >> a >> b >> c >> x >> y;

d = x;
e = y;

if (d < e) {
    swap(d, e);/*交換*/
    f = 1;
}

//少ない方までABを買う時
if (a*e + b*e => c*2*e && a*x + b*y < c*2*d) {
  if (f == 0) {
    p = c*2*e + (a * (d - e));
  } else {
    p = c*2*e + (b * (d - e));
  }
}

//多い方までABを買う時
if (a*x + b*y >= c*2*d) {
  p = c*2*d;
}

//そのまま買う時
if (a*e + b*e < c*2*e) {
  p = a*x + b*y;
}

std::cout << p << '\n';

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:16: error: expected primary-expression before '>' token
   22 | if (a*e + b*e => c*2*e && a*x + b*y < c*2*d) {
      |                ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int ans=0;
string h;
  cin>>h;
  
  for(int i=0;i<3;i++){
  if(h[i]==o) ans+=1;
  }
  cout<<ans<<endl;
}

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

#include<stdio.h>
#include<iostream>
#include<cstring>
using namespace std;
 
char c[10];
int all=700;
int main()
{
	gets(c);
	//scanf_s("%s", c);
	for (int i = 0; i < 3; i++)
	{
		if (c[i] == 'o')
			all += 100;
	}
	printf("%d", all);
 
    return 0;
}
 

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

#include<iostream>
#include<cstring>
using namespace std;
 
char c[10];
int all=700;
int main()
{
	gets(c);
	//scanf_s("%s", c);
	for (int i = 0; i < 3; i++)
	{
		if (c[i] == 'o')
			all += 100;
	}
	printf("%d", all);
 
    return 0;
}
 

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

// ConsoleApplicationa.cpp: 定义控制台应用程序的入口点。
#include<stdlib.h>
#include<stdio.h>
#include<iostream>
#include<string.h>
using namespace std;
 
char c[10];
int all=700;
int main()
{
	gets(c);
	//scanf_s("%s", c);
	for (int i = 0; i < 3; i++)
	{
		if (c[i] == 'o')
			all += 100;
	}
	printf("%d", all);
 
    return 0;
}
 

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

// ConsoleApplicationa.cpp: 定义控制台应用程序的入口点。

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

char c[10];
int all=700;
int main()
{
	gets(c);
	//scanf_s("%s", c);
	for (int i = 0; i < 3; i++)
	{
		if (c[i] == 'o')
			all += 100;
	}
	printf("%d", all);

    return 0;
}



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

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

int main(){

  string S;
  char a,b,c;
  int y;

  y=700;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

  if(a == 'o'){
    y=y+100;

    if(b == 'o'){
      y=y+100;

      if(c == 'o'){
        y=y+100;
        cout << y<< end1;

        else{
          y=y;
        }
      }

      else{
        y=y;
      }
    }

    else{
      y=y;
      cout << y << end1;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:26:21: error: 'end1' was not declared in this scope
   26 |         cout << y<< end1;
      |                     ^~~~
a.cc:28:9: error: expected '}' before 'else'
   28 |         else{
      |         ^~~~
a.cc:24:19: note: to match this '{'
   24 |       if(c == 'o'){
      |                   ^
a.cc:40:20: error: 'end1' was not declared in this scope
   40 |       cout << y << end1;
      |                    ^~~~
Language: C++

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

int main()
{
string s;
cin >> s;
switch (s){
case ooo:
cout << 1000;
break;
case oox:
cout << 900;
break;
case oxx:
cout << 800;
break;
case oxo:
cout << 900;
break;
case xoo:
cout << 900;
break;
case xxo:
cout << 800;
break;
case xxx:
cout << 700;
break;
case xox:
cout << 800;
break;
default:
break;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: switch quantity not an integer
    9 | switch (s){
      |         ^
a.cc:10:6: error: 'ooo' was not declared in this scope
   10 | case ooo:
      |      ^~~
a.cc:13:6: error: 'oox' was not declared in this scope
   13 | case oox:
      |      ^~~
a.cc:16:6: error: 'oxx' was not declared in this scope
   16 | case oxx:
      |      ^~~
a.cc:19:6: error: 'oxo' was not declared in this scope
   19 | case oxo:
      |      ^~~
a.cc:22:6: error: 'xoo' was not declared in this scope
   22 | case xoo:
      |      ^~~
a.cc:25:6: error: 'xxo' was not declared in this scope
   25 | case xxo:
      |      ^~~
a.cc:28:6: error: 'xxx' was not declared in this scope
   28 | case xxx:
      |      ^~~
a.cc:31:6: error: 'xox' was not declared in this scope
   31 | case xox:
      |      ^~~
Language: C++

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

int main(){

  string S;
  char a,b,c;
  int y;

  y=700;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

  if(a == 'o'){
    y=y+100;

    if(b == 'o'){
      y=y+100;

      if(c == 'o'){
        y=y+100;

        else{
          y=y;
        }
      }

      else{
        y=y;
      }
    }

    else{
      y=y;
      cout << y << end1;
    }
    cout << y << end1;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: expected '}' before 'else'
   27 |         else{
      |         ^~~~
a.cc:24:19: note: to match this '{'
   24 |       if(c == 'o'){
      |                   ^
a.cc:39:20: error: 'end1' was not declared in this scope
   39 |       cout << y << end1;
      |                    ^~~~
a.cc:41:18: error: 'end1' was not declared in this scope
   41 |     cout << y << end1;
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  string order;
  int fee;
  cin >> order;
  if (order == "ooo") {
    fee = 1000;
  } else if(order == "xxx") {
    fee = 700;
  } else if(order == "xxo" || order == "xox" || order = "oxx") {
    fee = 800;
  } else {
    fee = 900;
  }
  cout << fee << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:46: error: no match for 'operator||' (operand types are 'bool' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   15 |   } else if(order == "xxo" || order == "xox" || order = "oxx") {
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~
      |                            |                    |
      |                            bool                 std::string {aka std::__cxx11::basic_string<char>}
a.cc:15:46: note: candidate: 'operator||(bool, bool)' (built-in)
   15 |   } else if(order == "xxo" || order == "xox" || order = "oxx") {
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:15:46: note:   no known conversion for argument 2 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
Language: C++

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

int main(){

  string S;
  char a,b,c;
  int y;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

  if(a == 'o'){
    y=700+100;

    if(b == 'o'){
      y=y+100;

      if(c == 'o'){
        y=y+100;

        else{
          y=y;
        }
      }

      else{
        y=y;
      }
    }

    else{
      y=y;
      cout << y << end1;
    }
    cout << y << end1;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: expected '}' before 'else'
   25 |         else{
      |         ^~~~
a.cc:22:19: note: to match this '{'
   22 |       if(c == 'o'){
      |                   ^
a.cc:37:20: error: 'end1' was not declared in this scope
   37 |       cout << y << end1;
      |                    ^~~~
a.cc:39:18: error: 'end1' was not declared in this scope
   39 |     cout << y << end1;
      |                  ^~~~
Language: Java

import java.util.*;

import sun.font.TrueTypeFont;

import static java.lang.System.out;

public class Main{
   public static Scanner sc = new Scanner(System.in);
   public static void main(String args[]){
      char[] str = sc.next().toCharArray()
      int count = 700;
      for (char c : str){
        count +=  c == 'o' ? 100 : 0;
      }
      out.println(count);

   }
}

Compiler output:
Main.java:10: error: ';' expected
      char[] str = sc.next().toCharArray()
                                          ^
1 error
Language: C++

int main()
{
    char tab[3];
    int i;
    int cpt = 0;
    for(i = 0; i < 3; i++)
    {
        scanf("%c", &tab[i]);
        if(tab[i] == 'o')
        {
            cpt++;
        }
    }
    int result = 700 + 100 * cpt;
    printf("%d\n", result);
    return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%c", &tab[i]);
      |         ^~~~~
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("%d\n", result);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

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

int main(){

  string S;
  char a,b,c;
  int y;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

  if(a == 'o'){
    y=700+100;

    if(b == 'o'){
      y=y+100;

      if(c == 'o'){
        y=y+100;

        else{
          y=y;
        }
      }
      else{
        y=y;
      }
    }
    else{
      y=y;
    }
    cout << y<< end1;
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: expected '}' before 'else'
   25 |         else{
      |         ^~~~
a.cc:22:19: note: to match this '{'
   22 |       if(c == 'o'){
      |                   ^
a.cc:36:17: error: 'end1' was not declared in this scope
   36 |     cout << y<< end1;
      |                 ^~~~
Language: Java

import java.util.*;
import java.io.*;

public class _095_A {

	public static void main(String[] args) throws IOException {
		String s = read(); int cnt = 700; for(int i = 0; i<s.length(); i++) if(s.charAt(i) == 'o') cnt += 100; println(cnt);
		exit();
	}

	final private static int BUFFER_SIZE = 1 << 16;
	private static DataInputStream din = new DataInputStream(System.in);
	private static byte[] buffer = new byte[BUFFER_SIZE];
	private static int bufferPointer = 0, bytesRead = 0;
	static PrintWriter pr = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

	public static String readLine() throws IOException {
		byte[] buf = new byte[64]; // line length
		int cnt = 0, c;
		while ((c = Read()) != -1) {
			if (c == '\n')
				break;
			buf[cnt++] = (byte) c;
		}
		return new String(buf, 0, cnt);
	}

	public static String read() throws IOException {
		byte[] ret = new byte[1024];
		int idx = 0;
		byte c = Read();
		while (c <= ' ') {
			c = Read();
		}
		do {
			ret[idx++] = c;
			c = Read();
		} while (c != -1 && c != ' ' && c != '\n' && c != '\r');
		return new String(ret, 0, idx);
	}

	public static int readInt() throws IOException {
		int ret = 0;
		byte c = Read();
		while (c <= ' ')
			c = Read();
		boolean neg = (c == '-');
		if (neg)
			c = Read();
		do {
			ret = ret * 10 + c - '0';
		} while ((c = Read()) >= '0' && c <= '9');

		if (neg)
			return -ret;
		return ret;
	}

	public static long readLong() throws IOException {
		long ret = 0;
		byte c = Read();
		while (c <= ' ')
			c = Read();
		boolean neg = (c == '-');
		if (neg)
			c = Read();
		do {
			ret = ret * 10 + c - '0';
		} while ((c = Read()) >= '0' && c <= '9');
		if (neg)
			return -ret;
		return ret;
	}

	public static double readDouble() throws IOException {
		double ret = 0, div = 1;
		byte c = Read();
		while (c <= ' ')
			c = Read();
		boolean neg = (c == '-');
		if (neg)
			c = Read();

		do {
			ret = ret * 10 + c - '0';
		} while ((c = Read()) >= '0' && c <= '9');

		if (c == '.') {
			while ((c = Read()) >= '0' && c <= '9') {
				ret += (c - '0') / (div *= 10);
			}
		}

		if (neg)
			return -ret;
		return ret;
	}

	private static void fillBuffer() throws IOException {
		bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
		if (bytesRead == -1)
			buffer[0] = -1;
	}

	private static byte Read() throws IOException {
		if (bufferPointer == bytesRead)
			fillBuffer();
		return buffer[bufferPointer++];
	}

	public void close() throws IOException {
		if (din == null)
			return;
		din.close();
	}

	static void print(Object o) {
		pr.print(o);
	}

	static void println(Object o) {
		pr.println(o);
	}

	static void flush() {
		pr.flush();
	}

	static void println() {
		pr.println();
	}

	static void exit() throws IOException {
		din.close();
		pr.close();
		System.exit(0);
	}
}


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

#include <iostream>
using namespace std;

int main()
{
string S;
cin >> S;
int daikin = 700;
int topping;
 
if(S[0]=='o') topping +1;
if(S[1]=='o') topping +1;
if(S[2]=='o') topping +1;

cout << daikin + topping x100 +"円" <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: expected ';' before 'x100'
   15 | cout << daikin + topping x100 +"円" <<endl;
      |                         ^~~~~
      |                         ;
Language: C++

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

int main() {

    int ans = 700;

    for(int i=0; i<3; i++){
        char c;
        cin >> c;
        if(c=="o"){
            ans += 100;
        }
    }
    
    cout << ans << endl;

    return 0;
}

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

import java.util.Scanner;

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


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

#include <iostream>
using namespace std;

int main(void) {
	
	char[3] S;
	int ret = 700;
	cin >> S;

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

	return 0;
}

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

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

int main(){

  string S;
  char a,b,c;
  int y;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

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

  else{
    y=700;
  }

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

  else{
    y=y;
  }

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

  else{
    y=y;
  }

  cout << y << end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:16: error: 'end1' was not declared in this scope
   40 |   cout << y << end1;
      |                ^~~~
Language: C++

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

int main(){

  string S;
  char a,b,c;
  int y;

  cin >> S;

  a=S.at(0);
  b=S.at(1);
  c=S.at(2);

  if(a=="o"){
    y=700+100;
  }

  else{
    y=700;
  }

  if(b=="o"){
    y=y+100;
  }

  else{
    y=y;
  }

  if(c=="o"){
    y=y+100;
  }

  else{
    y=y;
  }

  cout << y << end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if(a=="o"){
      |      ~^~~~~
a.cc:24:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |   if(b=="o"){
      |      ~^~~~~
a.cc:32:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |   if(c=="o"){
      |      ~^~~~~
a.cc:40:16: error: 'end1' was not declared in this scope
   40 |   cout << y << end1;
      |                ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
string S;
cin >> S;
int daikin = 700;
if(S[0]=='o') daikin ++100;
if(S[1]=='o') daikin ++100;
if(S[2]=='o') daikin ++100;

cout << daikin +"円" <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before numeric constant
    9 | if(S[0]=='o') daikin ++100;
      |                        ^~~
      |                        ;
a.cc:10:24: error: expected ';' before numeric constant
   10 | if(S[1]=='o') daikin ++100;
      |                        ^~~
      |                        ;
a.cc:11:24: error: expected ';' before numeric constant
   11 | if(S[2]=='o') daikin ++100;
      |                        ^~~
      |                        ;
Language: C

#include <stdio.h>

int main(void)
{
	int n1;
	int count=0;
	int sum=0;
	
	scanf("%d",&n1);
	
	if(n1==xxx)
	count=0;
	
	if(n1==xxo)
	count=1;
	
	if(n1==xox)
	count=1;
	
	if(n1==oxx)
	count=1;
	
	if(n1==xoo)
	count=2;
	
	if(n1==oxo)
	count=2;
	
	if(n1==oox)
	count=2;
	
	if(n1==ooo)
	count=3;
	
	sum=700+count*100;
	
	putchar('sum');
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'xxx' undeclared (first use in this function)
   11 |         if(n1==xxx)
      |                ^~~
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:16: error: 'xxo' undeclared (first use in this function)
   14 |         if(n1==xxo)
      |                ^~~
main.c:17:16: error: 'xox' undeclared (first use in this function)
   17 |         if(n1==xox)
      |                ^~~
main.c:20:16: error: 'oxx' undeclared (first use in this function)
   20 |         if(n1==oxx)
      |                ^~~
main.c:23:16: error: 'xoo' undeclared (first use in this function)
   23 |         if(n1==xoo)
      |                ^~~
main.c:26:16: error: 'oxo' undeclared (first use in this function)
   26 |         if(n1==oxo)
      |                ^~~
main.c:29:16: error: 'oox' undeclared (first use in this function)
   29 |         if(n1==oox)
      |                ^~~
main.c:32:16: error: 'ooo' undeclared (first use in this function)
   32 |         if(n1==ooo)
      |                ^~~
main.c:37:17: warning: multi-character character constant [-Wmultichar]
   37 |         putchar('sum');
      |                 ^~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
string S;
cin >> S;
int daikin = 700;
if(S[0]=="o") daikin +100;
if(S[1]=="o") daikin +100;
if(S[2]=="o") daikin +100;

cout << daikin +"円" <<endl;

}

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

public class Main{
  public static void main(String[] args){
  	Scanner sc = new Scanner(System.in);
    
    String s = sc.next();
    
    int result = 700;
    
    char[] unko = s.toCharArray();
    
    for(int i=0;i<unko.length;i++){
      if(unko[i]=='o'){
        result += 100;
      }
    }
    
    System.out.println(result);
  
  }
  
}

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

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

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

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

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'string' was not declared in this scope
    5 |         string S;
      |         ^~~~~~
a.cc:5:9: 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:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:6:16: error: 'S' was not declared in this scope
    6 |         cin >> S;
      |                ^
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << 700 + a << 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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout << 700 + a << endl;
      |                            ^~~~
      |                            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	int n1,n2,n3;
	int count=0;
	int sum=0;
	
	scanf("%d",&n1);scanf("%d",&n2);scanf("%d",&n3);
	
	if(n1==o) count++;
	if(n2==o) count++;
	if(n3==o) count++;
	
	sum=700+count*100;
	
	printf("sum");
	
	return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

string S;
int ans=700;

int main(){
  
  cin >> S;

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


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

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

int main(){
	char *a, *b,* c;
	int count = 0;
	int price;
	const char *d;
        *d = "o";
	cin >> *a >> *b >> *c;
	if(strcmp(a,d)){
		count += 1;
	}
	if(strcmp(b, d)){
		count += 1;
	}
	if(strcmp(c,d)){
		count += 1;
	}
	
	price = 700 + 100*count;
	
	cout << price << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: assignment of read-only location '* d'
    9 |         *d = "o";
      |         ~~~^~~~~
Language: C++

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

int main(){
  string S(3,\0);
  int y = 700;
  cin>>S;
  if(S == "xxx"){
    y=y+0;
    cout<<y;
  }
  if(S == "ooo"){
    y=y+300;
    cout<<y;
  }
  if(S == "xox"||S == "xxo"||S == "oxx"){
    y=y+100;
    cout<<y;
  }
  else{
    y=y+200;
    cout<<y;
  }
    return 0;
}

Compiler output:
a.cc:6:14: error: stray '\' in program
    6 |   string S(3,\0);
      |              ^
Language: C++

grep -o o | sed 's/o/+100/g;' | awk 'BEGIN{print "700"}1;' | xargs | bc

Compiler output:
a.cc:1:17: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    1 | grep -o o | sed 's/o/+100/g;' | awk 'BEGIN{print "700"}1;' | xargs | bc
      |                 ^~~~~~~~~~~~~
a.cc:1:37: warning: multi-character literal with 20 characters exceeds 'int' size of 4 bytes
    1 | grep -o o | sed 's/o/+100/g;' | awk 'BEGIN{print "700"}1;' | xargs | bc
      |                                     ^~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'grep' does not name a type
    1 | grep -o o | sed 's/o/+100/g;' | awk 'BEGIN{print "700"}1;' | xargs | bc
      | ^~~~
Language: C++

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

int main()
{
string s;
cin >>  s;
if(s == "ooo"){
cout <<  1000 << endl;
}
if{s == "oox"){
cout << 900 << endl;
}
if(s == "oxx"){
cout << 800 << endl;
}
if(s == "xxx"){
cout << 700 << endl;
}
if(s == "xox"){
cout << 800 << endl;
if (s == "xxo"){
cout << 800 << endl;
}
if(s == "oxo"){
cout << 900 << endl;
}
if(s == "xoo"){
cout << 900 << endl;
}

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '(' before '{' token
   12 | if{s == "oox"){
      |   ^
      |   (
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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

int main(){
	char *a, *b,* c;
	int count = 0;
	int price;
	char *d;
        *d = "o";
	cin >> *a >> *b >> *c;
	if(strcmp(a,d)){
		count += 1;
	}
	if(strcmp(b, d)){
		count += 1;
	}
	if(strcmp(c,d)){
		count += 1;
	}
	
	price = 700 + 100*count;
	
	cout << price << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    9 |         *d = "o";
      |              ^~~
      |              |
      |              const char*