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

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

#define int long long
#define str string
#define rep(x,y) for(int i=x;i<y;i++)
#define REP(x,y) for(int j=x;j<y;j++)
#define all(x) x.begin(),x.end()
#define vint vector<int>
#define vchar vector<char>
#define vstr vector<string>
#define pb(n) push_back(n)

signed main(){
  int A,B,N,M,count=0,count2=0,count3=0,stack=0;
  str S,T;
  int C='A'-'a';
  cin>>A;
  vstr W(N);
  vint P(N);
  if(A%4==0||A%7==0)cout<<"Yes"<<endl;
  else if((A-7)%4==0&&A>7cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: unable to find numeric literal operator 'operator""cout'
   23 |   else if((A-7)%4==0&&A>7cout<<"Yes"<<endl;
      |                         ^~~~~
a.cc:24:3: error: expected primary-expression before 'else'
   24 |   else cout<<"No"<<endl;
      |   ^~~~
a.cc:23:44: error: expected ')' before 'else'
   23 |   else if((A-7)%4==0&&A>7cout<<"Yes"<<endl;
      |          ~                                 ^
      |                                            )
   24 |   else cout<<"No"<<endl;
      |   ~~~~
Language: Java

import java.lang.*;
import java.util.*;

public class Study01{
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int answer = 0;

        if(N < 4){
            System.out.println("No");
        }else{
            for(int i = 0;i <= 25; i ++){
                for(int j = 0; j <= 14; j++){
                    if(4 * i + 7 * j <= N){
                        System.out.println("Yes");
                    }
                }
            }
        }

        System.out.println("No");
    }
}

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

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

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


}



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

//1,2,3,5,6,9,10,13,17
#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> da(9);
  bool ans=true;
  da={1,2,3,5,6,9,10,13,17};
  for(int i=0;i<9;i++){
    if(n==da[i])
      ans=false;
  }
  if(ans)
    cout << "Yes" << endl;
  else
    cot << "No" < endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'cot' was not declared in this scope; did you mean 'cos'?
   17 |     cot << "No" < endl;
      |     ^~~
      |     cos
Language: C++

//1,2,3,5,6,9,10,13,17
#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> da(9);
  bool ans=true;
  da={1,2,3,5,6,9,10,13,17};
  for(int i=0;i<9;i++){
    if(n==da[i])
      ans=false;
  }
  if(ans)
    cout << "Yes" << endl;
  alse
    cot << "No" < endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'alse' was not declared in this scope
   16 |   alse
      |   ^~~~
Language: C++

//1,2,3,5,6,9,10,13,17
#include <bits/tsdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<int> da(9);
  bool ans=true;
  da={1,2,3,5,6,9,10,13,17};
  for(int i=0;i<9;i++){
    if(n==da[i])
      ans=flase;
  }
  if(ans)
    cout << "Yes" << endl;
  alse
    cot << "No" < endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  string ans;
  cin >> N;
  for(i=0;i<26;i++){
    for(j=0;j<15;j++){
      if(4*i+7*j == N){
        ans ="Yes";
      }
      else {
        ans= "No";
      }
    }
  }
  cout << ans << 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 <cstdio>
#include <cmath>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <climits>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <set>
#include <map>
#include <list>
#include <deque>
#include <vector>
#include <string>
#include <bitset>
#define y0 qvya13579
#define y1 qvyb24680
#define j0 qvja13579
#define j1 qvjb24680
#define next qvne13579xt
#define prev qvpr13579ev
#define INF 1000000007
#define PI acos(-1.0)
#define endl "\n"
#define IOS cin.tie(0);ios::sync_with_stdio(false)
#define M_P make_pair
#define P_B push_back
#define U_B upper_bound
#define L_B lower_bound
#define P_Q priority_queue
#define FIR first
#define SEC second
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define REP_R(i,n) for(int i=((int)(n)-1);i>=0;--i)
#define FOR(i,m,n) for(int i=((int)(m));i<(int)(n);++i)
#define FOR_R(i,m,n) for(int i=((int)(m)-1);i>=(int)(n);--i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define SIZ(x) ((int)(x).size())
#define COUT(x) cout<<(x)<<endl
#define CIN(x) cin>>(x)
#define CIN2(x,y) cin>>(x)>>(y)
#define CIN3(x,y,z) cin>>(x)>>(y)>>(z)
#define CIN4(x,y,z,w) cin>>(x)>>(y)>>(z)>>(w)
#define SCAND(x) scanf("%d",&(x))
#define SCAND2(x,y) scanf("%d%d",&(x),&(y))
#define SCAND3(x,y,z) scanf("%d%d%d",&(x),&(y),&(z))
#define SCAND4(x,y,z,w) scanf("%d%d%d%d",&(x),&(y),&(z),&(w))
#define SCANLLD(x) scanf("%lld",&(x))
#define SCANLLD2(x,y) scanf("%lld%lld",&(x),&(y))
#define SCANLLD3(x,y,z) scanf("%lld%lld%lld",&(x),&(y),&(z))
#define SCANLLD4(x,y,z,w) scanf("%lld%lld%lld%lld",&(x),&(y),&(z),&(w))
#define PRINTD(x) printf("%d\n",(x))
#define PRINTLLD(x) printf("%lld\n",(x))
typedef long long int lli;
using namespace std;

int ctoi(char c)
{
  if( c >= '0' and c <= '9' )
    {
      return (int)(c-'0');
    }

  return -1;
}

int alphabet_pos(char c) 
{
  if( c >= 'a' and c <= 'z' )
    {
      return (int)(c-'a');
    }

  return -1;
}


int alphabet_pos_capital(char c)
{
  if( c >= 'A' and c <= 'Z' )
    {
      return (int)(c-'A');
    }

  return -1;
}


vector<string> split(string str, char ch)
{
  int first = 0;
  int last = str.find_first_of(ch);
  
  if(last == string::npos)
    {
      last = SIZ(str);
    }

  vector<string> result;

  while( first < SIZ(str) )
    {
      string Ssubstr(str, first, last - first);
      result.push_back(Ssubstr);
      first = last + 1;
      last = str.find_first_of(ch, first);

      if(last == string::npos)
	{
	  last = SIZ(str);
	}
    }
  
  return result;
}

/*--------------- the end of the template --------------------*/








int main()
{
  //IOS; /* making cin faster */
  int N;
  SCAND(N);

  if( (N%7)%4 == 0 )
    {
      printf("Yes\n");
      
    }

  else

    {
      printf("No\n")
    }
  

  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:147:21: error: expected ';' before '}' token
  147 |       printf("No\n")
      |                     ^
      |                     ;
  148 |     }
      |     ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
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<iostream>
using namespace std;
int main()
{
	int n,i,j,flag=0;
	cin>>n;
	for(i=0;i<=n%4;i++)
	{
		for(j=0;j<=n%7;j++)
		{
			if(i*4+j*7==n1)
			{
				flag=1;
				cout<<"Yes"<<endl; 
				break;
			}
		}
		if(flag==1)
			break;
	}
	if(flag==0)
		cout<<"No"<<endl;
	return 0;
}


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

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

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

#include <iostream>
using namespace std;

int main() {
  int C, D, N;
  cin >> C >> D >> N;
  int res = 0;
  for (int c = 0; c <= C; ++c) {
    for (int d = 0; d <= D; ++d) {
        int total = 4*c + 7*d; //
        if (total == N) cout<<Yes<<endl;
       else cout<<No<<endl
      }
    }
  

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: 'Yes' was not declared in this scope; did you mean 'res'?
   11 |         if (total == N) cout<<Yes<<endl;
      |                               ^~~
      |                               res
a.cc:12:19: error: 'No' was not declared in this scope; did you mean 'N'?
   12 |        else cout<<No<<endl
      |                   ^~
      |                   N
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;
int main() {
  int N;
  cin>>N;
  
  for(int i=0;i<=N/4;++i){
      if((i*4+(N-i)*7)==N){
          cout<<"Yes"<<endl;
          return;
      }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |           return;
      |           ^~~~~~
Language: C++

#include <iostream>
#include <cstdlib>

using namespace std;
int main() {
  int N;
  cin>>N;
  for(int i=0;i<=N;++i){
      if(i*4+(N-i)*7==N){
          cout<<"Yes"<<endl;
          return;
      }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |           return;
      |           ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin>>N;
  string res='No';
  for(int i=0;i<26;i++){
    for(int j=0; j<15; j++){
      if(4*i +7*j ==N){
        res ='Yes';
      }
    }
  }
  cout<< res<<endl;
}

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

#include <bits/stdc++.h>
#define ALL(v) v.begin(), v.end()
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
typedef long long ll;

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


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

#include <iostream>
using namespace std;

int main() {
  int A, B, N;
  cin >> N;
  int res = 0;
  for (int a = 0; a <= A; ++a) {
    for (int b = 0; b <= B; ++b) {
        int total = 4*A + 7*B; // 合計金額
        if (total == X) ++res; // 合計金額が X に一致したら答えをインクリメント
      }
    }
  }
	if(total != 0) cout << "Yes" << endl;
	else	cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'X' was not declared in this scope
   11 |         if (total == X) ++res; // 合計金額が X に一致したら答えをインクリメント
      |                      ^
a.cc: At global scope:
a.cc:15:9: error: expected unqualified-id before 'if'
   15 |         if(total != 0) cout << "Yes" << endl;
      |         ^~
a.cc:16:9: error: expected unqualified-id before 'else'
   16 |         else    cout << "No" << endl;
      |         ^~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |         return;
      |         ^~~~~~
Language: C++

main(n){scanf("%d",&n);puts(n>17|19890%n|n==15?"Yes":"No");}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(n){scanf("%d",&n);puts(n>17|19890%n|n==15?"Yes":"No");}
      |     ^
Language: C++

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

int n;

int main(){
    scanf("%d", &n);
    bool ok=false;
    for(int i = 0; i<= n/4; i++){
        if((n-4*i)%7==0) ok = true, break;
    }
    if(ok) printf("Yes");
    else printf("No");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:37: error: expected primary-expression before 'break'
   10 |         if((n-4*i)%7==0) ok = true, break;
      |                                     ^~~~~
Language: Java

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

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<cmath>
^
Main.java:3: error: illegal character: '#'
#include<algorithm>
^
Main.java:4: error: illegal character: '#'
#include<vector>
^
Main.java:5: error: illegal character: '#'
#include<cstring>
^
Main.java:11: error: not a statement
	cin >> n;
	    ^
Main.java:15: error: not a statement
				cout << "Yes" << endl;
				              ^
Main.java:20: error: not a statement
	cout << "No" << endl;
	             ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
9 errors
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:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int N ;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int N ;
      |   ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
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:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int N ;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int N ;
      |   ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:7:6: error: expected '(' before 'N'
    7 |   if N ==1 || N==2||N==3||N==5||N==6||N==9||N==10||N==13||N==17 {
      |      ^
      |      (
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
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:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int N ;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int N ;
      |   ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
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:5:3: error: extended character 　 is not valid in an identifier
    5 |   　int N ;
      |   ^
a.cc: In function 'int main()':
a.cc:5:3: error: '\U00003000int' was not declared in this scope
    5 |   　int N ;
      |   ^~~~~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N;
      |          ^
a.cc:7:43: error: expected primary-expression before ')' token
    7 |   if (N ==1 || 2||3||5||6||9||10||13||17||) {
      |                                           ^
Language: C++

#include <numeric>
#include <string>
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <iostream>
 
#define repd(i,a,b); for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define ll long long int
 
 
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 || n ==  23){
    cout << "No";
  } else {
    cout << "Yes";
 
 return 0;
}

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

#include <numeric>
#include <string>
#include <algorithm>
#include <vector>
#include <cstdlib>
 
#define repd(i,a,b); for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define ll long long int
 
 
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 || n ==  23){
    cout << "No";
  } else {
    cout << "Yes";
  }
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'cin' was not declared in this scope
   14 |   int n; cin >> n;
      |          ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <cstdlib>
  +++ |+#include <iostream>
    6 | 
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No";
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "Yes";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <numeric>
#include <string>
#include <algorithm>
#include <vector>
#include <cstdlib>
 
#define repd(i,a,b); for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define ll long long int
 
 
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 || n ==  23){
    cout << "No";
  } else {
    cout << "Yes";
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'cin' was not declared in this scope
   14 |   int n; cin >> n;
      |          ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <cstdlib>
  +++ |+#include <iostream>
    6 | 
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << "No";
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "Yes";
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:13:12: note: to match this '{'
   13 | int main() {
      |            ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  bool flg = false;
  for (int i = 0; i < (n / 4) ; i++){
    for (int j = 0 ; j < (n / 7 ; j ++){
      if ( 4 * i + 7 * j == n) {
      flg = true;
      break;
    }
  }
  }
  if(flg) cout << "Yes";
  else cout << "No";
}

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


import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		//		new Main().solveA();
		//		new Main().solveB();
		new Main().solveB2();
		// new Main().solveC();
		// new Main().solveD();
	}

	private void solveA() {
		Scanner scanner = null;
		int numN = 0;
		int numK = 0;

		try {
			scanner = new Scanner(System.in);
			numN = scanner.nextInt();
			numK = scanner.nextInt();

			if (numN % numK == 0) {
				System.out.println(0);
			} else {
				System.out.println(1);
			}

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private int isPurchase(int numN, int num) {

		if (numN <= 0) {
			return numN;
		}
		if (bWkMap.get(numN) != null) {
			return bWkMap.get(numN);
		}

		int val1 = isPurchase(numN - 7, 4);
		int val2 = isPurchase(numN - 7, 7);
		int val3 = isPurchase(numN - 4, 4);
		int val4 = isPurchase(numN - 4, 7);

		val1 = val1 < 0 ? 999999999 : val1;
		val2 = val2 < 0 ? 999999999 : val2;
		val3 = val3 < 0 ? 999999999 : val3;
		val4 = val4 < 0 ? 999999999 : val4;

		int wk = Math.min(Math.min(val1, val2), Math.min(val3, val4));

		bWkMap.put(numN, wk);
		return wk;
	}

	private Map<Integer, Integer> bWkMap = new HashMap<Integer, Integer>();

	private void solveB() {
		Scanner scanner = null;
		int numN = 0;

		try {
			scanner = new Scanner(System.in);
			numN = scanner.nextInt();

			int val = isPurchase(numN, 0);

			System.out.println(val == 0 ? "Yes" : "No");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveB2() {
		Scanner scanner = null;
		int numN = 0;

		try {
			scanner = new Scanner(System.in);
			numN = scanner.nextInt();

			for (int i = 0; i < 25; i++) {
				for (int j = 0; j < 15; j++) {
					if (4 * i + 7 * j == numN) {
						System.out.println("Yes");
						return;
					}
				}
			}
			System.out.println("No");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveC() {
		Scanner scanner = null;
		int numN = 0;

		try {
			scanner = new Scanner(System.in);
			numN = scanner.nextInt();

			long wk = 0;
			while (wk == numN) {
				wk +=
			}

			System.out.println("");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private void solveD() {
		Scanner scanner = null;
		int numN = 0;
		int numK = 0;
		int numS = 0;

		try {
			scanner = new Scanner(System.in);
			numN = scanner.nextInt();

			System.out.println("");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
}

Compiler output:
Main.java:121: error: illegal start of expression
			}
			^
1 error
Language: C

#include <stdio.h>

int main(){
    int n;scanf("%d",&n);
    int q=n%28;    
    for(int i=0;i<28;i+=7)
        if((q-i)%4)printf("No\n");
        else printf("Yes\n");
    }
    return 0;
}   


Compiler output:
main.c:10:5: error: expected identifier or '(' before 'return'
   10 |     return 0;
      |     ^~~~~~
main.c:11:1: error: expected identifier or '(' before '}' token
   11 | }
      | ^
Language: C++

#include <algorithm>
#include <vector>
#include <cstring>
#include <queue>
#include <functional>
#include <set>
#include <map>
#include <string>
#include <cmath>
#include <cassert>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repd(i, n) for (int i = n; i > 0; i--)
#define mod 1000000007
#define MOD 998244353
#define inf 1e20
typedef long long int ll;
typedef pair<ll, ll> p;

int main() {
	int n;
	cin >> n;
	string ans = "No";
	rep(i, 25) {
		rep(j, 15) {
			if (4 * i + 7 * j == n) {
				ans = "Yes";
			}
		}
	}
	cout << ans << endl;
	return 0;
}

//Ctrl+Aを使わない

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'cin' was not declared in this scope
   22 |         cin >> n;
      |         ^~~
a.cc:11:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   10 | #include <cassert>
  +++ |+#include <iostream>
   11 | using namespace std;
a.cc:31:9: error: 'cout' was not declared in this scope
   31 |         cout << ans << endl;
      |         ^~~~
a.cc:31:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:31:24: error: 'endl' was not declared in this scope
   31 |         cout << ans << endl;
      |                        ^~~~
a.cc:11:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
   10 | #include <cassert>
  +++ |+#include <ostream>
   11 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef signed long long ll;
 
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main(){
	int i,j,k,n,m,l,f,x,y,z; string s;
	cin >> n;

	s = "No";
	rep(i, n){
		rep(j, n){
			if(4*i+7*j == N) s = "Yes";
		}
	}
	cout << s << endl;
}	

Compiler output:
a.cc: In function 'int main()':
a.cc:15:39: error: 'N' was not declared in this scope
   15 |                         if(4*i+7*j == N) s = "Yes";
      |                                       ^
Language: C

#include <stdio.h>

int main(void)
{
        int n,a,b,i;

        scanf("%d",&n);

        a=n;

        if ((n%7==0)||(n%4==0)){
                printf("Yes\n");
                return 0;
        }

        else if (n<4){
                printf("No\n");
                return 1;
        }

        for (i=1;i>0;i++){
                a=a-7;
                if (a%4==0){
                        printf("Yes\n");
                        return 0;
                }
                else if (a<4){
                        printf("No\n"):
                        return 0;
                }
        }
}

Compiler output:
main.c: In function 'main':
main.c:28:39: error: expected ';' before ':' token
   28 |                         printf("No\n"):
      |                                       ^
      |                                       ;
Language: C++

#include <iostream>

using namespace std;

int main(){
  int N;
  cin >> N;
  
  int cnt = 0;
  for(int i = 0; i <= 25; i++){
    for int j = 0; j <= 14; j++){
      if(4*i + 7*j == N) {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected '(' before 'int'
   11 |     for int j = 0; j <= 14; j++){
      |         ^~~
      |         (
Language: C++

#include <iostream>

using namespace std;

int main(){
  int N;
  cin >> N;
  
  int cnt = 0;
  for(int i = 0; i <= 25; i++){
    for int j = 0; j <= 14; j++){
      if(4*i + 7*j == N) {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No";
  return;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected '(' before 'int'
   11 |     for int j = 0; j <= 14; j++){
      |         ^~~
      |         (
a.cc:19:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   19 |   return;
      |   ^~~~~~
Language: C++

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

int main(){
    int n;
    cin >> n;

    if(n % 4 == 0 || n % 7 == 0 || n % 11 == 0){
        cout << "Yes" << endl;
        return 0;
    } 
    if(n > 3){
        for(int i = 0; i < n; i++){
            if((n - int(pow(4, i))) % 7 == 0){
                cout << "Yes" << endl;
                return 0;
            } else if((n - int(pow(7, i))) % 4 == 0){
                cout << "Yes" << endl;
            } else if(n % int(pow(4, i)) == 0 || n % int(pow(7, i) == 0){
                cout << "Yes" << endl;
            }
        }
    }

    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:73: error: expected ')' before '{' token
   21 |             } else if(n % int(pow(4, i)) == 0 || n % int(pow(7, i) == 0){
      |                      ~                                                  ^
      |                                                                         )
a.cc:24:9: error: expected primary-expression before '}' token
   24 |         }
      |         ^
Language: C++

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

int main(){
    int n;
    cin >> n;

    if(n % 4 == 0 || n % 7 == 0 || n % 11 == 0){
        cout << "Yes" << endl;
        return 0;
    } 
    if(n > 3){
        for(int i = 0; i < n; i++){
            if((n - int(pow(4, i))) % 7 == 0){
                cout << "Yes" << endl;
                return 0;
            } else if((n - int(pow(7, i))) % 4 == 0){
                cout << "Yes" << endl;
            } else if(n % int(pow(4, i) == 0 || n % int(pow(7, i) == 0){
                cout << "Yes" << endl;
            }
        }
    }

    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:27: error: expected primary-expression before 'int'
   21 |             } else if(n % int(pow(4, i) == 0 || n % int(pow(7, i) == 0){
      |                           ^~~
a.cc:21:26: error: expected ')' before 'int'
   21 |             } else if(n % int(pow(4, i) == 0 || n % int(pow(7, i) == 0){
      |                      ~   ^~~~
      |                          )
a.cc:24:9: error: expected primary-expression before '}' token
   24 |         }
      |         ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int n;
    cin >> n;
    int t = 0;

    for(int i = 0; i < 100; i++){
        for(int j = 0; j < 100; j++){
            if(n == (4 * i + 11 * j)){
                t = 1;
            }
        }
    }
    if(t == 1)
        cout << "Yes";
    else
        cout << "No";
    
}#include <iostream>
using namespace std;

int main()
{
    int n;
    cin >> n;
    int t = 0;

    for(int i = 0; i < 100; i++){
        for(int j = 0; j < 100; j++){
            if(n == (4 * i + 11 * j)){
                t = 1;
            }
        }
    }
    if(t == 1)
        cout << "Yes";
    else
        cout << "No";
    
}

Compiler output:
a.cc:22:2: error: stray '#' in program
   22 | }#include <iostream>
      |  ^
a.cc:22:3: error: 'include' does not name a type
   22 | }#include <iostream>
      |   ^~~~~~~
a.cc:25:5: error: redefinition of 'int main()'
   25 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: Java

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Scanner;

public class Main2 {

    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(System.out));

        int N = scanner.nextInt();

        String res = "No";
        if (N % 4 == 0) res = "Yes";
        else if (N % 7 == 0) res = "Yes";
        else {
            for (int i = 1; i <= N/7; i++) {
                if ((N - 7 * i) % 4 == 0) {
                    res = "Yes";
                    break;
                }
            }
        }

        bufferedWriter.write(res);

        bufferedWriter.close();
        scanner.close();
    }
}

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

#include <iostream>

int main(void) {
  	const int N = []() {
      	int tmp; std::cin >> tmp;
      	return tmp;
    }();
  
    while(int n = N; n >= 0; n -= 7) {
        if(N % 4 == 0) {
            std::cout << "Yes\n";
            return 0;
        }
    }
  
    std::cout << "No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ')' before ';' token
    9 |     while(int n = N; n >= 0; n -= 7) {
      |          ~         ^
      |                    )
a.cc:9:22: error: 'n' was not declared in this scope
    9 |     while(int n = N; n >= 0; n -= 7) {
      |                      ^
Language: C++

#include <iostream>

int main(void) {
  	const int N = []() {
      	int tmp; std::cin >> tmp;
      	return tmp;
    }();
  
    while(N >= 0) {
        if(N % 4 == 0) {
            std::cout << "Yes\n";
            return 0;
        }
      
        N -= 7;
    }
  
    std::cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: assignment of read-only variable 'N'
   15 |         N -= 7;
      |         ~~^~~~
Language: C++

# -*- coding: utf-8 -*-
import sys

N = int(input())

def iter(n):
    if n == 0:
        print("Yes")
        sys.exit(0)
    elif n > 0:
        iter(n-4)
        iter(n-7)
    else:
        return False

iter(N)
print("No")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected '(' before '{' token
    6 |   if{n==1||n==5||n==9||n==13||n==17||n==2||n==6||n==10||n==3){
      |     ^
      |     (
a.cc:12:6: error: expected '}' at end of input
   12 |     }
      |      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a>20) {cout<<“Yes”<<endl;return 0;}
if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0;}
if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0;}
else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc:6:19: error: extended character “ is not valid in an identifier
    6 |   if(a>20) {cout<<“Yes”<<endl;return 0;}
      |                   ^
a.cc:6:19: error: extended character ” is not valid in an identifier
a.cc:7:30: error: extended character “ is not valid in an identifier
    7 | if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0;}
      |                              ^
a.cc:7:30: error: extended character ” is not valid in an identifier
a.cc:8:37: error: extended character “ is not valid in an identifier
    8 | if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0;}
      |                                     ^
a.cc:8:37: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:19: error: '\U0000201cYes\U0000201d' was not declared in this scope
    6 |   if(a>20) {cout<<“Yes”<<endl;return 0;}
      |                   ^~~~~
a.cc:7:30: error: '\U0000201cYes\U0000201d' was not declared in this scope
    7 | if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0;}
      |                              ^~~~~
a.cc:8:37: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 | if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0;}
      |                                     ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a>20) {cout<<“Yes”<<endl;return 0}
if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0}
if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0}
else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc:6:19: error: extended character “ is not valid in an identifier
    6 |   if(a>20) {cout<<“Yes”<<endl;return 0}
      |                   ^
a.cc:6:19: error: extended character ” is not valid in an identifier
a.cc:7:30: error: extended character “ is not valid in an identifier
    7 | if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0}
      |                              ^
a.cc:7:30: error: extended character ” is not valid in an identifier
a.cc:8:37: error: extended character “ is not valid in an identifier
    8 | if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0}
      |                                     ^
a.cc:8:37: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:19: error: '\U0000201cYes\U0000201d' was not declared in this scope
    6 |   if(a>20) {cout<<“Yes”<<endl;return 0}
      |                   ^~~~~
a.cc:6:39: error: expected ';' before '}' token
    6 |   if(a>20) {cout<<“Yes”<<endl;return 0}
      |                                       ^
      |                                       ;
a.cc:7:30: error: '\U0000201cYes\U0000201d' was not declared in this scope
    7 | if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0}
      |                              ^~~~~
a.cc:7:50: error: expected ';' before '}' token
    7 | if(a%4==0 or a%7==0)  {cout<<“Yes”<<endl;return 0}
      |                                                  ^
      |                                                  ;
a.cc:8:37: error: '\U0000201cYes\U0000201d' was not declared in this scope
    8 | if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0}
      |                                     ^~~~~
a.cc:8:57: error: expected ';' before '}' token
    8 | if(a==11 or a==15 or a==19)  {cout<<“Yes”<<endl;return 0}
      |                                                         ^
      |                                                         ;
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'Yes' was not declared in this scope; did you mean 'res'?
   16 |     if(res != 0) cout << Yes << endl;
      |                          ^~~
      |                          res
a.cc:17:18: error: 'No' was not declared in this scope; did you mean 'N'?
   17 |     else cout << No << endl;
      |                  ^~
      |                  N
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: 'Yes' was not declared in this scope; did you mean 'res'?
   16 |     if(res != 0) cout << Yes << endl;
      |                          ^~~
      |                          res
a.cc:17:18: error: 'No' was not declared in this scope; did you mean 'N'?
   17 |     else cout << No << endl;
      |                  ^~
      |                  N
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define const INF 10000000000

ll a, b, c, n, x, y, z, w, h, ans = 0, cnt = 0, max = 0;
string s;

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

    cin >> n;
    rep(i, n / 4 + 1){
        rep(j, n / 7 + 1){
            if (4 * j + 7 * k == n){
                cout << "Yes" << endl;
                return 0;
            }
        }
    }
	cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:29: error: 'k' was not declared in this scope
   42 |             if (4 * j + 7 * k == n){
      |                             ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  for (int i = 0; i * 7 < N; i++) {
    if ((N - 7 * i) % 4 == 0 || (N - 4 * i) % 7 == 0) {
      cout << "yes";
      break;
    }
    else {
      cout << "No";
      break;
    }
  }

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

N = int(input())
list = []
y = 0
while N - 7*y >0:
    if (N - 7*y)%4 == 0:
        x = (N - 7*y)%4
        list.append(x)
        y +=1
    else:
        y +=1
        continue
        
if list == []:
    print('No')
else:
    print('Yes')

Compiler output:
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     print('No')
      |           ^~~~
a.cc:16:11: warning: multi-character character constant [-Wmultichar]
   16 |     print('Yes')
      |           ^~~~~
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 max1 = n / 4;
	int max2 = n / 7;
	for (int i = 0; i <= max1; i++) {
		for (int j = 0; j <= max2; j++) {
			if (i * 4 + j * 7) {
				cout << "Yes" << '\n';
				return;
			}
		}
	}
	cout << "No" << '\n';
	return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:33: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |                                 return;
      |                                 ^~~~~~
a.cc:20:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |         return;
      |         ^~~~~~
Language: C++

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


Compiler output:
a.cc:17:5: error: redefinition of 'int N'
   17 | int N;
      |     ^
a.cc:3:5: note: 'int N' previously declared here
    3 | int N;
      |     ^
a.cc:18:5: error: redefinition of 'int main()'
   18 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  int a, b, n, res = 0;
  cin >> n;
  for(a = 0; (4*a) < n; a++)
    for(b = 0; (7*b) < n; b++)
      res = 1;
  	if(re == 1) cout << "YES" << endl;
  	else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 're' was not declared in this scope; did you mean 'res'?
   11 |         if(re == 1) cout << "YES" << endl;
      |            ^~
      |            res
Language: C++

#include <iostream>

using namespace std;

int main() {
  int a, b, n, res = 0;
  cin >> n;
  for(a = 0; (4*a) < n; a++)
    for(b = 0; (7*b) < n; a++)
      res = 1;
  	if(re == 1) cout << "YES" << endl;
  	else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 're' was not declared in this scope; did you mean 'res'?
   11 |         if(re == 1) cout << "YES" << endl;
      |            ^~
      |            res
Language: C

#include<stdio.h>

int main(){
  int N;
  scanf("%d", &N);
  
  for(i = 1; i <= N/7; i++){
    if((N - 7*i)%4 == 0){
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  
  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i = 1; i <= N/7; i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    bool buyflg=false;
    
    for(int a=0; a<=N; a+7){
      
	  for(int b=0; b<=N; b+4){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
  }
}

Compiler output:
Main.java:11: error: not a statement
    for(int a=0; a<=N; a+7){
                        ^
Main.java:13: error: not a statement
	  for(int b=0; b<=N; b+4){
	                      ^
2 errors
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    
    int N=sc.nextInt();
    bool buyflg=false;
    
    for(int a=0; a<=N; a+7){
      
	  for((int b=0; b<=N; b+4){
        if(a*7+b*4==N){
          buyflg=true;
          break;
        }
      }
      if(buyflg==true){
        break;        
      }
    }
  }
}

Compiler output:
Main.java:11: error: not a statement
    for(int a=0; a<=N; a+7){
                        ^
Main.java:13: error: ',', ')', or '[' expected
	  for((int b=0; b<=N; b+4){
	            ^
Main.java:13: error: not a statement
	  for((int b=0; b<=N; b+4){
	      ^
Main.java:13: error: not a statement
	  for((int b=0; b<=N; b+4){
	                       ^
4 errors
Language: C++

int main(){
  int n;cin>>n;
  cout<<(n==1||n==2||n==3||n==5||n==6||n==9||n==10||n==11||n==13||n==15||n==17||n==18||n==19?"No":"Yes")<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'cin' was not declared in this scope
    2 |   int n;cin>>n;
      |         ^~~
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout<<(n==1||n==2||n==3||n==5||n==6||n==9||n==10||n==11||n==13||n==15||n==17||n==18||n==19?"No":"Yes")<<endl;
      |   ^~~~
a.cc:3:107: error: 'endl' was not declared in this scope
    3 |   cout<<(n==1||n==2||n==3||n==5||n==6||n==9||n==10||n==11||n==13||n==15||n==17||n==18||n==19?"No":"Yes")<<endl;
      |                                                                                                           ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
    int N;
    cin >> N;

    int count = 0;
    for(int i = 0; i <= (N/4); i++){
        for(int j = 0; j <= (N/7); j++){
            if(i * 4 + j * 7 == N) count ++;
        }
    }

    if(count > 0){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }


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