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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ')' before '{' token
   11 |       if(((4*i) + (7*j) == N){
      |         ~                    ^
      |                              )
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  for(int i=0; i<26; i++){
    for(int j=0; j<16; 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:23: error: expected ';' before '}' token
   15 |   cout << "No" << endl
      |                       ^
      |                       ;
   16 | }
      | ~
Language: C++

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

int main(){
  int n;
  cin >> n;
  cout << "Yes << endl;
}



Compiler output:
a.cc:7:11: warning: missing terminating " character
    7 |   cout << "Yes << endl;
      |           ^
a.cc:7:11: error: missing terminating " character
    7 |   cout << "Yes << endl;
      |           ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

int main(){
  cout << "Yes << endl;
}



Compiler output:
a.cc:5:11: warning: missing terminating " character
    5 |   cout << "Yes << endl;
      |           ^
a.cc:5:11: error: missing terminating " character
    5 |   cout << "Yes << endl;
      |           ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: expected primary-expression before '}' token
    6 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n;cin >> n;
  if(n >= 11)
    cout << "Yes << endl;
   else
     cout << "No " << endl;
return 0;
}


Compiler output:
a.cc:6:13: warning: missing terminating " character
    6 |     cout << "Yes << endl;
      |             ^
a.cc:6:13: error: missing terminating " character
    6 |     cout << "Yes << endl;
      |             ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:4: error: expected primary-expression before 'else'
    7 |    else
      |    ^~~~
Language: C++

#include <iostream>
uisng namespace std;
int main(){
  int n;cin >> n;
  if(n >= 11)
    cout << "Yes << endl;
    else
      cout << "No " << endl;
return 0;
}

Compiler output:
a.cc:6:13: warning: missing terminating " character
    6 |     cout << "Yes << endl;
      |             ^
a.cc:6:13: error: missing terminating " character
    6 |     cout << "Yes << endl;
      |             ^~~~~~~~~~~~~
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int n;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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "Yes << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:5: error: expected primary-expression before 'else'
    7 |     else
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: 'X' was not declared in this scope
    9 |         if ((N - (4 * a)) % 7 == X) res = 1; // 合計金額が X に一致したら答えをインクリメント
      |                                  ^
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int tmp = num;
        boolean jdg = false;
        while(num > 0){
            num -= 7;
        }
        if(num % 4 == 0)
            jdg = true;

        num = tmp;
        while(num > 0){
            num -= 4;
        }
        if(num%7 == 0)
            jdg = true;

        System.out.pritln(jdg?"Yes":"No");
    }
}

Compiler output:
Main.java:22: error: cannot find symbol
        System.out.pritln(jdg?"Yes":"No");
                  ^
  symbol:   method pritln(jdg ? "Yes" : "No")
  location: variable out of type PrintStream
1 error
Language: C

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

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i, N;
    bool yn = 0;
    scanf("%d",&N);

    REP(int x, N){
        REP(int y,N){
            if (N==4*x+7*y) yn = 1;
        }
    }
    
    if (yn == 1) printf("Yes");
    else printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected expression before 'int'
   15 |     REP(int x, N){
      |         ^~~
main.c:7:26: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                          ^
main.c:15:9: error: expected expression before 'int'
   15 |     REP(int x, N){
      |         ^~~
main.c:7:30: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                              ^
main.c:16:13: error: expected expression before 'int'
   16 |         REP(int y,N){
      |             ^~~
main.c:7:26: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                          ^
main.c:16:13: error: expected expression before 'int'
   16 |         REP(int y,N){
      |             ^~~
main.c:7:30: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                              ^
Language: C

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

#define REP(i,n) for(i=0;i<n;i++)
#define ll long long

int main(void){
    int i, N;
    bool yn = 0;
    scanf("%d",&N);

    REP(int x, N){
        REP(int y,N){
            if (N==4*x+7*y) yn = 1;
        }
    }
    
    if (yn = 1) printf("Yes");
    else printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected expression before 'int'
   15 |     REP(int x, N){
      |         ^~~
main.c:7:26: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                          ^
main.c:15:9: error: expected expression before 'int'
   15 |     REP(int x, N){
      |         ^~~
main.c:7:30: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                              ^
main.c:16:13: error: expected expression before 'int'
   16 |         REP(int y,N){
      |             ^~~
main.c:7:26: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                          ^
main.c:16:13: error: expected expression before 'int'
   16 |         REP(int y,N){
      |             ^~~
main.c:7:30: note: in definition of macro 'REP'
    7 | #define REP(i,n) for(i=0;i<n;i++)
      |                              ^
Language: C++

#include <bits/stdc++.h>

#include <cstdlib>  // abs() for integer 絶対値求めやつ

#include <cmath>    // abs() for float, and fabs()

#include <algorithm>
#include <vector>
#define rep(i,n) for(int i = 0; i< (n);i++)

#define SORT(a) sort((a).begin(),(a).end());

#define che(a,string) cout<<string<<":"<<(a)<<endl;

#define ch(a,string) cout<<string<<":"<<(a)<<" ";

using namespace std;

typedef pair<int,int> P;

int main(){
	int n;
	cin >> n ;
	int CMAX=100/4;
	int DMAX=100/7;
	bool a = true;
	for(int i = 0 ; i < = CMAX;i++){
	  for(int j = 0 ;j <= DMAX;j++){
		int k = 4*i+7*j;
		if(k==n){
			cout<<"Yes"<<endl;
			a =false;
			break;
		  }

		}
	}
	if(a){
		cout<<"No"<<endl;
	  }
  }



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

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

int main() {
    int N;
    cin >> N;
    i = 0;
    j = 0;
    bool frag = true;
    while (i * 4 + j * 7<= N) {
        while (i * 4 + j * 7<= N) {
            if (i * 4 + j * 7 == N) {
                cout << "Yes" << endl;
                frag = false;
                break;
            }
            j++;
        }
        j = 0;
        i++;
    }
    if (frag) {
        cout << "No" << endl;
    }
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'i' was not declared in this scope
   10 |     i = 0;
      |     ^
a.cc:11:5: error: 'j' was not declared in this scope
   11 |     j = 0;
      |     ^
Language: C++

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

int main() {
    int N;
    cin >> N;
    i = 0;
    j = 0;
    bool frag = true
    while (i * 4 + j * 7<= N) {
        while (i * 4 + j * 7<= N) {
            if (i * 4 + j * 7 == N) {
                cout << "Yes" << endl;
                frag = false;
                break;
            }
            j++;
        }
        j = 0;
        i++;
    }
    if (frag) {
        cout << "No" << endl;
    }
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'i' was not declared in this scope
   10 |     i = 0;
      |     ^
a.cc:11:5: error: 'j' was not declared in this scope
   11 |     j = 0;
      |     ^
a.cc:13:5: error: expected ',' or ';' before 'while'
   13 |     while (i * 4 + j * 7<= N) {
      |     ^~~~~
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(4*i + 7*j == n) {
				cout << "Yes" << endl;
				return;
			}
		}
	}
	cout << "No" << endl;
	return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cmax' was not declared in this scope; did you mean 'fmax'?
    8 |         cmax = 100 / 4;
      |         ^~~~
      |         fmax
a.cc:9:9: error: 'dmax' was not declared in this scope; did you mean 'fmax'?
    9 |         dmax = 100 / 7;
      |         ^~~~
      |         fmax
a.cc:14:33: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |                                 return;
      |                                 ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
    int n;
    cin>>n;
    if((n-(n/4)*4)%3==0&&(n>=4||n=0)){
      cout<<"Yes"<<endl;
    }else{
      cout<<"No"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: lvalue required as left operand of assignment
    9 |     if((n-(n/4)*4)%3==0&&(n>=4||n=0)){
      |                           ~~~~^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int cnt =0;
  cin>>int n;
  for(int i=0;i<=25;i++){for(int j=0;j<=15;j++){if(4*i+7*j==n)cnt++;}}
  cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected primary-expression before 'int'
    5 |   cin>>int n;
      |        ^~~
a.cc:6:61: error: 'n' was not declared in this scope
    6 |   for(int i=0;i<=25;i++){for(int j=0;j<=15;j++){if(4*i+7*j==n)cnt++;}}
      |                                                             ^
Language: C++

#include <iostream>
using namespace std;

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

    bool found = false;
    for (int i = 0; i <= n / 4; i++) {
        for (int k = 0; k <= n / 7; k++) {
            int total = 4 * i + 7 * k;
            if (total == N) {
                found = true;
                break;
            }
        }
    }

    cout << (found ? "Yes" : "No") << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(), (c).end());
const long long MOD = 1e9 + 7;
typedef long long ll;

int main(){
	int N;
	cin >> N;
	string ans = "No";
	rep(i, N / 4 + 2){
		rep(j, N / 7 + 2){
			if(i * 4 + j * 7 == N){
				ans = "Yes";
				break:
			}
		}
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:38: error: expected ';' before ':' token
   17 |                                 break:
      |                                      ^
      |                                      ;
a.cc:17:38: error: expected primary-expression before ':' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int N;
  cin>>N;
  bool flag=false;
  rep(i,N){
    rep(j,N){
      if (i*4+j*7==N) {
        flag=true;
    }
  }
  if(flag) puts("Yes");
  else puts("No");
  return 0;
}


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

import java.util.*;
public class Past3{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		//数値を入力
		int N = sc.nextInt();
		//変数宣言
		int cake = 4;
		int donuts = 7;
		//計算
		int ans1 = N % cake;
		int ans2 = N % donuts;
		int ans3 = N % (cake + donuts);
		int ans4 = ans3 % cake;
		int ans5 = ans3 % cake;
		//判断
		if(ans1 == 0){
			System.out.println("Yes");
		}
		else if(ans2 == 0){
			System.out.println("Yes");
		}
		else if(ans3 == 0){
			System.out.println("Yes");
		}
		else if(ans4 == 0 || ans5 == 0){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
	}
}


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

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

Compiler output:
main.c: In function 'main':
main.c:4:7: error: redeclaration of 'n' with no linkage
    4 |   int n = scanf("%d", &n);
      |       ^
main.c:3:7: note: previous declaration of 'n' with type 'int'
    3 |   int n;
      |       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'a' undeclared (first use in this function)
    5 |   a = 0;
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'b' undeclared (first use in this function)
    6 |   b = 0;
      |   ^
main.c:7:3: error: 'sum' undeclared (first use in this function)
    7 |   sum=0;
      |   ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'a' undeclared (first use in this function)
    5 |   a = 0;
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'b' undeclared (first use in this function)
    6 |   b = 0;
      |   ^
main.c:7:3: error: 'sum' undeclared (first use in this function)
    7 |   sum=0;
      |   ^~~
main.c:17:3: error: expected declaration or statement at end of input
   17 |   printf("No\n");
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'a' undeclared (first use in this function)
    5 |   a = 0;
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:3: error: 'b' undeclared (first use in this function)
    6 |   b = 0;
      |   ^
main.c:7:3: error: 'sum' undeclared (first use in this function)
    7 |   sum=0;
      |   ^~~
main.c:8:23: error: expected ';' before ')' token
    8 |   for(int a=0; sum<n/4){
      |                       ^
      |                       ;
main.c:9:25: error: expected ';' before ')' token
    9 |     for(int b=0; sum<n/7){
      |                         ^
      |                         ;
main.c:17:3: error: expected declaration or statement at end of input
   17 |   printf("No\n");
      |   ^~~~~~
Language: C++

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
#define erase(i) erase(i, 1)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
template<typename T> void remove(std::vector<T>& vector, unsigned int index){vector.erase(vector.begin() + index);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;


signed main()
{
    int n;
    cin >> n;
    int[] no = {1,2,3,5,6,9,10,13,17};
    if(n<=17)
    {
        rep(i,9)
        {
            if(n == no[i])
            {
                cout << "No" << endl;
                return 0;
            }
        }
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:8: error: structured binding declaration cannot have type 'long long int'
   36 |     int[] no = {1,2,3,5,6,9,10,13,17};
      |        ^~
a.cc:36:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:36:8: error: empty structured binding declaration
a.cc:36:11: error: expected initializer before 'no'
   36 |     int[] no = {1,2,3,5,6,9,10,13,17};
      |           ^~
a.cc:41:21: error: 'no' was not declared in this scope; did you mean 'n'?
   41 |             if(n == no[i])
      |                     ^~
      |                     n
Language: C

#include <stdio.h>
#define D4 4
#define D7 7

int main(void){
  int money,amari,check,check1,amariA,checkA,check1A,pass=0,i;
  //printf("%d\n",D7);
  //for(money=1;money<100;money++){
  scanf("%d",&money );
  //printf("*********************\n");
  //printf("money %d\n", money);
  amari = money % D4;
  check1 = (money - amari) / D4;
  //printf("amari %d\n",amari );
  //printf("check1 %d\n",check1 );
  check = amari % 3;
  //printf("check %d\n",check );

/////////////////////////////////
  //printf("money %d\n", money);
  amariA = money % D7;
  //printf("%d\n",money %D7 );
  check1A = (money - amariA) / D7;
  //printf("amari %d\n",amariA );
  //printf("check1 %d\n",check1A );
  checkA = amariA % 4;
  //printf("check %d\n",checkA );
  for(i=1;i<=check1A;i++){
    amariA = money / (D7 * i);
    checkA = amariA % 4;
    if(checkA == 0){
      pass = 1;
    }
  }
  //printf("Pass %d\n",pass );
  //printf("%d",money );
  if(check == 0&&check1 != 0){
    printf("Yes\n");
  }else if(checkA == 0&&check1A != 0||pass==1){
    printf("Yes\n");
  }else if(amari == 0 && check1 != 0 || amariA == 0 && check1A != 0){
    printf("Yes\n");
  }else{
    printf("No\n");

  }
}
  return 0;
}


Compiler output:
main.c:48:3: error: expected identifier or '(' before 'return'
   48 |   return 0;
      |   ^~~~~~
main.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^
Language: C

#include <stdio.h>
#define D4 4
#define D7 7

int main(void){
  int money,amari,check,check1,amariA,checkA,check1A,pass=0;
  //printf("%d\n",D7);
  //for(money=1;money<100;money++){
  scanf("%d",&money );
  //printf("*********************\n");
  //printf("money %d\n", money);
  amari = money % D4;
  check1 = (money - amari) / D4;
  //printf("amari %d\n",amari );
  //printf("check1 %d\n",check1 );
  check = amari % 3;
  //printf("check %d\n",check );
  for(i=1;i<=check1;i++){
    amari = money / i;
    check = amari % 3;
    if(check == 0){
      pass = 1;
    }
  }
/////////////////////////////////
  //printf("money %d\n", money);
  amariA = money % D7;
  //printf("%d\n",money %D7 );
  check1A = (money - amariA) / D7;
  //printf("amari %d\n",amariA );
  //printf("check1 %d\n",check1A );
  checkA = amariA % 4;
  //printf("check %d\n",checkA );

  //printf("%d",money );
  if(check == 0&&check1 != 0){
    printf("Yes\n");
  }else if(checkA == 0&&check1A != 0||pass==1){
    printf("Yes\n");
  }else if(amari == 0 && check1 != 0 || amariA == 0 && check1A != 0){
    printf("Yes\n");
  }else{
    printf("No\n");

  }
//}
  return 0;
}


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

#include<stdio.h>

int main(){

int temp, N,A,i,B;

scanf("%d",&N);
temp=N/7;
A= N-temp * 7;
temp=A/4;
A -= temp*4;
  
temp=N/4;
B= N-temp * 4;
temp=B/7;
B -= temp*7;

if(((A==0)&&(N>7))||((N==4)||(N==7))||((B==0)&&(N>4)))
printf("Yes\n");
else
printf("No\n");
}
  return 0;
}


Compiler output:
main.c:23:3: error: expected identifier or '(' before 'return'
   23 |   return 0;
      |   ^~~~~~
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C

#include <stdio.h>
#define D4 4
#define D7 7

int main(void){
  int money,amari,check,check1,amariA,checkA,check1A;
  //printf("%d\n",D7);
  //for(money=1;money<100;money++){
  scanf("%d",&money );
  //printf("*********************\n");
  //printf("money %d\n", money);
  amari = money % D4;
  check1 = (money - amari) / D4;
  //printf("amari %d\n",amari );
  //printf("check1 %d\n",check1 );
  check = amari % 3;
  //printf("check %d\n",check );
/////////////////////////////////
  //printf("money %d\n", money);
  amariA = money % D7;
  //printf("%d\n",money %D7 );
  check1A = (money - amariA) / D7;
  //printf("amari %d\n",amariA );
  //printf("check1 %d\n",check1A );
  checkA = amari % 3;
  //printf("check %d\n",checkA );

  //printf("%d",money );
  if(check == 0&&check1 != 0){
    printf("Yes\n");
  }else if(checkA == 0&&check1A != 0){
    printf("Yes\n");
  }else if(amari == 0 && check1 != 0 || amariA == 0 && check1A != 0){
    printf("Yes\n");
  }else{
    printf("No\n");

  }
}
  return 0;
}


Compiler output:
main.c:40:3: error: expected identifier or '(' before 'return'
   40 |   return 0;
      |   ^~~~~~
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^
Language: C

#include <stdio.h>
#define D4 4
#define D7 7
int main(void){
  int money,amari,check,check1,amariA,checkA,check1A;
  //for(money=1;money<100;money++){
  scanf("%d",&money );
  //printf("*********************\n");
  //printf("money %d\n", money);

  amari = money % D4;
  check1 = (money - amari) / D4;
  //printf("amari %d\n",amari );
  //printf("check1 %d\n",check1 );
  check = amari % 3;
  //printf("check %d\n",check );
/////////////////////////////////
  //printf("money %d\n", money);

  amariA = money % D7;
  check1A = (money - amariA) / D7;
  //printf("amari %d\n",amariA );
  //printf("check1 %d\n",check1A );
  checkA = amari % 3;
  //printf("check %d\n",checkA );

  //printf("%d",money );
  if(check == 0&&check1 != 0){
    printf("Yes\n");
  }else if(checkA == 0&&check1A != 0){
    printf("Yes\n");
  }else{
    printf("No\n");

  }
}
  return 0;
}


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

#include <iostream>
using namespace std;
int main(){
  int N;
  bool chk = false;
  cin >> N;
  for(int i = 0; i<=15;i++){
    for(int j = 4; 0<=j<=25;j++){
      if(i*7+j*4 == N)
        cout << "Yes"<<endl, chk = true,break;
    }
    if(chk)break;
    else cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:41: error: expected primary-expression before 'break'
   10 |         cout << "Yes"<<endl, chk = true,break;
      |                                         ^~~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  int cnt = 0
  
  for (int i=0; i<=25; i++){
    for (int j=0; j<29; j++){
      if (n == i*4+j*7) cnt++;
    }
  }
  
  cout << cnt << endl;
  
}


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

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

int main(){
    int n,i;
    cin>>n;
    for(i=0;i<n/7;i++) if((n-i*7)%4==0) break;
    cout<<(i=!n/7?"Yes":"No")<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    8 |     cout<<(i=!n/7?"Yes":"No")<<endl;
      |              ~~~~^~~~~~~~~~~
      |                  |
      |                  const char*
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  int x[101];
  x[4] = x[7] = 1;
  for(int i = 8; i <= 100; i++){
    if(x[i - 4] = 1 || x[i - 7] = 1){
      x[i] = 1;
    }
  }
  
  if(x[n]) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: lvalue required as left operand of assignment
   11 |     if(x[i - 4] = 1 || x[i - 7] = 1){
      |                   ~~^~~~~~~~~~~
Language: C++

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

	else  {
		printf("No\n");
	}
	
	return 0;

		
	

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

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

	else  {
		printf("No\n");
	}
	
	return 0;

		
	

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |         else if(y==0||x==0||z==0||w==0) {
      |         ^~~~
a.cc:12:18: note: to match this '{'
   12 |         if(n==0) {
      |                  ^
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

	else  {
		printf("No\n");
	}
	
	return 0;

		
	

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:12:18: note: to match this '{'
   12 |         if(n==0) {
      |                  ^
a.cc:22:18: error: expected '}' at end of input
   22 |         return 0;
      |                  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else if(z==0) {
      |         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x;
  cin>>x;
  int res=0;
  for(int i=0;i<100;i++){
    for(int k=0;k<100;k++){
      int total=i*7+k*4;
      if (total==X)res+++
    }
  }
  if(res>0)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'X' was not declared in this scope
   10 |       if (total==X)res+++
      |                  ^
a.cc:11:5: error: expected primary-expression before '}' token
   11 |     }
      |     ^
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define sort(a) sort((a).begin(),(a).end())
#define rev(a) reverse((a).begin(),(a).end())
using db = double;
using namespace std;
typedef long long ll;

int main() {
  int n;
  cin >> n;
  bool flag  = false;
  rep(i,15) {
    rep(j,26) {
      if (i * 7 + j * 4 == n) flag = true;
    }
  }
  int ans;
  if (flag == true) ans = "Yes";
  else ans = "No";
  cout << ans << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:22:27: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   22 |   if (flag == true) ans = "Yes";
      |                           ^~~~~
      |                           |
      |                           const char*
a.cc:23:14: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   23 |   else ans = "No";
      |              ^~~~
      |              |
      |              const char*
Language: C++

#include<iostream>
usinn namespace std;

int main(){
  int n; cin>>n;
  if(n>=1 && n<=13 && n!=4 && n!=7 && n!=8 && n!=12 && n!=11) cout<<"No"<<endl;
  else if(n==17) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc:2:1: error: 'usinn' does not name a type
    2 | usinn namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   int n; 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:6:63: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(n>=1 && n<=13 && n!=4 && n!=7 && n!=8 && n!=12 && n!=11) 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:6:75: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(n>=1 && n<=13 && n!=4 && n!=7 && n!=8 && n!=12 && n!=11) cout<<"No"<<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:7:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else if(n==17) 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:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else if(n==17) cout<<"No"<<endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else 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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout<<"Yes"<<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<(n);i++)
int main(){
	int n;cin>>n;
  vector<int>dp(n+10,-1);
  dp[0]=0;
  rep(i,n)(if(i<n&&dp[i]>=0)dp[i+7]=dp[i+7]=max(dp[i+7],dp[i]+1);
  rep(i,n)(if(i<n&&dp[i]>=0)dp[i+4]=dp[i+4]=max(dp[i+4],dp[i]+1);
       if(dp[n]>=0)cout<<"Yes"<<endl;
           else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before 'if'
    8 |   rep(i,n)(if(i<n&&dp[i]>=0)dp[i+7]=dp[i+7]=max(dp[i+7],dp[i]+1);
      |            ^~
a.cc:8:12: error: expected ')' before 'if'
    8 |   rep(i,n)(if(i<n&&dp[i]>=0)dp[i+7]=dp[i+7]=max(dp[i+7],dp[i]+1);
      |           ~^~
      |            )
a.cc:9:12: error: expected primary-expression before 'if'
    9 |   rep(i,n)(if(i<n&&dp[i]>=0)dp[i+4]=dp[i+4]=max(dp[i+4],dp[i]+1);
      |            ^~
a.cc:9:12: error: expected ')' before 'if'
    9 |   rep(i,n)(if(i<n&&dp[i]>=0)dp[i+4]=dp[i+4]=max(dp[i+4],dp[i]+1);
      |           ~^~
      |            )
Language: C++

#include <iostream>

using namespace std;

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

  int ans = 0, a = 4, b = 7;
  for(int i = 0; i*a <= n; i++) {
    for(int j = 0; j*b <= n; j++) {
      if(i*a + j*b == n) {
        cout << "Yes";
        return 0;
      }
    }
    cout <<"No";
  }


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

#include <iostream>

using namespace std;

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

  if(n%4 == 0 || n%7 == 0 || n%11 == 0) || n%15 == 0 || n%18 == 0) cout << "Yes";
  else cout <<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected primary-expression before '||' token
    9 |   if(n%4 == 0 || n%7 == 0 || n%11 == 0) || n%15 == 0 || n%18 == 0) cout << "Yes";
      |                                         ^~
Language: Java

n=int(input())
#4
#7
ans=False
if n%7==0:
    ans==True


for i in range(n/7):
    if (n-i*7)%4==0:
        ans=True
        

if ans:
    print("Yes")
else:
    print("No")    


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n=int(input())
^
Main.java:2: error: illegal character: '#'
#4
^
Main.java:3: error: illegal character: '#'
#7
^
3 errors
Language: C++

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

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

// --https://kenkoooo.com/atcoder/#/table/soma62jp
#include <iostream>
#include <string>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cstring>

using namespace std;


int main(int argc, char* argv[]) {

	int n;
	int ans = 0;

	cin >> n;

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

	if(ans){`
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
	return 0;

}

Compiler output:
a.cc:28:17: error: stray '`' in program
   28 |         if(ans){`
      |                 ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  string res = 'No';
  for (int i = 0; i <= N; i++) {
    for (int j = 0; j <= N; j++) {
      int tmp = 4*i + 7*j;
      if (tmp == N) {
        res = 'Yes';
        break;
      }
    }
  }
  
  cout << res << endl;
}

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

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int N,x,y=0;
  cin >> N;
  for(int i;x<N;i++){
    x = y;
    for(int j;x<N;j++){
      x += 7;
    if(x==N){
      cout << "Yes" << endl;
      break;
    }
    }
    y +=4;
  }
  if(x!=N){
    cout << "No" << endl;
  }else{
    cout << "Yes" << endl;
}

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

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int N,x,y=0;
  cin >> N;
  for(int i;x<N;i++){
    x = y;
    for(int j;x<N;j++){
      x += 7;
    if(x==N){
      cout << "Yes" << endl;
      break;
    }
    y +=4;
  }
  if(x!=N){
    cout << "No" << endl;
  }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:10:30: note: to match this '{'
   10 |   for(int i = 0; i <= A; i++){
      |                              ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
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;
  string ans = 'No';
  int A = 7;
  int B = 4;
  for(int i = 0; i <= A; i++){
    for(int j = 0; j <= B; j++){
      int total = j*B + i*A;
      if(total == N){
        ans = 'Yes';
      }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   string ans = 'No';
      |                ^~~~
a.cc:14:15: warning: multi-character character constant [-Wmultichar]
   14 |         ans = 'Yes';
      |               ^~~~~
a.cc: In function 'int main()':
a.cc:7:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    7 |   string ans = 'No';
      |                ^~~~
a.cc:14:15: warning: overflow in conversion from 'int' to 'char' changes value from '5858675' to '115' [-Woverflow]
   14 |         ans = 'Yes';
      |               ^~~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:10:30: note: to match this '{'
   10 |   for(int i = 0; i <= A; i++){
      |                              ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected primary-expression before '||' token
   13 |   else if ((n%4)%7==0) || ( (n%7)%4 )  )
      |                        ^~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<math.h>
#include<stdio.h>

#define rep(i,a,n) for(int (i)=(a);(i)<(n);(i)++)
#define rrep(i,a,n) for(int (i)=(a);(i)>=(n);(i)--)

#define INF 1000000000
#define MOD 1000000007

typedef  long long ll;

using namespace std;


void ys(){
    cout << "Yes" << endl;
}

void yb(){
    cout << "YES" << endl;
}

void ns(){
    cout << "No" << endl;
}

void nb(){
    cout << "NO" << endl;
}

void solve(void){
    int n;
    cin  >> n;
    rep(i,0,n/4+1){
        rep(j,0,n/7+1){
            if(4*i+7+k == n){
                ys();
                return;
            }
        }
    }
    ns();
}


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


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

#include <iostream>
using namespace std;
 
int main() 
{
	int n;
	cin >> n[i]; 	
	cout << (n==1 || n==2 || n==3 || n==5 || n==6 || n==9 || n==10 || n==13 || n==17 ? "NO" : "YES") << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'i' was not declared in this scope
    7 |         cin >> n[i];
      |                  ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String output = "No";

		Integer nInteger = new Integer(scanner.next());

		for(int i= 0,iLen = (nInteger/7+1);i < iLen;i++) {
			for(int j = 0,jLen = ((nInteger-i*7)/4)+1;j<jLen;j++) {
				if(nInteger == (i*7+j*4)) {
					output = "Yes";
					break;
				}
			}
		}
		System.out.println(output);
		scanner.close();
	}

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

import java.util.Scanner;
import java.util.*;

public class ABC105B {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String ans = "No";
        int n = sc.nextInt();

        for(int i=0; i<16; i++){
            for(int j=0; j<26; j++){
                if(7*i + 4*j == n ){
                    ans ="Yes";
                }
            }
        }

        System.out.println(ans);

    }
}


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

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

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// nCr(n,r)
int nCr(int n, int r){
	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (nCr(n - 1, r - 1) + nCr(n - 1, r));
}

// gcd(a,b)
int gcd(int a,int b){
	return (b == 0) ? a : gcd(b, a % b);
}

// lcm(a,b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

int main(int argc, char const *argv[]){
	int n;
	cin >> n;
	while(n >= 4){
		if(n % 4 == 0 || n % 7 == 0){
			cout << "Yes" << endl;
			return 0;
		}
		else if(n > 4)	n -= 4;
		else if(n > 7)	n -- 7;
	}
	cout << "No" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:36:37: error: expected ';' before numeric constant
   36 |                 else if(n > 7)  n -- 7;
      |                                     ^~
      |                                     ;
Language: C

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

// fact(n)
int fact(int n){
	if(n == 1)	return 1;
	else return (n * fact(n - 1));
}

// nCr(n,r)
int nCr(int n, int r){
	if(r == 0 || r == n)	return 1;
	else if(r == 1)	return n;
	return (nCr(n - 1, r - 1) + nCr(n - 1, r));
}

// gcd(a,b)
int gcd(int a,int b){
	return (b == 0) ? a : gcd(b, a % b);
}

// lcm(a,b)
int lcm(int a,int b){
	return (a * b) / gcd(a,b);
}

int main(int argc, char const *argv[]){
	int n;
	cin >> n;
	while(n >= 4){
		if(n % 4 == 0 || n % 7 == 0){
			cout << "Yes" << endl;
			return 0;
		}
		else if(n > 4)	n -= 4;
		else if(n > 7)	n -- 7;
	}
	cout << "No" << endl;
	return 0;
}


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

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

int main(int argc, char const *argv[]){
	int n;
	cin >> n;
	while(n >= 4){
		if(n % 4 == 0 || n % 7 == 0){
			cout << "Yes" << endl;
			return 0;
		}
		else if(n > 4)	n -= 4;
		else if(n > 7)	n -- 7;
	}
	cout << "No" << endl;
	return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.