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

    #include <iostream>
    #include <string>
    #include <algorithm>
    #include <stack>
    #include <queue>
    #include <map>
    #include <cmath>
    #include <time.h>
    #include <stdio.h>
    #include <vector>
    #define int long long
    using namespace std;
    int gcd(int x, int y) {
    	if (y == 0)return x;
    	return gcd(y, x%y);
    }
    int lcm(int x, int y) {
    	return x / gcd(x, y)*y;
    }
    int mypow(int x, int y) {
    	if (y == 0)return 1;
    	if (y % 2)return mypow(x, y - 1)*x;
    	else return mypow(x, y / 2)*mypow(x, y / 2);
    }
    int Max(int x, int y) {
    	if (x > y)return x;
    	else return y;
    }
    int Min(int x, int y) {
    	if (x < y)return x;
    	else return y;
    }
    int kai(int x) {
    	int cnt = 1;
    	if (x == 0)return 1;
    	cnt = kai(x - 1);
    	return x * cnt;
    }
    inline void shoki()
    {
    	srand((unsigned int)time(NULL));
    }
     
    /*Library End!*/
     
    signed main() {
    	int n;
    	cin >> n;
    	if(n == {1, 2, 3, 5, 6, 9, 10, 13, 17})puts("No");
    	else puts("Yes");
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:49:17: error: expected primary-expression before '{' token
   49 |         if(n == {1, 2, 3, 5, 6, 9, 10, 13, 17})puts("No");
      |                 ^
a.cc:49:16: error: expected ')' before '{' token
   49 |         if(n == {1, 2, 3, 5, 6, 9, 10, 13, 17})puts("No");
      |           ~    ^~
      |                )
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean flg = false;

		int res=0;
		for(int i=0;i<30;i++) {
			for(int j=0;j<20;j++) {
				res=4*i+7*j;
				if(res==N) {
					flg=true;
					break;
				}
				if(res>N) {
					break;
				}
			}
		}
		if(flg) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:37: error: 'j' was not declared in this scope
   10 |                 int TOTAL = 4*i + 7*j;
      |                                     ^
Language: C

import java.util.Scanner;
class Cakes{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt(), ans = 0;
      for(int i=0; i<=n; i+=4){
        for(int j=0; j<=n; j+=7){
          if(i+j==n){
            System.out.println("i="+i+" j="+j);
            ans++;
          }
        }
      }
      if(ans==0){
        System.out.println("No");
      }
    }
  }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'class'
    2 | class Cakes{
      | ^~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | class Cakes{
      |            ^
main.c:19:1: error: expected identifier or '(' before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <map>
#include <cmath>
#include <time.h>
#include <stdio.h>
#include <vector>
#define int long long
using namespace std;
int gcd(int x, int y) {
	if (y == 0)return x;
	return gcd(y, x%y);
}
int lcm(int x, int y) {
	return x / gcd(x, y)*y;
}
int mypow(int x, int y) {
	if (y == 0)return 1;
	if (y % 2)return mypow(x, y - 1)*x;
	else return mypow(x, y / 2)*mypow(x, y / 2);
}
int Max(int x, int y) {
	if (x > y)return x;
	else return y;
}
int Min(int x, int y) {
	if (x < y)return x;
	else return y;
}
int kai(int x) {
	int cnt = 1;
	if (x == 0)return 1;
	cnt = kai(x - 1);
	return x * cnt;
}
inline void shoki()
{
	srand((unsigned int)time(NULL));
}

/*Library End!*/

signed main() {
	int n;
	cin >> n;
	if{n == 1, 2, 3, 5, 6, 9, 10, 13, 17}puts("No");
	else puts("Yes");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:11: error: expected '(' before '{' token
   49 |         if{n == 1, 2, 3, 5, 6, 9, 10, 13, 17}puts("No");
      |           ^
      |           (
a.cc:50:9: error: 'else' without a previous 'if'
   50 |         else puts("Yes");
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n; cin >> n;
  int m = 0;
  for(int i = 0;i < 26; ++i){
    for(int j = 0; j < 15; +;j){
      if(4*i + 7*j == n ) ++m;
    }
  }
  if(m == 0) cout << "No" << endl;
  else cout << "Yes" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected primary-expression before ';' token
    8 |     for(int j = 0; j < 15; +;j){
      |                             ^
a.cc:8:29: error: expected ')' before ';' token
    8 |     for(int j = 0; j < 15; +;j){
      |        ~                    ^
      |                             )
a.cc:8:30: error: 'j' was not declared in this scope
    8 |     for(int j = 0; j < 15; +;j){
      |                              ^
Language: C++

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

Compiler output:
a.cc:1:9: fatal error: bit.stdc++: No such file or directory
    1 | #include<bit.stdc++>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(void){
	int N,i,j,cake=4,donut=7,a=0,flag=0;
	scanf("%d",&N);
	for(i = 1; i < 26; i++){
		for(j = 1; j < 15; j++){
			a= (x * i) + (y * j);
			if(N % 4 == 0){
				flag = 1;
				printf("Yes",flag ==1);
				return 0;
			}
			else if(N % 7 == 0){
				flag = 1;
				printf("Yes",flag ==1);
				return 0;
			}
			else if(N % a == 0){
				flag = 1;
				printf("Yes",flag ==1);
				return 0;
			}
		}
	}
	printf("No\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:29: error: 'x' undeclared (first use in this function)
    8 |                         a= (x * i) + (y * j);
      |                             ^
main.c:8:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:39: error: 'y' undeclared (first use in this function)
    8 |                         a= (x * i) + (y * j);
      |                                       ^
Language: C

#include<stdio.h>

int main(void){
    int n, i, j, flag = 0;
    scanf_s("%d", &n);

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

    if(flag == 1){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |     scanf_s("%d", &n);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>
int main(void){
    // Your code here!
    int n;
    scanf("%d\n",&n);
    if(n==1||n==2||n==3||n==5||m==6||n==9||n==10||n==13||n==17){
        printf("YES\n");
    }
    else printf("NO\n");
}


Compiler output:
main.c: In function 'main':
main.c:6:32: error: 'm' undeclared (first use in this function)
    6 |     if(n==1||n==2||n==3||n==5||m==6||n==9||n==10||n==13||n==17){
      |                                ^
main.c:6:32: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include<stdio.h>
int main(void)
{
  int aa, ab, ac;
  scanf("%d", &aa);
  for (ab = 0; ab <= 25; ab++)
  {
    for (ac = 0; ac <= 25; ac++)
      if (aa = ab * 7 + ac * 4)
      { printf("Yes\n");
    return 0;}
  }
      puts("No\n");
  return 0;
}

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

#include<string>
#include<algorithm>
#include<map>
#include<vector>
using namespace std;
int main()
{
    int n,x,y,cnt=0;
    cin>>n;
    for(x=0;x<50;x++){
        for(y=0;y<50;y++){
            if(4*x+7*y==n){
                cnt++;
                break;
            }
        }
    }
    if(cnt==1)
    cout<<"Yes"<<endl;
    else
    cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>n;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include<vector>
  +++ |+#include <iostream>
    5 | using namespace std;
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include<vector>
  +++ |+#include <ostream>
    5 | using namespace std;
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:17: error: 'endl' was not declared in this scope
   21 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:21:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
     cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:56: error: expected ')' before '}' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |     ~                                                  ^
      |                                                        )
a.cc:6:56: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:6:57: error: expected unqualified-id before '{' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |                                                         ^
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else{
      |   ^~~~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
     cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
     return 0;
     }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:56: error: expected ')' before '}' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |     ~                                                  ^
      |                                                        )
a.cc:6:56: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:6:57: error: expected unqualified-id before '{' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |                                                         ^
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else{
      |   ^~~~
a.cc:12:6: error: expected unqualified-id before 'return'
   12 |      return 0;
      |      ^~~~~~
a.cc:13:6: error: expected declaration before '}' token
   13 |      }
      |      ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
     cout<<"Yes"<<endl;
  else{
    cout<<"No"<<endl;
  }
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:56: error: expected ')' before '}' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |     ~                                                  ^
      |                                                        )
a.cc:6:56: error: expected primary-expression before '}' token
a.cc: At global scope:
a.cc:6:57: error: expected unqualified-id before '{' token
    6 |   if(a==4||a==7||a==8||a==11||a==12||a==14||a==16||a>17}{
      |                                                         ^
Language: C++

N=int(input())
nlist=[1,2,3,5,6,9,13,17]
flag=0

for a in range(len(nlist)):
 if N==nlist[a]:
  flag=1
  break

if flag==1:
 print("No")
else:
 print("Yes")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N=int(input())
      | ^
Language: C++

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

int main() {
	int N;
  	cin >> N;
    if (N<4||N==5||N==6||N==9||N==10||N==13||N=17){
      cout << "No"<< endl;
    }
  else {
    cout << "Yes" << endl;
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:44: error: lvalue required as left operand of assignment
    8 |     if (N<4||N==5||N==6||N==9||N==10||N==13||N=17){
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

package main

import (
	"fmt"
	)

func main(){
	var N int
	var CMAX, DMAX int
	var Hantei bool
	fmt.Scanf("%d",&N)
	CMAX = 100 / 4
	DMAX = 100 / 7
	//fmt.Printf("CMAX:%d DMAX:%d\n",CMAX,DMAX)
	for i := 0; i < CMAX; i++ {
		for j := 0; j < DMAX; j++ {
			if i*4+j*7 == N {Hantei = true}
		}
	}
	if Hantei == false {
		fmt.Printf("%s\n","No")
	} else { 
	fmt.Printf("%s\n","Yes") 
	}
}

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

import java.util.*;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner.new(System.in);
    int n = sc.nextInt();
    while(n >= 0) {
      if(n % 4 == 0 || n % 7 == 0) {
        System.out.println("Yes");
        return;
      }
      n -= 11;
    }
    
    System.out.println("No");
  }
}

Compiler output:
Main.java:5: error: <identifier> expected
    Scanner sc = new Scanner.new(System.in);
                             ^
Main.java:5: error: <identifier> expected
    Scanner sc = new Scanner.new(System.in);
                                ^
2 errors
Language: C++

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

string ans="00100110010110111111110";
const timelim=2;

int gettime(){
  timeval tv;
  gettimeofday(&tv, NULL);
  int x = tv.tv_sec % 2 * 1000 + tv.tv_usec / 1000;
  return x;
}
 
int T=40;
 
int main(){
  //puts("Yes"); while (gettime()>10); return 0;
  int x=gettime()/T;
  if (x>=23){
    x=0;
  }
  puts(ans[x]=='1'? "Yes": "No");
  int aim=((x+1)*T-440+10000)%1000;
  while (1){
    int t=gettime();
    if (t<=aim&&t>=aim-2) return 0;
  }
}


Compiler output:
a.cc:6:7: error: 'timelim' does not name a type; did you mean 'timex'?
    6 | const timelim=2;
      |       ^~~~~~~
      |       timex
Language: C

#include <stdio.h>

int main() {
	int N;
    scanf("%d",&N);
    for(int a4 = 0; a4 <= 100; a4 += 4) {
    	for(int a7 = 0; a4 + a7 <= 100; a7 +=7) {
        	if(a4 + a7 == N){
            	printf("Yes\n");
                return 0;
            }
        }
    }
    prinf("No\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |     prinf("No\n");
      |     ^~~~~
      |     printf
Language: C

include <stdio.h>

int main() {
	int N;
    scanf("%d",&N);
    for(int a4 = 0; a4 <= 100; a4 += 4) {
    	for(int a7 = 0; a4 + a7 <= 100; a7 +=7) {
        	if(a4 + a7 == N){
            	printf("Yes\n");
                return 0;
            }
        }
    }
    prinf("No\n");
    return 0;
}

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

#include <iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  for(int a4 = 0; a4*4<=100; a4 ++){
    for(int a7 =0; a4*4+a7*7 <= 100; a7 ++){
      if(a4*4+a7*7 == N){
        cout << "Yes" << endl;
        return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main() {
	int N;
	cin >> N;
	int CMAX = 100 / 4;
	int DMAX = 100 / 7;
	for (int i = 0; i <= CMAX; i++) {
		for (int j = 0; j <= DMAX; j++) {
			if (i * 4 + j * 4 == N) {
				cerr << "Yes" << endl;
				return;
			}
		}
	}
	cerr << "No" << endl;
return;
}

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

#include<iostream>
using namespace std;

int main(){
  int N;
  cin >> N;
  int s,t;
  s=N/4;
  t=N/7;
  int res = 0;;  
  for(int i=0;i<=s;i++){
    for(int j=0;j=<t;j++){
      int total=0;
      total=4*i + 7*j;
      if(total==N)res=1;
    }
  }
  if(res==1)cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected primary-expression before '<' token
   12 |     for(int j=0;j=<t;j++){
      |                   ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <functional>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <string>
#include <set>
#include <queue>
#include <cstdio>
#include <cstdlib>
using namespace std;

int main(){
	int n; scanf_s("%d", &n);
	int cm = 100 / 4;
	int dm = 100 / 7;
	for (int i = 0; i < cm; i++) {
		for (int j = 0; j < dm; j++) {
			if (i * 4 + j * 7 == n) {
				cout << "Yes" << endl;
				return 0;
			}
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   17 |         int n; scanf_s("%d", &n);
      |                ^~~~~~~
      |                scanf
Language: C

#include <iostream>

int main(){
int n;
std::cin >> n;
int f = 0;
for(int i = 0; i <= n / 4; i++)
for(int j = 0; j <= n / 7; j++)
if(4*i+7*j==n) f = 1;
if(f == 1) std::cout << "YES";
else std::cout << "NO";
return 0;
}

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

#include <stdio.h>

int main(){
int n;
scanf("%d",&n);
int f = 0;
for(int i = 0; i <= n / 4; i++)
for(int j = 0; j <= n / 7; j++)
if(4*x+7*y==n) f = 1;
if(f == 1) printf("YES");
else printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: 'x' undeclared (first use in this function)
    9 | if(4*x+7*y==n) f = 1;
      |      ^
main.c:9:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:10: error: 'y' undeclared (first use in this function)
    9 | if(4*x+7*y==n) f = 1;
      |          ^
Language: C++

#include <iostream>

using namespace std;
int main(){
	int n;
	cin >> n
	int flag = 0;
	for(int x = 0; x <= n / 4; x++)
		for(int y = 0; y <= n / 7; y++)
			if(4 * x + 7 * y == n) flag = 1;
	if(flag) 
		cout << "YES";
	else 
		cout << "NO";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected ';' before 'int'
    6 |         cin >> n
      |                 ^
      |                 ;
    7 |         int flag = 0;
      |         ~~~      
a.cc:10:48: error: 'flag' was not declared in this scope
   10 |                         if(4 * x + 7 * y == n) flag = 1;
      |                                                ^~~~
a.cc:11:12: error: 'flag' was not declared in this scope
   11 |         if(flag)
      |            ^~~~
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int N;
int main()
{
	cin>>N;
	if(N>17)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if(N%4==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if((N-7)%4==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if((n-14)%7==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'n' was not declared in this scope
   23 |         if((n-14)%7==0)
      |             ^
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	cin>>N;
	if(N>17)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if(N%4==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if((N-7)%4==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	if((n-14)%7==0)
	{
		cout<<"Yes"<<endl;
		return 0;
	}
	cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'N' was not declared in this scope
    6 |         cin>>N;
      |              ^
a.cc:22:13: error: 'n' was not declared in this scope
   22 |         if((n-14)%7==0)
      |             ^
Language: C

#include <stdio.h>

int main(void){
  int n,i,j,p;
  scanf("%d",%n);
  
  for( i=0; i< n/4; i++) for( j=0; j< n/7; j++){
    if( 4*i+7*j == n ){
      printf("Yes\n");
      return 0;
    }
  }
  
  printf("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected expression before '%' token
    5 |   scanf("%d",%n);
      |              ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a[100] = {0};
  a[0] = 1;
  for (int i = 4; i < n; ++i)
    if ( i > 4 && a[i-4] )
      a[i] = 1;
    else if (i > 7 && a[i-7])
      a[i] = 1;
  
  int N;
  cin >> N;
  cout << (a[N]) ? "Yes":"No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: 'n' was not declared in this scope
    7 |   for (int i = 4; i < n; ++i)
      |                       ^
a.cc:15:31: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout << (a[N]) ? "Yes":"No" << endl;
      |                          ~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int a[100] = {0};
  a[0] = 1;
  for (int i = 4; i < n; ++i)
    if ( i > 4 && a[i-4] )
      a[i] = 1;
    else if (i > 7 && a[i-7])
      a[i] = 1;
  
  int N;
  cin >> N;
  cout << a[N] << endl;
}

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

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

int n, x, y;

signed main() {
  // freopen("in", "r", stdin);
  while(~scanf("%d",&n)) {
    bool ok = 0;
    for(x = 0; x < 100; x++) {
      for(y = 0; y < 100; y++) {
        if(4*x+7*y==n)ok=1;
      }
    }
    puts(ok?"Yes":"No")
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before '}' token
   15 |     puts(ok?"Yes":"No")
      |                        ^
      |                        ;
   16 |   }
      |   ~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression before '=' token
    8 |     for(int j=0;j<==14; j++){
      |                    ^
a.cc:9:34: error: expected ';' before '}' token
    9 |       if(N=4*i+7*j) cout << "Yes"
      |                                  ^
      |                                  ;
   10 |     }
      |     ~                             
a.cc:12:15: error: expected ';' before '}' token
   12 |   cout << "No"
      |               ^
      |               ;
   13 | }
      | ~
Language: C++

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

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

  if ((N % 4) * ( N % 7) == 0) {
    cout << "Yes" << endl;
  }

  int M = N;
  else {
    while(M >= 4) {
      if ((M % 7) % 4 != 0) {
	M = M - 7;
      }
      else {
	cout << "Yes" << endl;
	break;
      }
    }
  }
  if (M < 4) {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C

#include<stdio.h><math.h>
int main()
{
	double M, N, a, counter=0;
	scanf("%lf", &N);
	M = (N-7*a)/4;
	for(a=0; a <=14; a++){
		if(M==0){
			counter = counter + 1
		}if(fmod(M,1)==0 && M>0 && N>0){
			counter = counter + 1;
			break;
		}
	}
	if(counter==1){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:9:46: error: expected ';' before '}' token
    9 |                         counter = counter + 1
      |                                              ^
      |                                              ;
   10 |                 }if(fmod(M,1)==0 && M>0 && N>0){
      |                 ~                             
main.c:10:21: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   10 |                 }if(fmod(M,1)==0 && M>0 && N>0){
      |                     ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:10:21: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   10 |                 }if(fmod(M,1)==0 && M>0 && N>0){
      |                     ^~~~
main.c:10:21: note: include '<math.h>' or provide a declaration of 'fmod'
Language: C

#include<stdio.h><math.h>
int main()
{
	double M, N, a, counter=0;
	scanf("%lf", &N);
	M = (N-7*a)/4;
	for(a=0; a <=14; a++){
		if(M==0){
			counter = counter + 1
		}else if(fmod(M,1)==0 && M>0 && N>0){
			counter = counter + 1;
			break;
		}
	}
	if(counter==1){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:9:46: error: expected ';' before '}' token
    9 |                         counter = counter + 1
      |                                              ^
      |                                              ;
   10 |                 }else if(fmod(M,1)==0 && M>0 && N>0){
      |                 ~                             
main.c:10:26: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   10 |                 }else if(fmod(M,1)==0 && M>0 && N>0){
      |                          ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:10:26: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   10 |                 }else if(fmod(M,1)==0 && M>0 && N>0){
      |                          ^~~~
main.c:10:26: note: include '<math.h>' or provide a declaration of 'fmod'
Language: C

#include<stdio.h><math.h>
int main()
{
	double M, N, a, counter=0;
	scanf("%lf", &N);
	M = (N-7*a)/4;
	for(a=0; a <=14; a++){
		if(M==0){
			counter = counter + 1
		}elseif(fmod(M,1)==0 && M>0 && N>0){
			counter = counter + 1;
			break;
		}
	}
	if(counter==1){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:9:46: error: expected ';' before '}' token
    9 |                         counter = counter + 1
      |                                              ^
      |                                              ;
   10 |                 }elseif(fmod(M,1)==0 && M>0 && N>0){
      |                 ~                             
main.c:10:18: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 |                 }elseif(fmod(M,1)==0 && M>0 && N>0){
      |                  ^~~~~~
main.c:10:25: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   10 |                 }elseif(fmod(M,1)==0 && M>0 && N>0){
      |                         ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:10:25: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   10 |                 }elseif(fmod(M,1)==0 && M>0 && N>0){
      |                         ^~~~
main.c:10:25: note: include '<math.h>' or provide a declaration of 'fmod'
main.c:10:52: error: expected ';' before '{' token
   10 |                 }elseif(fmod(M,1)==0 && M>0 && N>0){
      |                                                    ^
      |                                                    ;
Language: C

#include<stdio.h><math.h>
int main()
{
double M, N, a, counter=0;
scanf("%lf", &N);
M = (N-7*a)/4;
for(a=0; a <=14; a++){
if(M==0){
counter = counter + 1;
break;
}elseif(fmod(M,1) == 0 && M > 0){
counter = counter + 1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:11:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   11 | }elseif(fmod(M,1) == 0 && M > 0){
      |  ^~~~~~
main.c:11:9: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   11 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:11:9: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   11 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:11:9: note: include '<math.h>' or provide a declaration of 'fmod'
main.c:11:33: error: expected ';' before '{' token
   11 | }elseif(fmod(M,1) == 0 && M > 0){
      |                                 ^
      |                                 ;
Language: C

#include<stdio.h><math.h>
int main()
{
double M, N, a, counter=0;
scanf("%lf", &N);
M = (N-7*a)/4;
for(a=0; a <=14; a++){
if(M==0){
counter = counter + 1;
}elseif(fmod(M,1) == 0 && M > 0){
counter = counter + 1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:10:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |  ^~~~~~
main.c:10:9: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:10:9: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:10:9: note: include '<math.h>' or provide a declaration of 'fmod'
main.c:10:33: error: expected ';' before '{' token
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |                                 ^
      |                                 ;
Language: C

#include<stdio.h><math.h>
int main()
{
double M, N, a, counter=0;
scanf("%lf", &N);
M = (N-7*a)/4;
for(a=0; a <=14; a++){
if(M==0){
counter = counter + 1
}elseif(fmod(M,1) == 0 && M > 0){
counter = counter + 1;
break;
}
}
if(counter==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c:1:18: warning: extra tokens at end of #include directive
    1 | #include<stdio.h><math.h>
      |                  ^~~~~~~~
main.c: In function 'main':
main.c:9:22: error: expected ';' before '}' token
    9 | counter = counter + 1
      |                      ^
      |                      ;
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      | ~                     
main.c:10:2: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |  ^~~~~~
main.c:10:9: error: implicit declaration of function 'fmod' [-Wimplicit-function-declaration]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fmod'
    1 | #include<stdio.h><math.h>
  +++ |+#include <math.h>
    2 | int main()
main.c:10:9: warning: incompatible implicit declaration of built-in function 'fmod' [-Wbuiltin-declaration-mismatch]
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |         ^~~~
main.c:10:9: note: include '<math.h>' or provide a declaration of 'fmod'
main.c:10:33: error: expected ';' before '{' token
   10 | }elseif(fmod(M,1) == 0 && M > 0){
      |                                 ^
      |                                 ;
Language: C++

#include<iostream>
using namespace std;

int main(){
int case[26][16];
for(int i=0;i<26;i++)
  for(int j=0; j<16; j++)
    case[i][j]=i*4+j*7;
int n;
int f=0;
cin>>n;
for(int i=0;i<26;i++)
  for(int j=0; j<16; j++){
  if(case[i][j]==n)
  {
   f=1;
   break;
  }
  if(f==1)
  break;
}

if(f==1)
cout<<"Yes";
else 
cout<<"No";
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected unqualified-id before 'case'
    5 | int case[26][16];
      |     ^~~~
a.cc: In lambda function:
a.cc:8:12: error: expected '{' before '[' token
    8 |     case[i][j]=i*4+j*7;
      |            ^
a.cc: In function 'int main()':
a.cc:8:12: error: no match for 'operator[]' (operand types are 'main()::<lambda()>' and 'int')
a.cc:8:5: error: case label '<expression error>' not within a switch statement
    8 |     case[i][j]=i*4+j*7;
      |     ^~~~
a.cc:8:23: error: expected ':' before ';' token
    8 |     case[i][j]=i*4+j*7;
      |                       ^
      |                       :
a.cc:14:6: error: expected primary-expression before 'case'
   14 |   if(case[i][j]==n)
      |      ^~~~
a.cc:14:6: error: expected ')' before 'case'
   14 |   if(case[i][j]==n)
      |     ~^~~~
      |      )
Language: C++

#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
int a;
cin>>a;
for(int i=1;i<a;i++)
{
for(int j=1;j<a;j++)
{
if(i*4+j*7==a)
{
cout<<"Yes"<<endl;
system("pause");
return 0;
}
}
cout<<"No"<<endl;
system("pause");
return 0;
}

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

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

    int possible = false;

    if(n >= 21)
    {
        possible = true;
    }
    else
    {
        for(int i = 0; 4*i <= n; i++)
        {
            if( (n - 4*i)%7 == 0)
            {
                possible = true;
                break;
            }
        }
    }

    printf(possible ? "YES\n" : "NO\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d", &n);
      |     ^~~~~
a.cc:24:5: error: 'printf' was not declared in this scope
   24 |     printf(possible ? "YES\n" : "NO\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected primary-expression before '<=' token
    9 |     if((4 - (n % 4)) * 7) <= n){
      |                           ^~
Language: C++

#include <iostream>

int main(){
 int N,i,j,outflag=0;
 
 std::cin >> N;

 i=0;j=0;

 while(true){
  j=0;
  if((i*4+j*7)>N)outflag=1;
  while(true){
   if((i*4+j*7)>N)break;
   if((i*4+j*7)==N){
    std::cout << "Yes";
    return;
   }
   ++j;
  }
  ++i;
  if(outflag)break;
 }
 std::cout << "No";
    
 return 0;
}

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

#include <iostream>
using namespace std;
int main(void){
    int n;
    cin>>n;
    rep(i,100){
        if(n<4*i)break;
        if((n-4*i)%7==0){cout<<"Yes"<<endl; return 0;}
    }
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'i' was not declared in this scope
    6 |     rep(i,100){
      |         ^
a.cc:6:5: error: 'rep' was not declared in this scope
    6 |     rep(i,100){
      |     ^~~
Language: C++

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

int main(){
  int N
  cin>>N;
  int y=0;
  for(int i=0;i<25;i++)if(N>=4*i&&(N-4*i)%7==0)y++;
  if(y)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>N;
      |   ^~~
a.cc:8:27: error: 'N' was not declared in this scope
    8 |   for(int i=0;i<25;i++)if(N>=4*i&&(N-4*i)%7==0)y++;
      |                           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>N;
      |   ^~~
a.cc:8:8: error: 'N' was not declared in this scope
    8 |     if(N>=4*i&&(N-4*i)%7==0)cout<<"Yes"<<endl;
      |        ^
a.cc:10:4: error: expected '}' at end of input
   10 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |     cout<"No"<<endl;
      |          ~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:15: error: expected ';' before 'return'
   13 |   cout << "No"
      |               ^
      |               ;
   14 |   return 0;
      |   ~~~~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: expected '}' at end of input
   20 |         return 0;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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||)
	{
		cout<<"No"<<endl;
	}
	else
	{
		cout<<"Yes"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:69: error: expected primary-expression before ')' token
    7 |         if(a==1||a==2||a==3||a==5||a==6||a==9||a==10||a==13||a==17||)
      |                                                                     ^
Language: C++

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

Compiler output:
a.cc:13:2: error: extended character 　 is not valid in an identifier
   13 |  　cout << "No";
      |  ^
a.cc: In function 'int main()':
a.cc:13:2: error: '\U00003000cout' was not declared in this scope
   13 |  　cout << "No";
      |  ^~~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  for(int i=0;i<=25;i++)
  {
    if((n-4*i)%7=0)
    	cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: lvalue required as left operand of assignment
   10 |     if((n-4*i)%7=0)
      |        ~~~~~~~^~
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  for(int i;i=0;i<=25;i++)
  {
    if((n-4*i)%7=0)
    	cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before ';' token
    8 |   for(int i;i=0;i<=25;i++)
      |      ~               ^
      |                      )
a.cc:8:23: error: 'i' was not declared in this scope
    8 |   for(int i;i=0;i<=25;i++)
      |                       ^
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  for(int i;i=0;i++;i<=25)
  {
    if((n-4*i)%7=0)
    	cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ')' before ';' token
    8 |   for(int i;i=0;i++;i<=25)
      |      ~             ^
      |                    )
a.cc:8:21: error: 'i' was not declared in this scope
    8 |   for(int i;i=0;i++;i<=25)
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int CMAX = 100 / 4;
  int DMAX = 100 / 7;
  for (int i = 0; i <= CMAX; i++)
  {
    for (int j = 0; j <= DMAX; j++)
    {
      if (i * 4 + j * 7 == N )  {
        cout << "Yes" << endl;
        return;
      }
    }
  }
  cout << "No" << endl;
  return;
}

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

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int CMAX = 100 / 4;
  int DMAX = 100 / 7;
  for (int i = 0; i <= CMAX; i++)
  {
    for (int j = 0; j <= DMAX; j++)
    {
      if (i * 4 + j * 7 == N )  {
        cerr << "Yes" << endl;
        return;
      }
    }
  }
  cerr << "No" << endl;
  return;
}

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

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int CMAX = 100 / 4;
  int DMAX = 100 / 7;
  for (int i = 0; i <= CMAX; i++)
  {
    for (int j = 0; j <= DMAX; j++)
    {
      if (i * 4 + j * 7 == N ) 
      {
                 cerr << "Yes" << endl;
        return;
      }
    }
  }
  cerr << "N0" <<endl;
  return;
}



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

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int CMAX = 100 / 4;
  int DMAX = 100 / 7;
  for (int i = 0; i <= CMAX; i++)
  {
    for (int j = 0; j <= DMAX; j++)
    {
      if (i * 4 + j * 7 = N ) 
      {
                 cerr << "Yes" << endl;
        return;
      }
    }
  }
  cerr << "N0" <<endl;
  return;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: lvalue required as left operand of assignment
   12 |       if (i * 4 + j * 7 = N )
      |           ~~~~~~^~~~~~~
a.cc:15:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |         return;
      |         ^~~~~~
a.cc:20:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |   return;
      |   ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main() {
  int N;
  cin >> N;
  int CMAX = 100 / 4;
  int DMAX = 100 / 7;
  for (int i = 0; i < CMAX; i++)
  {
    for (int j = 0; j < DMAX; j++)
    {
      if (i * 4 + j * 7 = N ) 
      {
                 cerr << "Yes" << endl;
        return;
      }
    }
  }
  cerr << "N0" <<endl;
  return;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: lvalue required as left operand of assignment
   12 |       if (i * 4 + j * 7 = N )
      |           ~~~~~~^~~~~~~
a.cc:15:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |         return;
      |         ^~~~~~
a.cc:20:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |   return;
      |   ^~~~~~
Language: C++

/*问题陈述
ABC电视台出售的蛋糕每块4美元，甜甜圈每块7美元。
确定是否有办法用N元买到其中的一些。
你可以买两个或更多的甜甜圈和两个或更多的蛋糕，
你也可以选择买零甜甜圈或零蛋糕。
制约因素
N是1到100之间的整数，包括1和100。*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
int main(){
	int n,i,n;
	cin>>n;
	if(n%7==0){
		cout<<"Yes";
		return 0;
	}
	if(n%4==0){
		cout<<"Yes";
		return 0;
	}
	for(i=0;i<=n;i++){
		if((n-i*4)/7==0&&i>=2||i==0){
			cout<<"Yes";	
			return 0;
		}
		else {
			cout<<"No";	
			return 0;
		}
	}
	for(i=0;i<=n;i++){
		if((n-i*7)/7==0&&i>=2||i==0){
			cout<<"Yes";
			return 0;
		}
			
			else{
				cout<<"No";
				return 0;
			} 
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: redeclaration of 'int n'
   14 |         int n,i,n;
      |                 ^
a.cc:14:13: note: 'int n' previously declared here
   14 |         int n,i,n;
      |             ^