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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		String a = sc.nextString();
		// スペース区切りの整数の入力
		// 出力
      if(a.contains("a") &&
        a.contains("b") &&
        a.contains("c") &&
        ){
		System.out.println("Yes");
    }else{
      System.out.println("No");
    }
	}
}

Compiler output:
Main.java:12: error: illegal start of expression
        ){
        ^
1 error
Language: Java

                import java.util.Scanner;
     
                public class Main{
                 public static void main (String[]args){
                Scanner s=new Scanner(System.in);
                String str=s.next();
                if (str.contains("a")&&str.contains("b")&&str.contains("c")){
                     System.out.println("Yes");
                  }
                 }
                }
                else{
                System.out.println("No");
                }
            }
            }

Compiler output:
Main.java:12: error: class, interface, enum, or record expected
                else{
                ^
Main.java:14: error: class, interface, enum, or record expected
                }
                ^
2 errors
Language: Java

// inputに入力データ全体が入る
function Main(input) {
	// input に a,b,c がそれぞれ１つ存在すること
    array=input.split("");
    if(array.sort().toString() =='abc'){
      console.log("Yes");
    }else{
      console.log("No");
    }

}
//*この行以降は編集しないでください（標準入出力から一度に読み込み、Mainを呼び出します）
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
Main.java:5: error: unclosed character literal
    if(array.sort().toString() =='abc'){
                                 ^
Main.java:5: error: unclosed character literal
    if(array.sort().toString() =='abc'){
                                     ^
Main.java:5: error: not a statement
    if(array.sort().toString() =='abc'){
                                   ^
3 errors
printing javac parameters to: /w/javac.20260128_163935.args
Language: Java

        import java.util.Scanner;
         
        public class Main{
         public static void main (String[]args){
        Scanner s=new Scanner(System.in);
        if (s.contains('a')){
         if (s.contains('b')){
          if (s.contains('c')){
          System.out.println("yes");
          }
         }
        }
        else{
        System.out.println("No");
        }
    }
    }

Compiler output:
Main.java:6: error: cannot find symbol
        if (s.contains('a')){
             ^
  symbol:   method contains(char)
  location: variable s of type Scanner
Main.java:7: error: cannot find symbol
         if (s.contains('b')){
              ^
  symbol:   method contains(char)
  location: variable s of type Scanner
Main.java:8: error: cannot find symbol
          if (s.contains('c')){
               ^
  symbol:   method contains(char)
  location: variable s of type Scanner
3 errors
Language: Java

    import java.util.Scanner;
     
    public class Main{
     public static void main (String[]args){
    Scanner s=new Scanner(System.in);
    if (s.contains('a')){
     if (s.contains('b')){
      if (s.contains('c')){
      System.out.println("yes");
      }
     }
    }
    else{
    System.out.println("No");
    }
}
]

Compiler output:
Main.java:17: error: illegal start of type
]
^
Main.java:17: error: reached end of file while parsing
]
 ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main (String[]args){
Scanner s=new Scanner(System.in);
if (s.contains('a')){
 if (s.contains('b')){
  if (s.contains('c')){
  System.out.println("yes")}
 }
}
else{
System.out.println("No")
}

Compiler output:
Main.java:9: error: ';' expected
  System.out.println("yes")}
                           ^
Main.java:13: error: ';' expected
System.out.println("No")
                        ^
Main.java:14: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

#include <stdio.h>
#include <algorithm>
int min(int a, int b){return a < b ? a : b;}
int main(){{
  int a, b, k,num[256],i;
  for (i - 0; i < 256; i++ ) num[i] = -1;
  scanf("%d%d%d",&a,&b,&k);
  for (i = 0; i < min(k, (b - a)/2); i ++) num[i] = a + i;
  for (i = 0; i < min(k, (b - a)/2); i ++) num[i] = b - i;  
  std::sort(num, num + 256);
  for (i = 0; i < 256; i++) {if(num[i] == -1) break; printf("%d\n",num[i]);}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){{
      |           ^
Language: C

#include<cstdio>

int main(){
    char s[5];
    scanf("%s",s+1);
    if(s[1]!=s[2]&&s[2]!=s[3]&&s[1]!=s[3])
        puts("Yes");
    else
        puts("No");
}


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

#include <stdio.h>

int main(){
  int n,flg[3];char str[5];
  scanf("%s",str);
  for (n = 0;n < 3; n++){
    if(str[n] == 'a') flg[0] = 1;
    if(str[n] == 'b') flg[1] = 1;
    if(str[n] == 'c') flg[2] = 1;}
  for (n = 0; n < 3; n++) if(flg[n] != 1) printf("No\n);return 0;
  printf("Yes\n");
  return 0;
}

Compiler output:
a.cc:10:50: warning: missing terminating " character
   10 |   for (n = 0; n < 3; n++) if(flg[n] != 1) printf("No\n);return 0;
      |                                                  ^
a.cc:10:50: error: missing terminating " character
   10 |   for (n = 0; n < 3; n++) if(flg[n] != 1) printf("No\n);return 0;
      |                                                  ^~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:18: error: expected ')' before ';' token
   11 |   printf("Yes\n");
      |                  ^
      |                  )
a.cc:10:49: note: to match this '('
   10 |   for (n = 0; n < 3; n++) if(flg[n] != 1) printf("No\n);return 0;
      |                                                 ^
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <cmath>
#include <string>
#include <fstream>
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ROF(i,a,b) for(int i=b-1;i>=a;i--)
#define FI first
#define SE second
#define VE vector<int>
#define PB push_back
#define LL long long
#define YES(i) cout<<(i?"YES":"NO")<<endl
#define Yes(i) cout<<(i?"Yes":"No")<<endl
using namespace std;
//
const int INF=1e9+7;
const int MOD=1e9+7;
//
int main(){
  char C[3];
  FOR(i,0,3){
    cin>>C[i];
  }
  sort(S,S+3);
  if(C[0]=='a'&&C[1]=='b'&&C[2]=='C'){
    Yes(1);
  }else{
    Yes(0); 
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: 'S' was not declared in this scope
   28 |   sort(S,S+3);
      |        ^
Language: C

#include <iostream>
#define M_NUM 10000
using namespace std;

int main() {
	char v[5];
	cin >> v ;

	for (int i=0;i<3;i++) {
		for (int j = i + 1;j < 3;j++) {
			if (v[i] == v[j]) {
				cout << "No\n";
				return 0;
			}
		}
	}
	
	cout << "Yes\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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int S;
  cin>>S;
  if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |      ~^~~~~~~
a.cc:7:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |                ~^~~~~~~
a.cc:7:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |                          ~^~~~~~~
a.cc:7:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |                                    ~^~~~~~~
a.cc:7:47: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |                                              ~^~~~~~~
a.cc:7:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(S=="abc"||S=="acb"||S=="bac"||S=="bca"||S=="cab"||S=="cba"){
      |                                                        ~^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int S;
  cin>>S;
  if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'abc' was not declared in this scope; did you mean 'abs'?
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |         ^~~
      |         abs
a.cc:7:17: error: 'acb' was not declared in this scope
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |                 ^~~
a.cc:7:25: error: 'bac' was not declared in this scope
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |                         ^~~
a.cc:7:33: error: 'bca' was not declared in this scope
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |                                 ^~~
a.cc:7:41: error: 'cab' was not declared in this scope
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |                                         ^~~
a.cc:7:49: error: 'cba' was not declared in this scope
    7 |   if(S==abc||S==acb||S==bac||S==bca||S==cab||S==cba){
      |                                                 ^~~
Language: C++

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

int main(){
    string S;
    cin >> S;
    if (s[0] != s[1] && s[1] != s[2] && s[2] != s[0]){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 's' was not declared in this scope
    7 |     if (s[0] != s[1] && s[1] != s[2] && s[2] != s[0]){
      |         ^
Language: C++

import Data.List

main = do
 str <- getLine
 putStrLn (if 3 == length (Data.List.nub str) then "Yes" else "No")


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#pragma GCC optimize ("O3")
#include <bits/stdc++.h>
using namespace std;
 
//#define int ll
 
typedef int64_t ll;
//static const int MOD = 1000000007;
static const int INF = 2147483647;
//static const long long INF = 9223372000000000000;
//static const long long INF = 9223372000000000000/2;
//static const int INF = 1000010000;
//int dx4[4] = {0,0,1,-1}, dy4[4] = {1,-1,0,0};
//int dx5[5] = {-1,0,0,0,1}, dy5[5] = {0,-1,0,1,0};
//int dx8[8] = {-1,0,1,1,1,0,-1,-1}, dy8[8] = {1,1,1,0,-1,-1,-1,0};
//int dx9[9] = {-1,0,1,1,1,0,-1,-1,0}, dy9[9] = {1,1,1,0,-1,-1,-1,0,0};
#define PB push_back
#define EB emplace_back
#define MP make_pair
#define MT make_tuple
#define FI first
#define SE second
#define NP next_permutation
#define PQ priority_queue
#define UB upper_bound
#define LB lower_bound
#define SZ(a) signed((a).size())
#define LEN(a) signed((a).length())
#define SORT(c) sort((c).begin(),(c).end())
#define RSORT(c) sort((c).begin(),(c).end());reverse((c).begin(),(c).end());
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define REP1(i,x) for(int i=1;i<=(int)(x);i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RREP1(i,x) for(int i=((int)(x));i>0;i--)
#define ALL(x) (x).begin(),(x).end()
#define YESNO(x) puts((x)?"YES":"NO")
#define YesNo(x) puts((x)?"Yes":"No")

signed main(){
    int a[3];
    string s;
    cin >> s;
    REP(i,3) a[s[i]-'a]++;
    YesNo(a[0]==1&&a[1]==1&&a[2]==1);
}















Compiler output:
a.cc:44:21: warning: missing terminating ' character
   44 |     REP(i,3) a[s[i]-'a]++;
      |                     ^
a.cc:44:21: error: missing terminating ' character
   44 |     REP(i,3) a[s[i]-'a]++;
      |                     ^~~~~~
a.cc: In function 'int main()':
a.cc:45:37: error: expected ']' before ';' token
   45 |     YesNo(a[0]==1&&a[1]==1&&a[2]==1);
      |                                     ^
Language: C++

#include <iostream>
using namespace std; 
int main() 
{string s;
cin >> s;
sort(s.begin(), s.end()); 
if(s=="abc"){
cout <<"Yes";
}
else
{cout<<"No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    6 | sort(s.begin(), s.end());
      | ^~~~
      | short
Language: C++

#include<stdio.h>
#include<vector>
#include<algorithm>
using  namespace  std ;
int  main (){
scanf(”%d%d%d ”,&a,&b,&k);
for(int i=a;i<=min(b,a+k−1);i++) 
printf(”%d\n ”,i);
for(int i=max(b−k+1,a+k);i<=b;i ++)
printf(”%d\n”,i);
return 0;
}


Compiler output:
a.cc:6:7: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |       ^
a.cc:6:15: error: extended character ” is not valid in an identifier
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |               ^
a.cc:7:24: error: extended character − is not valid in an identifier
    7 | for(int i=a;i<=min(b,a+k−1);i++)
      |                        ^
a.cc:8:8: error: extended character ” is not valid in an identifier
    8 | printf(”%d\n ”,i);
      |        ^
a.cc:8:11: error: stray '\' in program
    8 | printf(”%d\n ”,i);
      |           ^
a.cc:8:14: error: extended character ” is not valid in an identifier
    8 | printf(”%d\n ”,i);
      |              ^
a.cc:9:15: error: extended character − is not valid in an identifier
    9 | for(int i=max(b−k+1,a+k);i<=b;i ++)
      |               ^
a.cc:10:8: error: extended character ” is not valid in an identifier
   10 | printf(”%d\n”,i);
      |        ^
a.cc:10:11: error: stray '\' in program
   10 | printf(”%d\n”,i);
      |           ^
a.cc:10:12: error: extended character ” is not valid in an identifier
   10 | printf(”%d\n”,i);
      |            ^
a.cc: In function 'int main()':
a.cc:6:7: error: '\U0000201d' was not declared in this scope
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |       ^
a.cc:6:9: error: 'd' was not declared in this scope
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |         ^
a.cc:6:18: error: 'a' was not declared in this scope
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |                  ^
a.cc:6:21: error: 'b' was not declared in this scope
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |                     ^
a.cc:6:24: error: 'k' was not declared in this scope
    6 | scanf(”%d%d%d ”,&a,&b,&k);
      |                        ^
a.cc:7:24: error: 'k\U000022121' was not declared in this scope
    7 | for(int i=a;i<=min(b,a+k−1);i++)
      |                        ^~~
a.cc:9:15: error: 'b\U00002212k' was not declared in this scope
    9 | for(int i=max(b−k+1,a+k);i<=b;i ++)
      |               ^~~
Language: Java

import java.util.*;
public class permut{
        public static void main(String[] args){
                Scanner cin=new Scanner(System.in);
                String s=cin.next();
                if((s.equals("abc"))||(s.equals("acb"))||(s.equals("bac"))||(s.equals("cab"))||(s.equals("bca"))||(s.equals("cba"))){
                                System.out.println("Yes");
                }
                else{
                        System.out.println("No");
                }
        }
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
ll a,b,k;
cin >> a >> b >> k;
if(a - b + 1 > k){
for(ll i = a ;i <= b ;i ++){
cout << i <<endl
}
}else{
for(ll i=a;i<=a+k;i++){
cout << i <<endl;
}
for(ll i = b ;i >= b-k;i--){
cout << i << endl;
}
}
return  0;
}

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

#include<iostream>

int main(){
  int a=1;
  char s[4];
  std::cin >> s;
  for(int i=0;i<3;i++)
    switch(s[i]){
    case 'a':
      a*=2;
      break;
    case 'b':
      a*=3;
      break;
    case 'c':
      a*=5;
      break;
    }
  cout << ((a==30)?"Yes":"No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << ((a==30)?"Yes":"No");
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"YES";else cout<<"NO";return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:28: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"YES";else cout<<"NO";return 0;}
      |                            ^~~
      |                            std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:2:117: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"YES";else cout<<"NO";return 0;}
      |                                                                                                                     ^~~~
      |                                                                                                                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:2:134: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"YES";else cout<<"NO";return 0;}
      |                                                                                                                                      ^~~~
      |                                                                                                                                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"Yes";else cout<<"No";return 0;}

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<iostream>int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"Yes";else cout<<"No";return 0;}
      |                       ^~~~
a.cc:1:9: fatal error: iostream>in: No such file or directory
    1 | #include<iostream>int main(){int a;char s[4];cin>>s;for(int i=0;i<3;i++){if(s[i]==97)a++;if(s[i]==98)a+=4;if(s[i]==99)a+=16;}if(a==21)cout<<"Yes";else cout<<"No";return 0;}
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include <boost/range/irange.hpp>
#include <boost/range/adaptors.hpp>

using namespace std;
using namespace boost;
using namespace boost::adaptors;
using uint = unsigned int;
using ll = long long int;
using ull = unsigned long long int;

int main() {
    set<char> s;
    char a, b, c;
    cin >> a >> b >> c;
    s.insert(a);
    s.insert(b);
    s.insert(c);
    if (s.size == 3) cout << "Yes"; else cout << "No";
    return 0;
}

Compiler output:
a.cc:2:10: fatal error: boost/range/irange.hpp: No such file or directory
    2 | #include <boost/range/irange.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<string.h>
#inlude<stdlib.h>
int main()
{
	char s[4];
	int i;
	int j=3;
	char c;
 
	gets(s);
 
	for (c= 97; c< 100; c++)
	{
		for (i = 0; s[i]!= 0; i++)
		{
			if (c == s[i])
			{
	             j--;
				 break;
			}
			
		}
	}
	if (j == 0)
		printf("Yes");
	else
		printf("No");
 
    return 0;
}
 

Compiler output:
main.c:3:2: error: invalid preprocessing directive #inlude; did you mean #include?
    3 | #inlude<stdlib.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   11 |         gets(s);
      |         ^~~~
      |         fgets
Language: C

#include<iostream>
using namespace std;
int main()
{
	string s;
	cin>>s;
	if(s=="abc" || s=="acb" || s=="bac" || s=="bca" || s=="cab" || s=="cba")
	cout<<"Yes";
	else
	cout<<"No";
	return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <math>

using namespace std;


int main () {
	int nquery;
	cin >> nquery;
	long long A, B;
	int count = 0;
	for(int i = 0; i < nquery; i ++){
		count = 0;
		cin >> A >> B;
		unsigned long long product = A*B;
		if (A < B) {
			int temp = A;
			A = B;
			B = temp;
		}
		count += floor ((product-1) / (A + 1));
		
		if (floor(sqrt(product-1)) >= B){
			count += floor(sqrt(product-1)) - B + 1;
			
			count += floor(product-1)/(floor(sqrt(product-1))+1)-1;
		}
		else count += floor(sqrt(product-1));
		cout << count << endl;

	}
	cin >> A;
	return 0;
}

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

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
	char s[4];
	int i;
	int j=3;
	char c;
 
	gets(s);
 
	for (c= 97; c< 100; c++)
	{
		for (i = 0; s[i]!= 0; i++)
		{
			if (c == s[i])
			{
	             j--;
				 break;
			}
			
		}
	}
	if (j == 0)
		printf("Yes");
	else
		printf("No");
 
    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(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char s[4];
	int i;
	int j=3;
	char c;
 
	gets(s);
 
	for (c= 97; c< 100; c++)
	{
		for (i = 0; s[i]!= 0; i++)
		{
			if (c == s[i])
			{
	             j--;
				 break;
			}
			
		}
	}
	if (j == 0)
		printf("Yes");
	else
		printf("No");
 
    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(s);
      |         ^~~~
      |         getw
Language: C++

// ConsoleApplication20.cpp: 定义控制台应用程序的入口点。
//
#include<stdio.h>
int main()
{
	char s[4];
	int i;
	int j=3;
	char c;

	gets(s);

	for (c= 97; c< 100; c++)
	{
		for (i = 0; s[i]!= 0; i++)
		{
			if (c == s[i])
			{
	             j--;
				 break;
			}
			
		}
	}
	if (j == 0)
		printf("Yes");
	else
		printf("No");

    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(s);
      |         ^~~~
      |         getw
Language: C++

#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
using namespace std;
int main()
{
    string s;
    cin>>s;
       for(int i=0;i<s.size();i++)
       {
              if(s[i]!='a'or'b'or'c')
              {
                            cout<<"No";
                            system("pause");
                            return 0;
              
              }
       }
       cout<<"Yes";
 system("pause");
 return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:30:24: error: unable to find character literal operator 'operator""or' with 'char' argument
   30 |               if(s[i]!='a'or'b'or'c')
      |                        ^~~~~
a.cc:30:29: error: expected ')' before user-defined character literal
   30 |               if(s[i]!='a'or'b'or'c')
      |                 ~           ^~~~~
      |                             )
Language: C

#include<stdio.h>
#include <stdbool.h>
int main()
{
 
char aa[3];
bool a = false;
bool b = false;
bool c = false;
fgets(a, 3, stdin);
 
for(int i = 0; i < 3; i++){
if(aa[i] = 'a'){
a = true;
}else if(aa[i] = 'b'){
b = true;
}else if(aa[i] = 'c'){
c = true;
}
 
}
if(a || b || c){
printf("Yes");
}else{
printf("No");
}
 
 
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: incompatible type for argument 1 of 'fgets'
   10 | fgets(a, 3, stdin);
      |       ^
      |       |
      |       _Bool
In file included from main.c:1:
/usr/include/stdio.h:654:38: note: expected 'char * restrict' but argument is of type '_Bool'
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |                     ~~~~~~~~~~~~~~~~~^~~
Language: C

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

char a[3];
bool a = false;
bool b = false;
bool c = false;
fgets(a, 3, stdin);

for(int i = 0; i < 3; i++){
if(a[i] = 'a'){
a = true;
}else if(a[i] = 'b'){
b = true;
}else if(a[i] = 'c'){
c = true;
}

}
if(a || b || c){
printf("Yes");
}else{
printf("No");
}


}

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

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

int main()
{
string s;
cin >> s;
if(s == "abc"|| "acb"||"bac"||"bca"||"cba"|| "cab") ;
cout << "Yes"<<endl;
else cout <<"No"<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'else' without a previous 'if'
   10 | else cout <<"No"<<endl;
      | ^~~~
Language: C++

#include <string>

using namespace std;

int main(){
    string str,a,b,c,d,e,f;
    a = "abc";
    b = "bca";
    c = "cab";
    d = "acb";
    e = "bac";
    f = "cba";
    cin >> str;
    if(str == a){
       cout << "Yes" << "\n";
    }else if(str == b){
       cout << "Yes" << "\n";
    }else if(str == c){
       cout << "Yes" << "\n";
    }else if(str == d){
       cout << "Yes" << "\n";
    }else if(str == e){
       cout << "Yes" << "\n";
    }else if(str == f){
       cout << "Yes" << "\n";
    }else{
       cout << "No"  << "\n";
    }
    return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cin' was not declared in this scope
   13 |     cin >> str;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string>
  +++ |+#include <iostream>
    2 | 
a.cc:15:8: error: 'cout' was not declared in this scope
   15 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:15:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:8: error: 'cout' was not declared in this scope
   17 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:17:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:8: error: 'cout' was not declared in this scope
   19 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:19:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:8: error: 'cout' was not declared in this scope
   21 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:21:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:8: error: 'cout' was not declared in this scope
   23 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:23:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:8: error: 'cout' was not declared in this scope
   25 |        cout << "Yes" << "\n";
      |        ^~~~
a.cc:25:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:8: error: 'cout' was not declared in this scope
   27 |        cout << "No"  << "\n";
      |        ^~~~
a.cc:27:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

int main(){
	char s[3];
	std::cin>>s;
	if(s[0]!=s[1]&&s[0]!=s[2]&&s[1]!=s[2]){
		std::cout<<"Yes"<<endl;
	}
	else{
		std::cout<<"No"<<std::endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |                 std::cout<<"Yes"<<endl;
      |                                   ^~~~
      |                                   std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<string>
using namespace std;
#include <stdio.h>
#include <limits.h>
#include "bits/stdc++.h"
int A=0;
int B=0;
int K=0;
int x=0;
string result;
string process;
int main(){
	cin>>A>>B>>K;
	if((B-A)/2>K){
	x=B-K+1;
	for(i=A;i<A+K:i++){
		process="i\n";
		result+=process;
		}
	for(i=x;i<K+1;i++){
		process="i\n";
		result+=process;
		}
	}
	else{
	for(i=A;i<B+1;i++){
		process="i\n";
		result+=process;
		}
	}
	cout << result;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'i' was not declared in this scope
   16 |         for(i=A;i<A+K:i++){
      |             ^
a.cc:16:17: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   16 |         for(i=A;i<A+K:i++){
      |                 ^
a.cc:16:22: error: found ':' in nested-name-specifier, expected '::'
   16 |         for(i=A;i<A+K:i++){
      |                      ^
      |                      ::
a.cc:16:21: error: 'K' is not a class, namespace, or enumeration
   16 |         for(i=A;i<A+K:i++){
      |                     ^
a.cc:20:9: error: expected primary-expression before 'for'
   20 |         for(i=x;i<K+1;i++){
      |         ^~~
a.cc:19:18: error: expected ';' before 'for'
   19 |                 }
      |                  ^
      |                  ;
   20 |         for(i=x;i<K+1;i++){
      |         ~~~       
a.cc:20:9: error: expected primary-expression before 'for'
   20 |         for(i=x;i<K+1;i++){
      |         ^~~
a.cc:19:18: error: expected ')' before 'for'
   19 |                 }
      |                  ^
      |                  )
   20 |         for(i=x;i<K+1;i++){
      |         ~~~       
a.cc:16:12: note: to match this '('
   16 |         for(i=A;i<A+K:i++){
      |            ^
a.cc:26:13: error: 'i' was not declared in this scope
   26 |         for(i=A;i<B+1;i++){
      |             ^
Language: C++


using namespace std;

string S;

bool p = true;

int main() {

    cin >> S;

    if (S[0] == S[1]){

        p = false;
    }

    if (S[0] == S[2]){

        p = false;
    }

    if (S[1] == S[2]){

        p = false;

    }

    if (p == true) cout << "Yes" << endl;

    else cout << "NO" << endl;

}


Compiler output:
a.cc:4:1: error: 'string' does not name a type
    4 | string S;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     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 | 
a.cc:10:12: error: 'S' was not declared in this scope
   10 |     cin >> S;
      |            ^
a.cc:28:20: error: 'cout' was not declared in this scope
   28 |     if (p == true) cout << "Yes" << endl;
      |                    ^~~~
a.cc:28:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:37: error: 'endl' was not declared in this scope
   28 |     if (p == true) cout << "Yes" << endl;
      |                                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:30:10: error: 'cout' was not declared in this scope
   30 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:30:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:26: error: 'endl' was not declared in this scope
   30 |     else cout << "NO" << endl;
      |                          ^~~~
a.cc:30:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
    char str[3];
    cin>>str;
    if(strcmp(str,"abc")==0||strcmp(str,"bca")==0||strcmp(str,"cab")==0){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'strcmp' was not declared in this scope
    7 |     if(strcmp(str,"abc")==0||strcmp(str,"bca")==0||strcmp(str,"cab")==0){
      |        ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <bits/stdc++.h>
//#include "bits:stdc++.h"
#define INF 1234567890987//654321
typedef long long ll;
using namespace std;
const int limit = 298;
ll a, b, c;
ll dpdp(ll x, ll y, ll z)
{
	if(x==y && y==z)return 0;
	ll dp= INF;
	ll t1 = 0, t2 = 0, arr[] = {x, y, z};
	for(ll i = 0; i < 3; i++)if(t1 < arr[i])t1 = arr[i], t2 = i;
	if(t2 == 0)
	{
		dp = min(dp, dpdp(x, y+1, z+1)+1);
	}
	else if(t2 == 1)
	{
		dp= min(dp, dpdp(x+1, y, z+1)+1);
	}
	else
	{
		dp = min(dp, dpdp(x+1, y+1, z)+1);
	} 
	t1 = INF, t2 = 0;
	for(ll i = 0; i < 3; i++)if(t1 > arr[i])t1 = arr[i], t2 = i;
	if(t2 == 0)
	{
		dp = min(dp, dpdp(x+2, y-1+1, z-1+1)+1);
	}
	else if(t2 == 1)
	{
		dp = min(dp, dpdp(x+1-1, y+2, z+1-1)+1);
	}
	else
	{
		dp = min(dp, dpdp(x+1-1, y+1-1, z+2)+1);
	} 
	return dp;
}
int main()
{
	//freopen("inputfile.cpp", "r", stdin);
	cin >> a >> b >> c;
	//memset(dp, -1, sizeof(dp));
	cout << dpdp(a, b, c) << '\n';
	//cout << dp[a][b][c] << '\n';
}
#include <bits/stdc++.h>
//#include "bits:stdc++.h"
#define INF 1234567890987//654321
typedef long long ll;
using namespace std;
const int limit = 298;
ll a, b, c;
ll dpdp(ll x, ll y, ll z)
{

	if(x==y && y==z)return 0;
	ll dp= INF;
	ll t1 = 0, t2 = 0, arr[] = {x, y, z};
	for(ll i = 0; i < 3; i++)if(t1 < arr[i])t1 = arr[i], t2 = i;
	if(t2 == 0)
	{
		dp = min(dp, dpdp(x, y+1, z+1)+1);
	}
	else if(t2 == 1)
	{
		dp= min(dp, dpdp(x+1, y, z+1)+1);
	}
	else
	{
		dp = min(dp, dpdp(x+1, y+1, z)+1);
	} 
	t1 = INF, t2 = 0;
	for(ll i = 0; i < 3; i++)if(t1 > arr[i])t1 = arr[i], t2 = i;
	if(t2 == 0)
	{
		dp = min(dp, dpdp(x+2, y-1+1, z-1+1)+1);
	}
	else if(t2 == 1)
	{
		dp = min(dp, dpdp(x+1-1, y+2, z+1-1)+1);
	}
	else
	{
		dp = min(dp, dpdp(x+1-1, y+1-1, z+2)+1);
	} 
	return dp;
}
int main()
{
	//freopen("inputfile.cpp", "r", stdin);
	cin >> a >> b >> c;
	//memset(dp, -1, sizeof(dp));
	cout << dpdp(a, b, c) << '\n';
	//cout << dp[a][b][c] << '\n';
}


Compiler output:
a.cc:55:11: error: redefinition of 'const int limit'
   55 | const int limit = 298;
      |           ^~~~~
a.cc:6:11: note: 'const int limit' previously defined here
    6 | const int limit = 298;
      |           ^~~~~
a.cc:56:4: error: redefinition of 'll a'
   56 | ll a, b, c;
      |    ^
a.cc:7:4: note: 'll a' previously declared here
    7 | ll a, b, c;
      |    ^
a.cc:56:7: error: redefinition of 'll b'
   56 | ll a, b, c;
      |       ^
a.cc:7:7: note: 'll b' previously declared here
    7 | ll a, b, c;
      |       ^
a.cc:56:10: error: redefinition of 'll c'
   56 | ll a, b, c;
      |          ^
a.cc:7:10: note: 'll c' previously declared here
    7 | ll a, b, c;
      |          ^
a.cc:57:4: error: redefinition of 'll dpdp(ll, ll, ll)'
   57 | ll dpdp(ll x, ll y, ll z)
      |    ^~~~
a.cc:8:4: note: 'll dpdp(ll, ll, ll)' previously defined here
    8 | ll dpdp(ll x, ll y, ll z)
      |    ^~~~
a.cc:92:5: error: redefinition of 'int main()'
   92 | int main()
      |     ^~~~
a.cc:42:5: note: 'int main()' previously defined here
   42 | int main()
      |     ^~~~
Language: Java

import java.util.*;
public class Main5 {
		public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
        int a[] =new int [3];
				a [1] = sc.nextInt();
				a [2] = sc.nextInt();
				a [3] = sc.nextInt();
				Arrays.sort(a);
				if((a[3]-a[1]+a[3]-a[2]) % 2 ==0){
						System.out.println((a[3] - a[1] + a[3] - a[2]) / 2);
				}
				else{
						a[3] += 1;
						a[2] += 1;
						System.out.println((a[3] - a[1] + a[3] - a[2]) / 2 + 1);
				}
		}
}


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

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

int main()
{
    string s;
    cin>>s;
    int flag=0;
    if(s[0]=='a' or s[0]=='b' or s[0]=='c') flag++;
    if((s[1]=='a' or s[1]=='b' or s[1]=='c') and (s[1]!=s[0])) flag++;
    if((s[2]=='a' or s[2]=='b' or s[2]=='c') and (s[2]!=s[1]) and (s[2]]!=s[0])) flag++;
    flag==3?cout<<"Yes"<<endl:cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:72: error: expected ')' before ']' token
   11 |     if((s[2]=='a' or s[2]=='b' or s[2]=='c') and (s[2]!=s[1]) and (s[2]]!=s[0])) flag++;
      |                                                                   ~    ^
      |                                                                        )
a.cc:11:88: error: expected ')' before ';' token
   11 |     if((s[2]=='a' or s[2]=='b' or s[2]=='c') and (s[2]!=s[1]) and (s[2]]!=s[0])) flag++;
      |       ~                                                                                ^
      |                                                                                        )
Language: C

#include <iostream>
#include <string>
int main(void){
  std::string S;
  std::cin >> S;
  if ((int)S.find("a")>=0&&(int)S.find("b")>=0&&(int)S.find("c")>=0){
    std::cout << "Yes\n";
  }else{
    std::cout <<"No\n";
  }
}
  

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

#include <stdio.h>

int main(void)
{
    cahr S[3];
    int i,flag=0;
   
    scanf("%s",S);
   
   for(i=1;i<3;i++){
       if(S[i]==S[i-1]||(i==2&&(S[i-1]==S[i-2])))
           flag=1;
   }
   if(flag==0){
       printf("Yes");
   }
   else{
       printf("No");
   } 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cahr' was not declared in this scope; did you mean 'char'?
    5 |     cahr S[3];
      |     ^~~~
      |     char
a.cc:8:16: error: 'S' was not declared in this scope
    8 |     scanf("%s",S);
      |                ^
Language: C++

#include<string>
using namespace std;
#include <stdio.h>
#include <limits.h>
char S[3];
int sum=0;
int x=0;
int y=0;
int z=0;
string str("No");
int main(){
	cin>>S;
	for(int i = 0; i<3; i++){
		if(S[i]=='a'){
			x=1;
		}	
	}
	for(int i = 0; i<3; i++){
		if(S[i]=='b'){
			y=1;
		}	
	}
	for(int i = 0; i<3; i++){
		if(S[i]=='c'){
			z=1;
		}	
	}
	sum=x+y+z;
	if (sum==3){
		str="Yes";
	}
	cout << str;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin>>S;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <limits.h>
  +++ |+#include <iostream>
    5 | char S[3];
a.cc:32:9: error: 'cout' was not declared in this scope
   32 |         cout << str;
      |         ^~~~
a.cc:32:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++


#include <stdio.h>
#include <limits.h>
char S[3];
int sum=0;
int x=0;
int y=0;
int z=0;
string str("No");
int main(){
	cin>>S;
	for(int i = 0; i<3; i++){
		if(S[i]=='a'){
			x=1;
		}	
	}
	for(int i = 0; i<3; i++){
		if(S[i]=='b'){
			y=1;
		}	
	}
	for(int i = 0; i<3; i++){
		if(S[i]=='c'){
			z=1;
		}	
	}
	sum=a+b+c;
	if (sum==3){
		str="Yes";
	}
	cout << str;
	return 0;
}

Compiler output:
a.cc:9:1: error: 'string' does not name a type; did you mean 'stdin'?
    9 | string str("No");
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin>>S;
      |         ^~~
a.cc:27:13: error: 'a' was not declared in this scope
   27 |         sum=a+b+c;
      |             ^
a.cc:27:15: error: 'b' was not declared in this scope
   27 |         sum=a+b+c;
      |               ^
a.cc:27:17: error: 'c' was not declared in this scope
   27 |         sum=a+b+c;
      |                 ^
a.cc:29:17: error: 'str' was not declared in this scope; did you mean 'std'?
   29 |                 str="Yes";
      |                 ^~~
      |                 std
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout << str;
      |         ^~~~
a.cc:31:17: error: 'str' was not declared in this scope; did you mean 'std'?
   31 |         cout << str;
      |                 ^~~
      |                 std
Language: C++

#include<bits/stdc++.h>
int main()
{
	int i,b[3]={0,0,0};
	char a[10];
	scanf("%s",a);
	for(i=0;i<3;i++)
	{
		if(a[i]=='a'||a[i]=='A')
		{
			b[0]=1;
		}
		else if(a[i]=='b'||a[i]=='B')
		{
			b[1]=1;
		}
		else if(a[i]=='c')||a[i]=='C')
		{
			b[2]=1;
		}
	}
	if(b[0]==b[1]==b[2])
	{
		printf("Yes");
	}
	else
	{
		printf("No");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:35: error: expected primary-expression before '||' token
   17 |                 else if(a[i]=='c')||a[i]=='C')
      |                                   ^~
Language: C++


#include <stdio.h>
#include <limits.h>
char S[3];
int sum=0;
int x=y=z=0;
string str("No");
int main(){
	cin>>S;
	for(int i = 0; i<3; i++;){
		if(S[i]=='a'){
			x=1;
		}	
	}
	for(int i = 0; i<3; i++;){
		if(S[i]=='b'){
			y=1;
		}	
	}
	for(int i = 0; i<3; i++;){
		if(S[i]=='c'){
			z=1;
		}	
	}
	sum=a+b+c;
	if (sum==3){
		str="Yes";
	}
	cout << str;
	return 0;
}

Compiler output:
a.cc:6:7: error: 'y' was not declared in this scope
    6 | int x=y=z=0;
      |       ^
a.cc:6:9: error: 'z' was not declared in this scope
    6 | int x=y=z=0;
      |         ^
a.cc:7:1: error: 'string' does not name a type; did you mean 'stdin'?
    7 | string str("No");
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin>>S;
      |         ^~~
a.cc:10:32: error: expected ')' before ';' token
   10 |         for(int i = 0; i<3; i++;){
      |            ~                   ^
      |                                )
a.cc:10:33: error: expected primary-expression before ')' token
   10 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:15:32: error: expected ')' before ';' token
   15 |         for(int i = 0; i<3; i++;){
      |            ~                   ^
      |                                )
a.cc:15:33: error: expected primary-expression before ')' token
   15 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:20:32: error: expected ')' before ';' token
   20 |         for(int i = 0; i<3; i++;){
      |            ~                   ^
      |                                )
a.cc:20:33: error: expected primary-expression before ')' token
   20 |         for(int i = 0; i<3; i++;){
      |                                 ^
a.cc:25:13: error: 'a' was not declared in this scope
   25 |         sum=a+b+c;
      |             ^
a.cc:25:15: error: 'b' was not declared in this scope
   25 |         sum=a+b+c;
      |               ^
a.cc:25:17: error: 'c' was not declared in this scope
   25 |         sum=a+b+c;
      |                 ^
a.cc:27:17: error: 'str' was not declared in this scope; did you mean 'std'?
   27 |                 str="Yes";
      |                 ^~~
      |                 std
a.cc:29:9: error: 'cout' was not declared in this scope
   29 |         cout << str;
      |         ^~~~
a.cc:29:17: error: 'str' was not declared in this scope; did you mean 'std'?
   29 |         cout << str;
      |                 ^~~
      |                 std