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

#include <iostream>
using namespace std;

int main() {
  int N, ways=0; cin >> N;
  for (int i=0; i<N/4; i++) {
    for (int j=0; j<N/7; j++) {
      if (4*i+7*j==N) ways++;
    }
  }

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

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

int main() {
  int N;
  cin >> N;
  
  for (int a = 0; a <= N/4; a++) {
    for (int b = 0; b <= N/7; b++) {
      int total = 4*a + 7*b;
    }
  }  
  if (N == total) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'total' was not declared in this scope
   13 |   if (N == total) cout << "Yes" << endl;
      |            ^~~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  if (N % 4 == 0 || N % 7 == 0) {
    cout << "Yes" << endl;
  }
  else if (N / 4 % 7 == 0 || N / 7 % 4 == 0) {
    cout << "Yes" << endl;
  }
)  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: expected primary-expression before ')' token
   14 | )
      | ^
a.cc:14:2: error: expected '}' at end of input
   14 | )
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  if (N % 4 == 0 || N % 7 == 0) {
    cout << "Yes" << ensdl;
  }
  else if (N / 4 % 7 == 0 || N / 7 % 4 == 0) {
    cout << "Yes" << endl;
  }
)  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'ensdl' was not declared in this scope
    9 |     cout << "Yes" << ensdl;
      |                      ^~~~~
a.cc:14:1: error: expected primary-expression before ')' token
   14 | )
      | ^
a.cc:14:2: error: expected '}' at end of input
   14 | )
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
constexpr int INF = numeric_limits<int>::max() / 2;
constexpr long long INFL = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;



int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);

    int N;
    cin >> N;
    int ans="No";
    rep(i,26){
        rep(j,15){
            if(N==i*4+j*7) ans="Yes";
        }
    }
    cout << ans << endl;



}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   18 |     int ans="No";
      |             ^~~~
      |             |
      |             const char*
a.cc:21:32: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   21 |             if(N==i*4+j*7) ans="Yes";
      |                                ^~~~~
      |                                |
      |                                const char*
Language: C++

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


int main() {
  int X;
  cin >> X;
  for (int a= 0; a< 26; ++a){
    for (int b= 0; b< 15; ++b){
      int total = 4*a + 7*b
      if (total == X) {
        cout << "Yes"<< endl;
        break;
      }
      else cout << "No"<< endl;
   }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: expected ',' or ';' before 'if'
   11 |       if (total == X) {
      |       ^~
a.cc:15:7: error: 'else' without a previous 'if'
   15 |       else cout << "No"<< endl;
      |       ^~~~
Language: C

#include <stdio.h>
int main(void){
  int f,j,k,n,s,A,i;
  scanf("%d",&n);
  s=0;f=0;A=0;
  for(i=4;i<101;i=i+4){
    s=n-i
    if(s<=0){k=0;break;}
    for(j=7;j<101;j=j+7){
      f=s-j;
      if(f==0){
        A=1;break;
      }
      if(f<=0){k=0;break;}
    }
    if(s==0)A=1;
    if((A==1)||(k==0))break;
  }
  if(A==1)printf("Yes");
  else printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: expected ';' before 'if'
    7 |     s=n-i
      |          ^
      |          ;
    8 |     if(s<=0){k=0;break;}
      |     ~~
Language: C

#include <stdio.h>
int main (void)
{
    int i,j,N,s;
    scanf("%d",&N);
    while(N>=0)
        N=N-4;
    if(N%3=0)
        printf("Yes\n");
    else
        printf("No\n");


    return 0 ;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: lvalue required as left operand of assignment
    8 |     if(N%3=0)
      |           ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N;
    cin >> N;
    int total;
    bool ans = False;
    for (int i=0; i<N; ++i){
        for (int j=0; j<N; ++j){
            total = 4*i + 7*j;
            if (total == N) ans = True;
        }
    }
    if (ans) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'False' was not declared in this scope
    8 |     bool ans = False;
      |                ^~~~~
a.cc:12:35: error: 'True' was not declared in this scope
   12 |             if (total == N) ans = True;
      |                                   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N;
    cin >> N;
    int total;
    bool ans = False;
    for (int i=0; i<N; ++i){
        for (int j=0; j<N; ++j){
            total = 4*i + 7*j
            if (total == N) ans = True;
        }
    }
    if (ans) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'False' was not declared in this scope
    8 |     bool ans = False;
      |                ^~~~~
a.cc:11:30: error: expected ';' before 'if'
   11 |             total = 4*i + 7*j
      |                              ^
      |                              ;
   12 |             if (total == N) ans = True;
      |             ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  bool flag=false;
  for(i=0;i<26;i++){
    for(j=0;j<15;j++){
      if(4*i+7*j==N){
        flag=true;
        break;
      }
    }
  }
  if(flag){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

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

#include <stdio.h>
 
int main(void)
{
    int n,a={0},b={0};
      
     scanf("%d",&n);
  
     a=n%4; b=n%7;
     
     if((n>=4)(a%7==0)||(b%4==0)||(a==0)||(b==0)) printf("Yes\n");
     else       printf("No\n");
  
     return 0;
}  

Compiler output:
main.c: In function 'main':
main.c:11:11: error: called object is not a function or function pointer
   11 |      if((n>=4)(a%7==0)||(b%4==0)||(a==0)||(b==0)) printf("Yes\n");
      |         ~~^~~~
Language: C++

n=int(input())
if n%7==0 or n%4==0 or n%11==0:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  cin>>N;
  int count=0;
  
  for(int i=0;i<=N;i++)
    for(int j=0,j<=N;j++)
      if(4*i+7*j==N)
        count++;
  
  
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '<=' token
   10 |     for(int j=0,j<=N;j++)
      |                  ^~
      |                  ;
a.cc:10:18: error: expected primary-expression before '<=' token
   10 |     for(int j=0,j<=N;j++)
      |                  ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N;
  cin>>N;
  int count=0;
  
  for(int i=0;i<=N;i++)
    for(int j=0,j<=N;j++;)
      if(4*i+7*j==N)
        count++;
  
  
  cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ';' before '<=' token
   10 |     for(int j=0,j<=N;j++;)
      |                  ^~
      |                  ;
a.cc:10:18: error: expected primary-expression before '<=' token
   10 |     for(int j=0,j<=N;j++;)
      |                  ^~
a.cc:10:25: error: expected ')' before ';' token
   10 |     for(int j=0,j<=N;j++;)
      |        ~                ^
      |                         )
a.cc:10:26: error: expected primary-expression before ')' token
   10 |     for(int j=0,j<=N;j++;)
      |                          ^
Language: C++

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

int main(){
 int n;
 cin >> n;
  
 int cmax=100/4;
 int dmax=100/7;
 for (int i=0;i<=cmax;i++){
   for (int j=0;j<=dmax;j++){
      if (i*4+j*7==n) cout << "Yes" << endl
   }
 }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:44: error: expected ';' before '}' token
   12 |       if (i*4+j*7==n) cout << "Yes" << endl
      |                                            ^
      |                                            ;
   13 |    }
      |    ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N; bool P=false;
	for(int a=0;a<N/4;a++){
    	for(int b=0;b<N/7;b++){
        if(N==4*a+7*b){P=true;
                      break;}
        
        }
        }
   if (P=true){
   cout<<"Yes"<<endl;
   }
else{cout<<"No"<<endl;}
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: expected ';' before '}' token
   17 |   return 0
      |           ^
      |           ;
   18 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N; bool P=false;
	for(int a=0;a<N;a++){
    	for(int b=0;b<N;b++){
        if(N==4*a+7*b){P=true;
                      break;}
        
        }
        }
    
    }
   if (P=true){
   cout<<"Yes"<<endl;
   }
else{cout<<"No"<<endl;}
}

Compiler output:
a.cc:15:4: error: expected unqualified-id before 'if'
   15 |    if (P=true){
      |    ^~
a.cc:18:1: error: expected unqualified-id before 'else'
   18 | else{cout<<"No"<<endl;}
      | ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int N;
cin>>N;
	for(int a=0;a<N;a++){
    	for(int b=0;b<N;b++){
        if(N-4*a+7*b=0){cout<<"Yes"<<endl;
        
        }
          else{cout<<"No"<<endl;}
        }
    
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: lvalue required as left operand of assignment
    8 |         if(N-4*a+7*b=0){cout<<"Yes"<<endl;
      |            ~~~~~^~~~
Language: C++

#include <iostream>
int main(){
  int N;
  cin >> N;
  int n = N / 7;
  for(int i = 0; i < n + 1; i++){
    if((N - i*7) % 4 == 0){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> N;
      |   ^~~
      |   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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       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:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   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:12:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n); i > 0; i++)

using ll=long long;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  string ans = "No"
  rep(i,26)rep(j,15) if(i*4+j*7==n) ans = "Yes";
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:14:3: note: in expansion of macro 'rep'
   14 |   rep(i,26)rep(j,15) if(i*4+j*7==n) ans = "Yes";
      |   ^~~
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   rep(i,26)rep(j,15) if(i*4+j*7==n) ans = "Yes";
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:14:16: error: 'j' was not declared in this scope
   14 |   rep(i,26)rep(j,15) if(i*4+j*7==n) ans = "Yes";
      |                ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if(n ==1 ||n ==2 ||n == 3||n ==5 ||n == 6||n ==9 ||n ==10 ||n == 13||n ==17){
  cout << "No" <<endl;
}
else{
  cout << "Yes" <<endl
  
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before '}' token
   10 |   cout << "Yes" <<endl
      |                       ^
      |                       ;
   11 | 
   12 | }
      | ~
Language: C++

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

int main(){
  int n;
  cin>>n;
  
  string s = 'No';
  
  for(int i = 0; i<26 ; i++){
    for(int j = 0; j<15 ; j++){
      if(n == 4*i + 7*j) s = 'Yes';
    }
  }
  cout<<s<<endl;
  
}
      
      

Compiler output:
a.cc:8:14: warning: multi-character character constant [-Wmultichar]
    8 |   string s = 'No';
      |              ^~~~
a.cc:12:30: warning: multi-character character constant [-Wmultichar]
   12 |       if(n == 4*i + 7*j) s = 'Yes';
      |                              ^~~~~
a.cc: In function 'int main()':
a.cc:8:14: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string s = 'No';
      |              ^~~~
a.cc:12:30: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
   12 |       if(n == 4*i + 7*j) s = 'Yes';
      |                              ^~~~~
Language: C++

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

int main(){
  int n;
  cin>>n;
  
  string s = 'No';
  
  for(int i = 0; i<26 ; i++){
    for(int j = 0; j<15 ; j++){
      if(n == 4*i + 7*j) s = 'Yes'
    }
  }
  cout<<s<<endl;
  
}
      
      

Compiler output:
a.cc:8:14: warning: multi-character character constant [-Wmultichar]
    8 |   string s = 'No';
      |              ^~~~
a.cc:12:30: warning: multi-character character constant [-Wmultichar]
   12 |       if(n == 4*i + 7*j) s = 'Yes'
      |                              ^~~~~
a.cc: In function 'int main()':
a.cc:8:14: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |   string s = 'No';
      |              ^~~~
a.cc:12:30: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
   12 |       if(n == 4*i + 7*j) s = 'Yes'
      |                              ^~~~~
a.cc:12:35: error: expected ';' before '}' token
   12 |       if(n == 4*i + 7*j) s = 'Yes'
      |                                   ^
      |                                   ;
   13 |     }
      |     ~
Language: C++

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

int main() {
int N;
  cin >> N;
  if(N%7%4 ==0){
    cout << "Yes"<<endl;
  }
  else{
    cout <<"No"<< endl;

}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  
  bool can = false
  for(int i = 0;i < 200;i++) {
    for(int j = 0;j < 200;j++) {
      int total = 4*i+7*j;
      if(total == N) can = true;
    }
  }
 if(can) cout << "Yes" << endl;
 else { cout << "No" << endl; 
     }
}  

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

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

int main() {
  int n;
  cin>>n;
  if(n==1 &&n==2 &&N==3 &&n==5&&n==6&&n==9&&n==10&&n==13&&n==17)
    cout <<"No" <<endl;
  else
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'N' was not declared in this scope
    7 |   if(n==1 &&n==2 &&N==3 &&n==5&&n==6&&n==9&&n==10&&n==13&&n==17)
      |                    ^
Language: C++

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

int main() {
  int n;
  cin>>n;
  if(N==1 &&N==2 &&N==3 &&N==5&&N==6&&N==9&&N==10&&N==13&&N==17)
    cout <<"No" <<endl;
  else
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'N' was not declared in this scope
    7 |   if(N==1 &&N==2 &&N==3 &&N==5&&N==6&&N==9&&N==10&&N==13&&N==17)
      |      ^
Language: C++

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

int main() {
  int n;
  cin>>n;
  if(N==1 &&2 &&3 &&5&&6&&9&&10&&13&&17)
    cout <<"No" <<endl;
  else
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'N' was not declared in this scope
    7 |   if(N==1 &&2 &&3 &&5&&6&&9&&10&&13&&17)
      |      ^
Language: C++

int N;

int main(){
    cin >> N;
    int sum = 0, a, b;
    bool flag = false;
    for( a = 0; a <= 25; a++){
        for(b = 0; b <= 15; b++){
             sum = a * 4 + b * 7;
             if(sum == N) flag = true;
        }
    }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> N;
      |     ^~~
a.cc:13:14: error: 'cout' was not declared in this scope
   13 |     if(flag) cout << "Yes" << endl;
      |              ^~~~
a.cc:13:31: error: 'endl' was not declared in this scope
   13 |     if(flag) cout << "Yes" << endl;
      |                               ^~~~
a.cc:14:10: error: 'cout' was not declared in this scope
   14 |     else cout << "No" << endl;
      |          ^~~~
a.cc:14:26: error: 'endl' was not declared in this scope
   14 |     else cout << "No" << endl;
      |                          ^~~~
Language: C++

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


int main() {

	int N;
	cin N;

	if (N > 17 || N == 4 || N == 7 || N == 8 || N == 11 || N == 12 || N == 14 || N == 16)
		cout << "Yes";

	else
		cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'N'
    8 |         cin N;
      |            ^~
      |            ;
Language: C

#include<stdio.h>
// #include<stdbool.h>

const int CAKE = 4;
const int DONUT = 7;

bool dfs(int n) {
	if(n == 0) {
		return true;
	} else if(n < 0) {
		return false;
	} else {
		return dfs(n-CAKE) || dfs(n-DONUT);
	}
}

int main(void) {
	int n;
	scanf("%d", &n);

	if(dfs(n)) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}

	return 0;
}


Compiler output:
main.c:7:1: error: unknown type name 'bool'
    7 | bool dfs(int n) {
      | ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | // #include<stdbool.h>
main.c: In function 'dfs':
main.c:9:24: error: 'true' undeclared (first use in this function)
    9 |                 return true;
      |                        ^~~~
main.c:9:24: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:9:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:24: error: 'false' undeclared (first use in this function)
   11 |                 return false;
      |                        ^~~~~
main.c:11:24: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

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

ll n;

inline ll read(){
	ll s = 0, w = 1;
	char ch = getchar();
	while (ch < '0' || ch > '9'){
		if (ch == '-') w *= -1;
		ch = getchar();
	}
	while (ch >= '0' && ch <= '9'){
		s = s * 10 + ch - '0';
		ch = getchar();
	}
	return s * w;
}

int main(){
	n = read();
	REP(i, 0, 25)
		REP(j, 0, 14)
			if (i * 4 + j * 7 == n){
				puts("Yes");
				return 0;
			}
	puts("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'i' was not declared in this scope
   23 |         REP(i, 0, 25)
      |             ^
a.cc:23:9: error: 'REP' was not declared in this scope
   23 |         REP(i, 0, 25)
      |         ^~~
Language: C++

int main() {
  int N; cin >> N;
  bool flag = false;
  for(int i=0;i<N/7+1;i++){
    if(flag =( (N - i*7)%4==0 )) break;
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:10: error: 'cin' was not declared in this scope
    2 |   int N; cin >> N;
      |          ^~~
a.cc:7:12: error: 'cout' was not declared in this scope
    7 |   if(flag) cout << "Yes" << endl;
      |            ^~~~
a.cc:7:29: error: 'endl' was not declared in this scope
    7 |   if(flag) cout << "Yes" << endl;
      |                             ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "No" << endl;
      |        ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   else cout << "No" << endl;
      |                        ^~~~
Language: C++

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

int main() {
  int n;
  cin>>n;
  for(int i-0; i<=n/4; i++){
    for(int j=0; j<=n/7; j++){
      if(4*i + 7*j == n) {
        cout<<"Yes";
        return 0;
      }
    }
  }
  cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before '-' token
    7 |   for(int i-0; i<=n/4; i++){
      |            ^
      |            ;
a.cc:7:22: error: expected ')' before ';' token
    7 |   for(int i-0; i<=n/4; i++){
      |      ~               ^
      |                      )
a.cc:7:24: error: 'i' was not declared in this scope
    7 |   for(int i-0; i<=n/4; i++){
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a;
	cin>>a;
	if(a>20||a==4||a==7||a==8++a==11||a==12||a==14||a==15||a==16)
		cout<<"Yes";
	else
		cout<<"No";
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: lvalue required as increment operand
    6 |         if(a>20||a==4||a==7||a==8++a==11||a==12||a==14||a==15||a==16)
      |                                 ^
a.cc:6:36: error: expected ')' before 'a'
    6 |         if(a>20||a==4||a==7||a==8++a==11||a==12||a==14||a==15||a==16)
      |           ~                        ^
      |                                    )
Language: C++

#include<bits/stdc++.h>
#include <math.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<n;i++)
#define repl(i,l,r) for(ll i=(l);i<(r);i++)
#define per(i,n) for(ll i=n-1;i>=0;i--)
#define lper(i,r,l) for(ll i=r-1;i>=l;i--)
#define fi first
#define se second
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define CST(x) cout<<fixed<<setprecision(x)
using ll=long long;
using vl=vector<ll>;
using vvl=vector<vector<ll>>;
using pl=pair<ll,ll>;
const ll MOD=1000000007;
const ll MOD9=998244353;
const int inf=1e9;
const ll INF=4e18;
const ll dy[4]={1,0,-1,0};
const ll dx[4]={0,-1,0,1};
int main() {
int N;
  cin >>N;
  if((N==1) ||(N==2)|| (N==3)|| (N==5) ||(N==6) ||(N==9) ||(N==13)|| (N==15)|| (N==17))  {
cout <<"No"<< endl;
  }
else {
cout <<"Yes""<< endl;
}
}



Compiler output:
a.cc:30:13: warning: missing terminating " character
   30 | cout <<"Yes""<< endl;
      |             ^
a.cc:30:13: error: missing terminating " character
   30 | cout <<"Yes""<< endl;
      |             ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:30:13: error: expected ';' before '}' token
   30 | cout <<"Yes""<< endl;
      |             ^
      |             ;
   31 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
    int i=0;
    int j=0;
    while(true){
        if(4*i + 7*j == N){
            cout << "Yes";
            break;
        }else if(4*i + 7*j > N){
            cout << "No";
            break;
        }
        i++;
        if(4*i + 7*j == N){
            cout << "Yes";
            break;
        }else if(4*i + 7*j > N){
            cout << "No";
            break;
        }
        j++;
         if(4*i + 7*j == N){
            cout << "Yes";
            break;
        }else if(4*i + 7*j > N){
            cout << "No";
            break;
        }
    }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'N' was not declared in this scope
    8 |         if(4*i + 7*j == N){
      |                         ^
a.cc:16:25: error: 'N' was not declared in this scope
   16 |         if(4*i + 7*j == N){
      |                         ^
a.cc:24:26: error: 'N' was not declared in this scope
   24 |          if(4*i + 7*j == N){
      |                          ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String args[]){
		Scanner scanner = new Scanner(System.in);
		int N = Integer.parseInt(scanner.nextLine()); //total
		
		for(int a=0; a<=25; a++){
			for(int b=0; b<=14; b++){
				if((4*a + 7*b) == N){
					System.out.println('yes');
					break;
				}
			}
		}
		System.out.println('no');
	}
}

Compiler output:
Main.java:10: error: unclosed character literal
					System.out.println('yes');
					                   ^
Main.java:10: error: unclosed character literal
					System.out.println('yes');
					                       ^
Main.java:10: error: not a statement
					System.out.println('yes');
					                     ^
Main.java:15: error: unclosed character literal
		System.out.println('no');
		                   ^
Main.java:15: error: unclosed character literal
		System.out.println('no');
		                      ^
Main.java:15: error: not a statement
		System.out.println('no');
		                     ^
6 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
      }
  	}
    System.out.println(answer);
}
  }

Compiler output:
Main.java:19: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int c = 4;
    int d = 7;
    int count = sc.nextInt();
    int total = 0;
    String answer = "No";
    for(int i=0;i<30;i++) {
      for(int j=0;j<30;j++) {
      	total = c * i + d * j;
        if(total == count) {
          answer = "Yes";
      }
  	}
    System.out.println(answer);
}


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

#include <iostream>
#include <sstream>
using namespace std;
#include <bits/stdc++.h>
#include<utility>
#include <algorithm>
#include<iterator>
#define  go return 0
#define pb push_back
#define lp(j, n)  for(int j=0; j<(int)(n); ++j)
#define rep(i,n) for(int i=0;i<n;++i)
#define all(v)   ((v).begin()), ((v).end())
#define sz(v)    ( (int)((v).size()) )
#define F first
#define S second
typedef long long ll;
typedef double db;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef vector<pair<int,int> > vpii;
typedef map<int, int> mii;
const ll N=1e5+5;
ll arr[N],A[N]  ;
bool visited[N]={};
int main()
{
 
 int n;
 cin>>n;
 for(int i=o i<=n ; i+=4)
 {
     if((n-i)%7==0)
     {
         cout<<"Yes";
         go;
     }
 }
cout<<"No";
 go;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: 'o' was not declared in this scope
   30 |  for(int i=o i<=n ; i+=4)
      |            ^
a.cc:30:25: error: expected ';' before ')' token
   30 |  for(int i=o i<=n ; i+=4)
      |                         ^
      |                         ;
Language: C++

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

int main()
{
    //合計金額
    int N = 0;
    cin >> N;
    
    bool flag = true;
    for (int i = 0; i <= 100; i++) {
        for (int j = 0; j <= 100; j++) {
            int sum = i * 4 + j * 7;
            if (sum == N) {
                flag = false;
                break;
            }
        }
    }
    
    if (!flag) {
        cout << "YES" <<endl;
    } else {
        cout << "NO" <<endl;
    }
    
    return 0;
}#include <algorithm>
#include <iostream>
#include <string>
using namespace std;

int main()
{
    //合計金額
    int N = 0;
    cin >> N;
    
    bool flag = true;
    for (int i = 0; i <= 10000; i++) {
        for (int j = 0; j <= 10000; j++) {
            int sum = i * 4 + j * 7;
            if (sum == N) {
                flag = false;
                break;
            }
        }
    }
    
    if (!flag) {
        cout << "YES" <<endl;
    } else {
        cout << "NO" <<endl;
    }
    
    return 0;
}

Compiler output:
a.cc:30:2: error: stray '#' in program
   30 | }#include <algorithm>
      |  ^
a.cc:30:3: error: 'include' does not name a type
   30 | }#include <algorithm>
      |   ^~~~~~~
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main()
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main()
      |     ^~~~
Language: C++

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

	for(int i=0;i<=n/4;i++){
		for(int j=0;j<=n/4;j++){
			if(4*i+7*j==n){
				cout << "Yes" << endl;
				return 0;
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:8:32: note: to match this '{'
    8 |         for(int i=0;i<=n/4;i++){
      |                                ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

	for(int i=0;i<=n/4;i++){
		for(int i=0;i<=n/4;i++){
			if(4*i+7*j==n){
				cout << "Yes" << endl;
				return 0;
	}
	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: 'j' was not declared in this scope
   10 |                         if(4*i+7*j==n){
      |                                  ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:8:32: note: to match this '{'
    8 |         for(int i=0;i<=n/4;i++){
      |                                ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

class Main{

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int N = sc.nextInt();
		String ans = "No";

		for(int j =0; j <= n /4; j++)
			for(int k = 0; K <= n / 7; k++){
					if(4*j + 7*k == N) ans = "Yes";
			}

			System.out.println(ans);

	}
}

Compiler output:
Main.java:11: error: cannot find symbol
		for(int j =0; j <= n /4; j++)
		                   ^
  symbol:   variable n
  location: class Main
Main.java:12: error: cannot find symbol
			for(int k = 0; K <= n / 7; k++){
			               ^
  symbol:   variable K
  location: class Main
Main.java:12: error: cannot find symbol
			for(int k = 0; K <= n / 7; k++){
			                    ^
  symbol:   variable n
  location: class Main
3 errors
Language: C++

#!usr/bin/bash

read n
ok=0
for num in `seq 0 $n`
do
    if [ $(($n-${num}*4)) -ge 0 ]; then
	a=$(((($n-${num}*4)/7)*7 + $num*4))
	if [ $a -eq $n ]; then	
	    ok=1
	    break
	fi
    else
	break
    fi
    
done
if [ $ok -eq 1 ]; then
    echo "Yes"
else
    echo "No"
fi


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!usr/bin/bash
      |  ^
a.cc:5:12: error: stray '`' in program
    5 | for num in `seq 0 $n`
      |            ^
a.cc:5:21: error: stray '`' in program
    5 | for num in `seq 0 $n`
      |                     ^
a.cc:3:1: error: 'read' does not name a type
    3 | read n
      | ^~~~
a.cc:7:23: error: expected unqualified-id before numeric constant
    7 |     if [ $(($n-${num}*4)) -ge 0 ]; then
      |                       ^
a.cc:7:36: error: 'then' does not name a type
    7 |     if [ $(($n-${num}*4)) -ge 0 ]; then
      |                                    ^~~~
a.cc:8:26: error: expected unqualified-id before numeric constant
    8 |         a=$(((($n-${num}*4)/7)*7 + $num*4))
      |                          ^
a.cc:9:27: error: 'then' does not name a type
    9 |         if [ $a -eq $n ]; then
      |                           ^~~~
a.cc:18:19: error: 'then' does not name a type
   18 | if [ $ok -eq 1 ]; then
      |                   ^~~~
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Split(bufio.ScanWords)
	sc.Scan()
	n, _ := strconv.Atoi(sc.Text())
	for i := 0; i < 100; i++ {
		for j := 0; j < 100; j++ {
			if 4*i+7*j == n {
				fmt.Println("Yes")
				return
			}
		}
	}
	fmt.Println("No")
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

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

int main(){

  int n;
  cin >>n;
  bool exist=0;
  for(int i=0; i<n/7; i++){
  	if((n-7*i)%4==0) exist=1;
  }
	if(exist) cout << "Yes" << endl;
  else << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected primary-expression before '<<' token
   13 |   else << "No" << endl;
      |        ^~
Language: C++

#include<bits/stdc++.h>
int main(){
  int s;
  cin >> s;
  if(s==1||s==2||s==3||s==5||s==6||s==9||s==10||s==13||s==15||s==17){
    cout << "No";
  }
  else{
    cout << "Yes";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "No";
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Yes";
      |     ^~~~
      |     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>
int main(){
  int s;
  cin >> s;
  if(s==1||s==2||s==3||s==5||s==6||s==9||s==10||s==13||s==15||s==17){
    cout << "No"
  }
  else{
    cout << "Yes"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "No"
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Yes"
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#pragma GCC optimize("Ofast")
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using datas=pair<ll,ll>;
using ddatas=pair<double,double>;
using tdata=pair<ll,datas>;
using vec=vector<ll>;
using mat=vector<vec>;
using pvec=vector<datas>;
using pmat=vector<pvec>;
#define For(i,a,b) for(i=a;i<(ll)b;i++)
#define bFor(i,a,b) for(i=a;i>=(ll)b;i--)
#define rep(i,N) For(i,0,N)
#define rep1(i,N) For(i,1,N)
#define brep(i,N) bFor(i,N-1,0)
#define all(v) (v).begin(),(v).end()
#define allr(v) (v).rbegin(),(v).rend()
#define vsort(v) sort(all(v))
#define vrsort(v) sort(allr(v))
#define endl "\n"
#define pb push_back
#define printyes cout<<"Yes"<<endl
#define printno cout<<"No"<<endl
#define output(v) do{bool f=0;for(auto outi:v){cout<<(f?" ":"")<<outi;f=1;}cout<<endl;}while(0)
const ll mod=1000000007;
const ll inf=1LL<<60;
const double PI = acos(-1);
const double eps = 1e-9;
template<class T> inline bool chmax(T& a,T b){bool x=a<b;if(x)a=b;return x;} 
template<class T> inline bool chmin(T& a,T b){bool x=a>b;if(x)a=b;return x;} 

void startupcpp(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<fixed<<setprecision(15);
}

double distance(ddatas& x,ddatas& y){
  double a=x.first-y.first,b=x.second-y.second;
  return sqrt(a*a+b*b);
}

ll modinv(ll a) {
  ll b=mod,u=1,v=0,t;
  while(b){
    t=a/b;
    a-=t*b; swap(a,b);
    u-=t*v; swap(u,v);
  }
  return (u+mod)%mod;
}

ll moddevide(ll a,ll b){return (a*modinv(b))%mod;}

vec modncrlistp,modncrlistm;

ll modncr(ll n,ll r){
  ll i,size=modncrlistp.size();
  if(size<=n){
    modncrlistp.resize(n+1);
    modncrlistm.resize(n+1);
    if(!size){
      modncrlistp[0]=modncrlistm[0]=1;
      size++;
    }
    For(i,size,n+1){
      modncrlistp[i]=modncrlistp[i-1]*i%mod;
      modncrlistm[i]=modinv(modncrlistp[i]);
    }
  }
  return modncrlistp[n]*modncrlistm[r]%mod*modncrlistm[n-r]%mod;
}

ll modpow(ll a,ll n){
  ll res=1;
  while(n){
    if(n&1)res=res*a%mod;
    a=a*a%mod;
    n>>=1;
  }
  return res;
}

ll gcd(ll a,ll b){if(!b)return a;return (a%b==0)?b:gcd(b,a%b);}
ll lcm(ll a,ll b){return a/gcd(a,b)*b;}

ll countdigits(ll n){
  ll ans=0;
  while(n){n/=10;ans++;}
  return ans;
}

ll sumdigits(ll n){
  ll ans=0;
  while(n){ans+=n%10;n/=10;}
  return ans;
}
void judgement(int a){
  if(a){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  if(a){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}
int main(){
  startupcpp();
  ll N;
  cin>>N;
  vec v(500,0);
  v[4]=v[7]=v[8]=1;
  For(i,11,N+1){
    if(v[i-4]|v[i-7])v[i]=11;
  }
  if(v[N]) printyes;
  else printno;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:117:7: error: 'i' was not declared in this scope
  117 |   For(i,11,N+1){
      |       ^
a.cc:12:24: note: in definition of macro 'For'
   12 | #define For(i,a,b) for(i=a;i<(ll)b;i++)
      |                        ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int n;
  	cin >> n;
  int dp[101];
 	memset(dp, 0, sizeof(dp));
  dp[4] = dp[7] = 1;
  for (int i = 8; i < n+1; i++){
  	dp[i] = max(dp[i-4],dp[i-7]);
  }
	cout << dp[n]<<'\n';
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'memset' was not declared in this scope
    8 |         memset(dp, 0, sizeof(dp));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<algorithm>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int[] not = {1,2,3,5,6,9,10,13,17};
   if (not.contains(A))System.out.println("No");
   else System.out.println("Yes");
 }
}

Compiler output:
Main.java:7: error: cannot find symbol
   if (not.contains(A))System.out.println("No");
          ^
  symbol:   method contains(int)
  location: variable not of type int[]
1 error
Language: C++

#include<iostream>
using namespace std;

int main() {
	int a;
	cin >> a,o=0;
	for (int i = 0; i <= a / 4; i++) {
		for (int j = 0; j < a / 7; j++) {
			if (i * 4 + j * 7 == a)o++;
		}
	}
	if (o = 0)cout << "No" << endl;
	else cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'o' was not declared in this scope
    6 |         cin >> a,o=0;
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i=0;i<=n;i++){
    for(int j=0;j<n;j++){
      ans=4*i+7*j;
      if(ans==n){
        cout << "Yes" << endl;
        return 0;
      }
      if(ans>n) break;
    }
  }
  cout << "No" << endl;

  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |       ans=4*i+7*j;
      |       ^~~
      |       abs
Language: C++

#include<iostream>
#include<algorithm>
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<string>
#include<vector>
#include<map>
#include<math.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
const long long mod = 1e9 + 7;
#define PI 3.14159265359
 
int main(){
    int n;
    bool ans = false;
    cin >> n;
    rep(i,n/4+!){
        if((n - 4*i)%7 == 0) ans = true;
    }
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expected primary-expression before ')' token
   11 | #define rep(i,n) for(int i=0;i<(n);i++)
      |                                  ^
a.cc:19:5: note: in expansion of macro 'rep'
   19 |     rep(i,n/4+!){
      |     ^~~
Language: C

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

int main(void)
{
    int n;

    scanf("%d".&n);

    if(n>=4&&(n%4)%3==0) printf("Yes");
    else printf("No");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected identifier before '&' token
    8 |     scanf("%d".&n);
      |                ^
Language: C++

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


int main() {
	int N,a;
	cin >> N;
	for (int i = 0; 4*i = < N; i++) {
		a = N - 4*i;
		if (N % 7 == 0)printf("Yes");
		return 0;
	}
	printf("No");
	return 0;
}

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

#include<iostream>

int main() {
  int N;
  std::cin >> N;
  flag = 0;
  for (int i=0; i<N+1; i +=4 ) {
    for (int j=0; j+i<N+1; j += 7) {
      if (i+j == N) {
        flag=1;
        break;
      }
    }
    if (flag) {
      break;
    }
  }
  if (flag) {
    std::cout << "Yes" << std::endl;
  }
  else {
    std::cout << "No" << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'flag' was not declared in this scope
    6 |   flag = 0;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  
  bool flag = false;
  for(int i = 0; i < 15 i ++){
    for(int j = 0; j < 26; j ++){
      if(7 * i + 4 * j == N){
        flag = true;
      }
      if(flag) break;
    }
    if(flag) break;
  }
  
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'i'
    8 |   for(int i = 0; i < 15 i ++){
      |                        ^~
      |                        ;
Language: C++

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

int main(){
if(N<4){
    cout << "No" <<endl;
}
else if(N>4 && N%4==0){
    cout << "Yes" <<endl;
}
else if(N>7 && N%7==0){
    cout << "Yes" <<endl;
}
else if(N>11 && N%11 ==0){
    cout << "Yes" <<endl;
}
else{
    cout << "No" <<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'N' was not declared in this scope
    5 | if(N<4){
      |    ^
Language: C++


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

int main(){
if(N<4){
    cout << "No" <<endl;
}
else if(N>4 && N%4==0){
    cout << "Yes" <<endl;
}
else if(N>7 && N%7==0){
    cout << "Yes" <<endl;
}
else if(N>11 && N%11 ==0){
    cout << "Yes" <<endl;
}
else{
    cout << "No" <<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'N' was not declared in this scope
    6 | if(N<4){
      |    ^
Language: C++

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

int main() {
  int N;
  int count = 0;
  cin >> N;
  if(N<4){
      cout << "No" << endl;
  }
  else if(N = 5 || N = 6 || N = 7){
      cout << "No" << endl;
  }
  else if(N%4 = 0){
       count = count + (N/4);
       if(N%7 = 0){
           count = count + (N/7);
       }
       if(N%11 = 0){
           count = count + (N/11);
       }
       cout << count << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: lvalue required as left operand of assignment
   11 |   else if(N = 5 || N = 6 || N = 7){
      |                        ~~^~~~
a.cc:14:12: error: lvalue required as left operand of assignment
   14 |   else if(N%4 = 0){
      |           ~^~
a.cc:16:12: error: lvalue required as left operand of assignment
   16 |        if(N%7 = 0){
      |           ~^~
a.cc:19:12: error: lvalue required as left operand of assignment
   19 |        if(N%11 = 0){
      |           ~^~~
Language: C++

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

int main() {
  int N, M;
  int count = 0;
  cin >> N;
  if(N<4){
      cout << "No" << endl;
  }
  else if(N = 5 || N = 6 || N = 7){
      cout << "No" << endl;
  }
  else if(N%4 = 0){
       count = count + (N/4);
       if(N%7 = 0){
           count = count + (N/7);
       }
       if(N%11 = 0){
           count = count + (N/11);
       }
       cout << count << endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: lvalue required as left operand of assignment
   11 |   else if(N = 5 || N = 6 || N = 7){
      |                        ~~^~~~
a.cc:14:12: error: lvalue required as left operand of assignment
   14 |   else if(N%4 = 0){
      |           ~^~
a.cc:16:12: error: lvalue required as left operand of assignment
   16 |        if(N%7 = 0){
      |           ~^~
a.cc:19:12: error: lvalue required as left operand of assignment
   19 |        if(N%11 = 0){
      |           ~^~~