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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if (((a<c)&&(c<b))||((b<c) &&(c<a)){
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected ')' before '{' token
    6 |   if (((a<c)&&(c<b))||((b<c) &&(c<a)){
      |      ~                               ^
      |                                      )
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  cin >> a >> b >> c;
  if ((a<c)&&(c<b)){
    cout << "Yes" << endl;
  }else {
    cout << "No" << endl;
  }  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'a' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |          ^
a.cc:4:15: error: 'b' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |               ^
a.cc:4:20: error: 'c' was not declared in this scope
    4 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int A, B, C;
	cin >> A >> B >> C;
	if ((A > B && B > C) || (A < B && B < C) {
		cout<<"Yes"<<endl;
	}
	else {
		cout<"No"<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: expected ')' before '{' token
    8 |         if ((A > B && B > C) || (A < B && B < C) {
      |            ~                                    ^~
      |                                                 )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include <cstdio>
int A, B, C;

int main() {
  scanf(" %d%d%d", &A, &B, &C);
  if (A > B) std::swap(A, B);
  puts((A < C) && (C < B) ? "Yes" : "No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'swap' is not a member of 'std'
    6 |   if (A > B) std::swap(A, B);
      |                   ^~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int a , b ,c ;
  cin>>a>>b>>c;
  if(c>a && c>b)
  {
    cout<<"No'<<endl;}
     else if (c<a && c<b)
     {
       
       cout<<"No"<<endl;}
    else
    {
      cout<<"Yes"<<endl;}
    return 0;
  }
  

Compiler output:
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"No'<<endl;}
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"No'<<endl;}
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:6: error: expected primary-expression before 'else'
   11 |      else if (c<a && c<b)
      |      ^~~~
a.cc:15:5: error: expected '}' before 'else'
   15 |     else
      |     ^~~~
a.cc:9:3: note: to match this '{'
    9 |   {
      |   ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main(int argc, char* argv[]){
    int N;
    string S;

    cin >> N;
    cin >> S;

    // ....##.... -> 中を白にする
    //
    // .#.##.##..##.　-> 
    // ####...###....####.... 白を黒にする 11
    //....####...###....### 
    // #.#  例外　黒の数 > 白の数の場合　白を黒に

    // #..## // 左側の黒の数が右ブロックの白の数より小さい時
    // #..##. // 今のアルゴリズムだと3を返す
    // #..####
    // なんパターン
    // 塗りつぶしor 左白右側黒
    
    bool firstblack= false;
    int wCount = 0;
    int bCount = 0;
    int first_bCount = 0;

    for(int i = 0; i < N; i++){
            if(S[i] == '.' && firstblack == true){
                wCount++;
            }
            if(S[i] == '#'){
                if(firstblack == false){
                    firstblack = true;
                    first_bCount = count_black_chank(S,i);
                }
                bCount++;
            }
    }

    // cout << "w: " << wCount << endl;
    // cout << "b: " << bCount << endl;
        if(bCount > wCount){
            cout <<  wCount << endl;
            }else {
            cout << bCount << endl;
            }

    return 0;
}

int count_black_chank(string& s, int index){
    int count = 1;
    for (int i = 0; i < s.size(); i++){
        if(s[index+1] == '#')count++;
        else return count;
    }
}

int count_white_chank(string& s, int index){
    int count = 1;
    for (int i = 0; i < s.size(); i++){
        if(s[index+1] == '.')count++;
        else return count;
    }
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:38:36: error: 'count_black_chank' was not declared in this scope
   38 |                     first_bCount = count_black_chank(S,i);
      |                                    ^~~~~~~~~~~~~~~~~
a.cc: In function 'int count_black_chank(std::string&, int)':
a.cc:61:1: warning: control reaches end of non-void function [-Wreturn-type]
   61 | }
      | ^
a.cc: In function 'int count_white_chank(std::string&, int)':
a.cc:69:1: warning: control reaches end of non-void function [-Wreturn-type]
   69 | }
      | ^
Language: C++

#include <iostream>
#include <string>

using namespace std;

int count_black_chank(string& s, int index)

int main(int argc, char* argv[]){
    int N;
    string S;

    cin >> N;
    cin >> S;

    // ....##.... -> 中を白にする
    //
    // .#.##.##..##.　-> 
    // ####...###....####.... 白を黒にする 11
    //....####...###....### 
    // #.#  例外　黒の数 > 白の数の場合　白を黒に

    // #..## // 左側の黒の数が右ブロックの白の数より小さい時
    // #..##. // 今のアルゴリズムだと3を返す
    // #..####
    // なんパターン
    // 塗りつぶしor 左白右側黒
    
    bool firstblack= false;
    int wCount = 0;
    int bCount = 0;
    int first_bCount = 0;

    for(int i = 0; i < N; i++){
            if(S[i] == '.' && firstblack == true){
                wCount++;
            }
            if(S[i] == '#'){
                if(firstblack == false){
                    firstblack = true;
                    first_bCount = count_black_chank(S,i);
                }
                bCount++;
            }
    }

    // cout << "w: " << wCount << endl;
    // cout << "b: " << bCount << endl;
        if(bCount > wCount){
            cout <<  wCount << endl;
            }else {
            cout << bCount << endl;
            }

    return 0;
}



Compiler output:
a.cc:8:1: error: expected initializer before 'int'
    8 | int main(int argc, char* argv[]){
      | ^~~
Language: C++

include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C ;
  cin >>A>>B>>C ;
  a,b=min(A,B),max(A,B)
  if(a <= C && C <= b){
    cout << "Yes" << endl;
}
else {
    cout << "NO" << 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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >>A>>B>>C ;
      |   ^~~
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a,b=min(A,B),max(A,B)
      |   ^
a.cc:8:5: error: 'b' was not declared in this scope
    8 |   a,b=min(A,B),max(A,B)
      |     ^
a.cc:8:7: error: 'min' was not declared in this scope; did you mean 'main'?
    8 |   a,b=min(A,B),max(A,B)
      |       ^~~
      |       main
a.cc:8:16: error: 'max' was not declared in this scope
    8 |   a,b=min(A,B),max(A,B)
      |                ^~~
a.cc:12:1: error: 'else' without a previous 'if'
   12 | else {
      | ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "NO" << endl;
      |     ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

#include<iostream>

using namesppace std;

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if(a<= c && c <= b){
    cout << "Yes" <<endl;
  }
  else cout << "No"<<endl;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesppace'
    3 | using namesppace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b >> c;
      |   ^~~
      |   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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Yes" <<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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << "Yes" <<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout << "No"<<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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   else cout << "No"<<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 <bits/stdc++.h>
using namespace std;
 
int main() {
int N;string S;int count;int kuro;int siro;int j;int n;
  cin>>N; cin>>S;
  kuro=0;
  
   for (int i = 0; i < N; i++) {  
   if(S.at(i)=='#'){
     j=i;
     n=i;
      while( j < N) {
     if(S.at(j)=='#'){kuro=kuro+1;
                      j++;}
   }
     break;}
   }
  
  if(kuro=0){
  cout<<0<<endl;
  }
 else{ siro=N-(n+1+kuro);}
  
   if(kuro<siro){
     cout<<kuro<<endl;
     }else{
     cout<<siro<<endl;}
     }
}
  


Compiler output:
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

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

int main(){
  int N,K;
  String S;
  cin >> N >> S >> K;
  for(int i=0;i<N;i++){
    if(S[i]!=S[K+1]) S[i]='*'; 
  }
  cout << S << endl;
}

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

#include <iostream>

int main(){
  int A, B, C;
  cin >> A >> B >> C >> endl;
  if( ( (A-C) * (B-C) ) < 0) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> A >> B >> C >> endl;
      |   ^~~
      |   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:5:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cin >> A >> B >> C >> endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:30: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if( ( (A-C) * (B-C) ) < 0) cout << "Yes" << 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout << "No" << endl;
      |        ^~~~
      |        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<bits/stdc++.h>
using namespace std;

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  if(min(A,B) < C < max(A,B) {
  cout << "Yes"<< endl;
  }
  else{
  cout << "No"<< endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected ')' before '{' token
    7 |   if(min(A,B) < C < max(A,B) {
      |     ~                       ^~
      |                             )
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C++

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

int main() {
  vector<int> a(3);
  for (int i = 0; i < 3; ++i) cin >> a[i];
  x = a[1];
  sort(a.begin(), a.end());
  if (x != a[0] && x != a[2]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x = a[1];
      |   ^
Language: C++

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

int main() {
  vector<int> a(3);
  for (int i = 0; i < 3; ++i) cin >> a[i];
  x = a[1];
  sort(a.begin(), a.end());
  if (x != a[0] && x != a[2]) puts("Yes");
  else puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'x' was not declared in this scope
    9 |   x = a[1];
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define INCANT cin.tie(0), ios::sync_with_stdio(false), cout << fixed << setprecision(20);
#define int long long
void in(){}
template<typename F, typename... R>
bool in(F& f, R&... r){
    if(cin >> f){
        in(r...);
        return true;
    }else{
        return false;
    }
}
#define YN(x) out((x) ? "YES" : "NO"), indent()
#define Yn(x) out((x) ? "Yes" : "No"), indent()
#define yn(x) out((x) ? "yes" : "no"), indent()
main(){
    INCANT;
    int a, b, c;
    in(a, b, c);
    Yn(a < c && c < b || a > c && c > b);
}

Compiler output:
a.cc:18:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   18 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:15: error: 'out' was not declared in this scope
   16 | #define Yn(x) out((x) ? "Yes" : "No"), indent()
      |               ^~~
a.cc:22:5: note: in expansion of macro 'Yn'
   22 |     Yn(a < c && c < b || a > c && c > b);
      |     ^~
a.cc:16:40: error: 'indent' was not declared in this scope; did you mean 'index'?
   16 | #define Yn(x) out((x) ? "Yes" : "No"), indent()
      |                                        ^~~~~~
a.cc:22:5: note: in expansion of macro 'Yn'
   22 |     Yn(a < c && c < b || a > c && c > b);
      |     ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n,a,b;
  cin >> n;
  string s;
  cin >> s;
  vector<int> lis(n+1);
  a = 0;
  b = 0;
  for (int i = 0; i < n; i++){
    if (s.at(i) == '#')
      a ++;
    if (s.at(n-i-1) == ".")
      b++;
    lis.at(i) = a+b
  }
  sort(lis.begin(),lis.end());
  cout << lis.at(0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     if (s.at(n-i-1) == ".")
      |         ~~~~~~~~~~~~^~~~~~
a.cc:16:20: error: expected ';' before '}' token
   16 |     lis.at(i) = a+b
      |                    ^
      |                    ;
   17 |   }
      |   ~
Language: C++

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

 int https://paiza.io/main() {
     int N;
     cin >> N;
     
     string S;
     cin >> S;
     
     int K;
     cin >> K;
     
     
     for (int i = -1; i < N; i++){
     
     
     if( i != K){
     S.at(i) == '*'
     } 
   cout << S.at(i);
 }
       cout << endl;
 }

Compiler output:
a.cc:4:11: error: expected initializer before ':' token
    4 |  int https://paiza.io/main() {
      |           ^
a.cc:6:6: error: 'cin' does not name a type
    6 |      cin >> N;
      |      ^~~
a.cc:9:6: error: 'cin' does not name a type
    9 |      cin >> S;
      |      ^~~
a.cc:12:6: error: 'cin' does not name a type
   12 |      cin >> K;
      |      ^~~
a.cc:15:6: error: expected unqualified-id before 'for'
   15 |      for (int i = -1; i < N; i++){
      |      ^~~
a.cc:15:23: error: 'i' does not name a type
   15 |      for (int i = -1; i < N; i++){
      |                       ^
a.cc:15:30: error: 'i' does not name a type
   15 |      for (int i = -1; i < N; i++){
      |                              ^
a.cc:23:8: error: 'cout' does not name a type
   23 |        cout << endl;
      |        ^~~~
a.cc:24:2: error: expected declaration before '}' token
   24 |  }
      |  ^
Language: C++

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

int main(){
  int n;
  string s,sa;
  cin>>n>>s;
  vector<long long int>c(7);
  sa="aa";
  s+=sa;
  for(int i=0;i<n;i++){
  //  if(s.at(i)=='#')
  //    c.at(0)++;
  //  if(s.at(i)=='.')
  //    c.at(1)++;
    if(s.at(i)=='#'&&s.at(i+1)=='#'){
      c.at(4)++;
    }
    if(s.at(i)=='#'&&s.at(i+1)=='.'){
      c.at(2)+=c.at(4)+1;
    }
    if(s.at(i)=='.'&&s.at(i+1)=='#'){
      c.at(4)=0;
    }
    if(s.at(i)=='#'&&s.at(i+1)=='.'){
      for(long long int j=i+1;j<n;j++){
        if(s.at(j)=='.')
          c.at(5)++;
        if(s.at(n-1)=='.'){
          c.at(7)=min(c.at(5),c.at(4));
        
        else
          c.at(2)+=c.at(7);
          c.at(5)=0;
          break;
      }
    }
  }
  long long int ans;
  ans=min(c.at(2),c.at(3))+c.at(7);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:9: error: expected '}' before 'else'
   32 |         else
      |         ^~~~
a.cc:29:27: note: to match this '{'
   29 |         if(s.at(n-1)=='.'){
      |                           ^
Language: C

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

int main(void){

     int A,B,C;

     scanf("%d%d%d",&A,&B,&C);

     if(B>C>A){

            printf("Yes\n")

    }else{

            print("No\n")

    }

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:15:28: error: expected ';' before '}' token
   15 |             printf("Yes\n")
      |                            ^
      |                            ;
   16 | 
   17 |     }else{
      |     ~                       
main.c:19:13: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   19 |             print("No\n")
      |             ^~~~~
      |             lrint
main.c:19:26: error: expected ';' before '}' token
   19 |             print("No\n")
      |                          ^
      |                          ;
   20 | 
   21 |     }
      |     ~
Language: C++

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

int main() {
  int a,b,c;
  cin  >> a >> b >> c;
  
  if((a > b && b > c) || (a < b && b < c)) {
    cout << "No" << endl;
  } else {
    cout << "No" << endl;
  }

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

#include <stdio.h>
int main(){
int a,c,d = 0;
  char b[a+1];
  scanf("%d",&a);
  scanf("%s",b);
  scanf("%d",&c);
  char d = b[c-1];
  for(int i=1; i<=a; i++){
    if(b[i]!=d){
      b[i] = '*';
    }
  }
　for(i=1;i<=a;++i){
    printf("%s", a[i]);
  }
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:8:8: error: conflicting types for 'd'; have 'char'
    8 |   char d = b[c-1];
      |        ^
main.c:3:9: note: previous definition of 'd' with type 'int'
    3 | int a,c,d = 0;
      |         ^
main.c:14:1: error: stray '\343' in program
   14 | <U+3000>for(i=1;i<=a;++i){
      | ^~~~~~~~
main.c:14:7: error: 'i' undeclared (first use in this function)
   14 | 　for(i=1;i<=a;++i){
      |       ^
main.c:14:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    int N,count;
    bool flag = false;
    count = 0;
    cin >> N;
    cin >> S;
    
    for(int i=0;i<N;i++){
        if(flag){
            if (S[i] == '.'){
                count++;
            }
        }
        else if (S[i] == '#' && S[i+1] == '.') {
            flag = true;
        }
    }
    cout << count << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,i;
	char c[11];
	scanf("%d %s %d",&a,c,&b);
	for(i=0;i<n;i++)
	{
		if(c[i]==c[b])
			printf("%c",c[i]);
		else
			printf("*");
	}
	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(a=>b&&b<=c)
	{
		cout<<"Yes";
		return 0;
	}
	else
		cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before '>' token
    7 |         if(a=>b&&b<=c)
      |              ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int A, B, C;
    string s;
    cin >> A >> B >> C >> s;
    
    if (A == B == C) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}

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

#include <iostream>

using namespace std;

int main(){
    int a, b, c;
    string s;
    cin >> A >> B >> C >> s;
    
    if (A == B == C) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |            ^
a.cc:8:17: error: 'B' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                 ^
a.cc:8:22: error: 'C' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                      ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int a, b, c;
    string s;
    cin >> A >> B >> C >> s;
    
    if (A B C) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |            ^
a.cc:8:17: error: 'B' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                 ^
a.cc:8:22: error: 'C' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                      ^
a.cc:10:10: error: expected ')' before 'B'
   10 |     if (A B C) {
      |        ~ ^~
      |          )
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int a, b, c;
    string s;
    cin >> A >> B >> C >> s;
    
    if (a * b % 2 == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |            ^
a.cc:8:17: error: 'B' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                 ^
a.cc:8:22: error: 'C' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                      ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main(){
    int a, b, c;
    string s;
    cin >> A >> B >> C >> s;
    
    if (a * b % 2 == 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |            ^
a.cc:8:17: error: 'B' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                 ^
a.cc:8:22: error: 'C' was not declared in this scope
    8 |     cin >> A >> B >> C >> s;
      |                      ^
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

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

int main(){
int a,b,c;
cin>>a>>b>>c;
if (a<c && c<b){
cout << #include <bits/stdc++.h>
using namespace std;

int main(){
int a,b,c;
cin>>a>>b>>c;
if (a<c && c<b){
cout << "Yes";
}else if(b<c && c<a){
cout<< "Yes";
}else{
cout << "No";
}

}


Compiler output:
a.cc:8:9: error: stray '#' in program
    8 | cout << #include <bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:8:10: error: 'include' was not declared in this scope
    8 | cout << #include <bits/stdc++.h>
      |          ^~~~~~~
a.cc:8:19: error: 'bits' was not declared in this scope
    8 | cout << #include <bits/stdc++.h>
      |                   ^~~~
a.cc:8:24: error: 'stdc' was not declared in this scope; did you mean 'std'?
    8 | cout << #include <bits/stdc++.h>
      |                        ^~~~
      |                        std
a.cc:9:1: error: expected primary-expression before 'using'
    9 | using namespace std;
      | ^~~~~
a.cc:11:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   11 | int main(){
      |         ^~
a.cc:11:9: note: remove parentheses to default-initialize a variable
   11 | int main(){
      |         ^~
      |         --
a.cc:11:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:11:11: error: a function-definition is not allowed here before '{' token
   11 | int main(){
      |           ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:7:16: note: to match this '{'
    7 | if (a<c && c<b){
      |                ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

 int main() {
     int N, K;
     char S;
     cin >> N >> S >> K;
     
     for (int i = 0; i < N; i++){
     
       swap ( S.at(K), *)
  
   cout << S.at(i);
 }
       cout << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: request for member 'at' in 'S', which is of non-class type 'char'
   11 |        swap ( S.at(K), *)
      |                 ^~
a.cc:11:25: error: expected primary-expression before ')' token
   11 |        swap ( S.at(K), *)
      |                         ^
Language: C++

#include <stdio.h>

int main(){
 int A;
 int B;
 int C;
 if ((B >= A && B <= C) || (B <= A && B >= C)){
  printf(“Yes”);
 }else{
  printf(“No”)
 }
}

Compiler output:
a.cc:8:10: error: extended character “ is not valid in an identifier
    8 |   printf(“Yes”);
      |          ^
a.cc:8:10: error: extended character ” is not valid in an identifier
a.cc:10:10: error: extended character “ is not valid in an identifier
   10 |   printf(“No”)
      |          ^
a.cc:10:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:10: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 |   printf(“Yes”);
      |          ^~~~~
a.cc:10:10: error: '\U0000201cNo\U0000201d' was not declared in this scope
   10 |   printf(“No”)
      |          ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;
  cin >> a >> b >> c;
  if (a<b) {
  for (; a==b; a++){
    if (a==c){
      cout << Yes << endl;
      break;
    }
  }
    cout << No << endl;
  }
  else if (a>b) {
    for (; a==b; a--) {
      if (a==c) {
        cout << Yes << endl;
        break;
      }
    }
    cout << No << endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'Yes' was not declared in this scope
    9 |       cout << Yes << endl;
      |               ^~~
a.cc:13:13: error: 'No' was not declared in this scope
   13 |     cout << No << endl;
      |             ^~
a.cc:18:17: error: 'Yes' was not declared in this scope
   18 |         cout << Yes << endl;
      |                 ^~~
a.cc:22:13: error: 'No' was not declared in this scope
   22 |     cout << No << endl;
      |             ^~
Language: C++

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

int main(){
int a,b,c;
cin>>a>>b>>c;
if (a<c && c<b){
cout << “Yes”;
}else if(b<c && c<a){
cout<<“Yes”;
}else{
cout <<“No”;
}

}

Compiler output:
a.cc:8:9: error: extended character “ is not valid in an identifier
    8 | cout << “Yes”;
      |         ^
a.cc:8:9: error: extended character ” is not valid in an identifier
a.cc:10:7: error: extended character “ is not valid in an identifier
   10 | cout<<“Yes”;
      |       ^
a.cc:10:7: error: extended character ” is not valid in an identifier
a.cc:12:8: error: extended character “ is not valid in an identifier
   12 | cout <<“No”;
      |        ^
a.cc:12:8: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:9: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 | cout << “Yes”;
      |         ^~~~~
a.cc:10:7: error: '\U0000201cYes\U0000201d' was not declared in this scope
   10 | cout<<“Yes”;
      |       ^~~~~
a.cc:12:8: error: '\U0000201cNo\U0000201d' was not declared in this scope
   12 | cout <<“No”;
      |        ^~~~
Language: C

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

int main(void){

    int A,B,C;

    scanf("%d%d%d",&A,&B,&C);

    if(B>C>A){

        printf("Yes\n");

   }else {

        printf("No\n);

    }

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:19:16: warning: missing terminating " character
   19 |         printf("No\n);
      |                ^
main.c:19:16: error: missing terminating " character
   19 |         printf("No\n);
      |                ^~~~~~~
main.c:21:5: error: expected expression before '}' token
   21 |     }
      |     ^
main.c:19:16: error: expected ';' before '}' token
   19 |         printf("No\n);
      |                ^
      |                ;
   20 | 
   21 |     }
      |     ~
Language: C++


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

int main(){

  int a, b, c;
  cin >> a >> b >> c;
if(a<c && c<b){
cout<< “Yes” << endl;
}else if(b<c && c<a){
cout<< “Yes” <<endl;
}else{
cout << “No” <<endl;
}
 



}


Compiler output:
a.cc:12:8: error: extended character “ is not valid in an identifier
   12 | cout<< “Yes” << endl;
      |        ^
a.cc:12:8: error: extended character ” is not valid in an identifier
a.cc:14:8: error: extended character “ is not valid in an identifier
   14 | cout<< “Yes” <<endl;
      |        ^
a.cc:14:8: error: extended character ” is not valid in an identifier
a.cc:16:9: error: extended character “ is not valid in an identifier
   16 | cout << “No” <<endl;
      |         ^
a.cc:16:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:12:8: error: '\U0000201cYes\U0000201d' was not declared in this scope
   12 | cout<< “Yes” << endl;
      |        ^~~~~
a.cc:14:8: error: '\U0000201cYes\U0000201d' was not declared in this scope
   14 | cout<< “Yes” <<endl;
      |        ^~~~~
a.cc:16:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
   16 | cout << “No” <<endl;
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int A,B,C;
cin>>A>>B>>C;
if(A<B<C|| A>B>C | |B<A<C || B>A>C){
cout<<"No"<<endl;
}
else if (A<C<B || B<C<A || A>C>B || B>C>A){
cout<<"Yes"<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before '|' token
    7 | if(A<B<C|| A>B>C | |B<A<C || B>A>C){
      |                    ^
Language: C

include<stdio.h>

int main(){
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a<b){
        if(a<c && c<b){
            printf("YES\n");
        }else{
            printf("NO\n");
        }
    }
    if(a>b){
        if(a>c && c>b){
            printf("YES\n");
        }else{
            printf("NO\n");
        }
    }
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

int main() {
  int A, B, C;
  cin >>A, >>B, >>C;
  if(A<C&&C<B){
    cout <<"Yes" <<endl;
  }
  else{
    cout <<"No" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>>' token
    6 |   cin >>A, >>B, >>C;
      |            ^~
a.cc:6:17: error: expected primary-expression before '>>' token
    6 |   cin >>A, >>B, >>C;
      |                 ^~
Language: C++


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

int main(){

  int a, b, c;
  cin >> a >> b >> c;
if(a<c && c<b){
cout<< “Yes”;
}else if(b<c && c<a){
cout<< “Yes”;
}else{
cout << “No”;}
 



}


Compiler output:
a.cc:12:8: error: extended character “ is not valid in an identifier
   12 | cout<< “Yes”;
      |        ^
a.cc:12:8: error: extended character ” is not valid in an identifier
a.cc:14:8: error: extended character “ is not valid in an identifier
   14 | cout<< “Yes”;
      |        ^
a.cc:14:8: error: extended character ” is not valid in an identifier
a.cc:16:9: error: extended character “ is not valid in an identifier
   16 | cout << “No”;}
      |         ^
a.cc:16:9: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:12:8: error: '\U0000201cYes\U0000201d' was not declared in this scope
   12 | cout<< “Yes”;
      |        ^~~~~
a.cc:14:8: error: '\U0000201cYes\U0000201d' was not declared in this scope
   14 | cout<< “Yes”;
      |        ^~~~~
a.cc:16:9: error: '\U0000201cNo\U0000201d' was not declared in this scope
   16 | cout << “No”;}
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int a, b, c;
	cin >> a >> b >> c;
	if (a = < c&&b >= c) {
		cout << "Yes" << endl;
	}
	else if (b = < c&&a >= c) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '<' token
    6 |         if (a = < c&&b >= c) {
      |                 ^
a.cc:9:22: error: expected primary-expression before '<' token
    9 |         else if (b = < c&&a >= c) {
      |                      ^
Language: C++

#include <iostream>
 
int main(void)
{
    double float a , b,  c;
    std::cin >> a >> b >> c;
    if( (c-a) / (b-a) >= 1){
        std::cout << "No";
    }else{
        std::cout << "Yes";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: two or more data types in declaration of 'a'
    5 |     double float a , b,  c;
      |     ^~~~~~
a.cc:5:5: error: two or more data types in declaration of 'b'
a.cc:5:5: error: two or more data types in declaration of 'c'
a.cc:6:17: error: 'a' was not declared in this scope
    6 |     std::cin >> a >> b >> c;
      |                 ^
a.cc:6:22: error: 'b' was not declared in this scope
    6 |     std::cin >> a >> b >> c;
      |                      ^
a.cc:6:27: error: 'c' was not declared in this scope
    6 |     std::cin >> a >> b >> c;
      |                           ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        
        if(a < b){
            if((a < c) && (c < b){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }else{
            if((b < c) && (c < a)){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }
        
    }
}

               

Compiler output:
Main.java:13: error: ')' expected
            if((a < c) && (c < b){
                                 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	if(a=<c&&b>=c){
		cout<<"Yes"<<endl;
	}
	else if(b=<c&&a>=c){
		cout<<"Yes"<<endl;
	}
	else{
		cout<<"No"<<endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '<' token
    6 |         if(a=<c&&b>=c){
      |              ^
a.cc:9:19: error: expected primary-expression before '<' token
    9 |         else if(b=<c&&a>=c){
      |                   ^
Language: Java

import java.util.Scanner;
2. 
3.class Main {
4.  public static void main(String[] args) {
5.    Scanner scanner = new Scanner(System.in);
6.    int a,b,c;
7.    a = scanner.nextInt();
8.    b = scanner.nextInt();
9.    c = scanner.nextInt();
10. 
11.    if ((a < c) && (b > c)) {   //(1)
12.      System.out.println("Yes");
13.      
14.    }
15. 
16.    else
17.      System.out.println("No");
18.  }
19.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2. 
^
Main.java:4: error: illegal start of type
4.  public static void main(String[] args) {
^
Main.java:5: error: not a statement
5.    Scanner scanner = new Scanner(System.in);
^
Main.java:5: error: ';' expected
5.    Scanner scanner = new Scanner(System.in);
  ^
Main.java:6: error: not a statement
6.    int a,b,c;
^
Main.java:6: error: ';' expected
6.    int a,b,c;
  ^
Main.java:7: error: not a statement
7.    a = scanner.nextInt();
^
Main.java:7: error: ';' expected
7.    a = scanner.nextInt();
  ^
Main.java:8: error: not a statement
8.    b = scanner.nextInt();
^
Main.java:8: error: ';' expected
8.    b = scanner.nextInt();
  ^
Main.java:9: error: not a statement
9.    c = scanner.nextInt();
^
Main.java:9: error: ';' expected
9.    c = scanner.nextInt();
  ^
Main.java:10: error: not a statement
10. 
^
Main.java:10: error: ';' expected
10. 
   ^
Main.java:12: error: not a statement
12.      System.out.println("Yes");
^
Main.java:12: error: ';' expected
12.      System.out.println("Yes");
   ^
Main.java:13: error: not a statement
13.      
^
Main.java:13: error: ';' expected
13.      
   ^
Main.java:15: error: not a statement
15. 
^
Main.java:15: error: ';' expected
15. 
   ^
Main.java:17: error: not a statement
17.      System.out.println("No");
^
Main.java:17: error: ';' expected
17.      System.out.println("No");
   ^
Main.java:16: error: 'else' without 'if'
16.    else
       ^
Main.java:18: error: not a statement
18.  }
^
Main.java:18: error: ';' expected
18.  }
   ^
Main.java:19: error: illegal start of type
19.}
^
26 errors
Language: C++

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

int main(void){

  char  *s;
  int   n, k;

  scanf("%d", &n);
  s = malloc(n * sizeof(s));
  scanf("%s", s);
  scanf("%d", &k);

  for (size_t i = 0; i < n; i++) {
    if (s[i] != s[k - 1]) {
      s[i] = '*';
    }
  }

  printf(s);

  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid conversion from 'void*' to 'char*' [-fpermissive]
   10 |   s = malloc(n * sizeof(s));
      |       ~~~~~~^~~~~~~~~~~~~~~
      |             |
      |             void*
Language: C++

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

int main() {
  int N,K,x,i;

  cin >>  N >> K;

  char S[N];

  cin >> S;


  x=S[K-1];

  for (i=0;i<N;i++) {
    if (x==S[i])
      S[i]="*"; }

  cout << S << endl;
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |       S[i]="*"; }
      |            ^~~
      |            |
      |            const char*
Language: C

#include<stdio.h>
int main(void){
int a,b,c;
scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);
if(a<c && b>c){
printf(“yes”);
}
else if(a>c && b<c){
printf(“yes”);
}
else
printf(“no”);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:7: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&a);
      |       ^~~~~~~~
main.c:4:8: error: expected expression before '%' token
    4 | scanf(“%d”,&a);
      |        ^
main.c:4:10: error: stray '\342' in program
    4 | scanf(<U+201C>%d<U+201D>,&a);
      |                 ^~~~~~~~
main.c:5:7: error: stray '\342' in program
    5 | scanf(<U+201C>%d<U+201D>,&b);
      |       ^~~~~~~~
main.c:5:8: error: expected expression before '%' token
    5 | scanf(“%d”,&b);
      |        ^
main.c:5:10: error: stray '\342' in program
    5 | scanf(<U+201C>%d<U+201D>,&b);
      |                 ^~~~~~~~
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d”,&c);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&c);
      |                 ^~~~~~~~
main.c:8:8: error: stray '\342' in program
    8 | printf(<U+201C>yes<U+201D>);
      |        ^~~~~~~~
main.c:8:12: error: stray '\342' in program
    8 | printf(<U+201C>yes<U+201D>);
      |                   ^~~~~~~~
main.c:8:9: error: 'yes' undeclared (first use in this function)
    8 | printf(“yes”);
      |         ^~~
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>yes<U+201D>);
      |        ^~~~~~~~
main.c:11:12: error: stray '\342' in program
   11 | printf(<U+201C>yes<U+201D>);
      |                   ^~~~~~~~
main.c:14:8: error: stray '\342' in program
   14 | printf(<U+201C>no<U+201D>);
      |        ^~~~~~~~
main.c:14:11: error: stray '\342' in program
   14 | printf(<U+201C>no<U+201D>);
      |                  ^~~~~~~~
main.c:14:9: error: 'no' undeclared (first use in this function)
   14 | printf(“no”);
      |         ^~
Language: C++

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

int main() {
  int N,K,x,i;

  cin >>  N >> K;

  char S[N];

  cin >> S;


  x=S[K-1];

  for (i=0;i<N;i++) {
    if (x==S[i])
      S[i]=*; }
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected primary-expression before ';' token
   18 |       S[i]=*; }
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int A,B,C;
  cin>>A>>B>>C>>;
  if(A<B&&B<C)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before ';' token
    5 |   cin>>A>>B>>C>>;
      |                 ^
Language: C++

#include <stdio.h>

int main(void){

  int a, b, c;

  scanf("%d %d %d", a, b, c);

  if ((a < c) && (c < b))) {
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected primary-expression before ')' token
    9 |   if ((a < c) && (c < b))) {
      |                          ^
Language: C++

int main(void){

  int a, b, c;

  scanf("%d %d %d", a, b, c);

  if ((a < c) && (c < b))) {
    printf("Yes\n");
  }else{
    printf("No\n");
  }

  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%d %d %d", a, b, c);
      |   ^~~~~
a.cc:7:26: error: expected primary-expression before ')' token
    7 |   if ((a < c) && (c < b))) {
      |                          ^
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("No\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void){
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  if(a>b){
    int t;
    t=a;
    a=b;
    b=a;
  }
  if((b-a)==1){
  cout<<"No"<<endl;
  else if((b>c)&&(a<c))
    cout<<"Yes"<<endl;
     else
     cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected '}' before 'else'
   13 |   else if((b>c)&&(a<c))
      |   ^~~~
a.cc:11:15: note: to match this '{'
   11 |   if((b-a)==1){
      |               ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a >>b >> c;
if(a >=c >= b || b <= c <=a){
cout << "yes";
}else{
cout << "no";ac
}
}

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

#include <iostream>
using namespace std;

int main(){
    int a,b,c;
        cin >> a;
        cin >> b;
        cin >> c;
    if ((b>c&& a<c) || (b<c && a>c)){
    cout<< ("Yes");
    }else if{
        cout << ("No");
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected '(' before '{' token
   11 |     }else if{
      |             ^
      |             (
Language: C++

#include <iostream>
using namespace std;
int main(){
int a,b,c;
cin >> a,b,c;
if(a >=c >= b || b <= c <=a){
cout << "yes";
}else{
cout << "no";ac
}
}

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

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

int main() {
    int a,b,c;
    cin >> a >> b >> c;
    if()
    if(((a<c&&c<b)||(b<c&&c<a)){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before ')' token
    7 |     if()
      |        ^
a.cc:8:32: error: expected ')' before '{' token
    8 |     if(((a<c&&c<b)||(b<c&&c<a)){
      |       ~                        ^
      |                                )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int A = 0;
		int B = 0;
		int C = 0;
		String s;
		Scanner sc = new Scanner(System.in);
		A = Integer.parseInt(sc.next());
		B = Integer.parseInt(sc.next());
		C = Integer.parseInt(sc.next());
		if((A<B&&B<C)||(C<B&&B<A)){
			System.out.println("No");
		}
		else
			System.out.println("Yes");
	}

}

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