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

#include <stdio.h>

int main(void)
{
  int N,K

  scanf("%d %d", &N, &K);

  if(N%K == 0) {
    printf("0");
  } else {
    printf("1");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%d %d", &N, &K);
      |   ^~~~~
main.c:9:8: error: 'K' undeclared (first use in this function)
    9 |   if(N%K == 0) {
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N = 100001;
typedef unsigned long long ;
int n,k;
int a[N];
int main() {
    cin >> n >> k;
    cout << n % k << endl;
    return 0;
}

Compiler output:
a.cc:4:23: error: declaration does not declare anything [-fpermissive]
    4 | typedef unsigned long long ;
      |                       ^~~~
Language: C++

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

int main() {
  int a b;
  cin>>a>>b;
  cout<<a%b<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'b'
    5 |   int a b;
      |         ^
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b;
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N,K;
  cin>>N>>K;
  if(N%K)cout<<1<<endl;
  else cout<<0<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before '}' token
    7 |   else cout<<0<<endl
      |                     ^
      |                     ;
    8 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const int N = 100001;
typedef unsigned long long ;
int n;
int a[N];
int main() {
    cin >> n >> k;
    cout << n % k << endl;
    return 0;
}

Compiler output:
a.cc:4:23: error: declaration does not declare anything [-fpermissive]
    4 | typedef unsigned long long ;
      |                       ^~~~
a.cc: In function 'int main()':
a.cc:8:17: error: 'k' was not declared in this scope
    8 |     cin >> n >> k;
      |                 ^
Language: C++

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

#define MAX (ll(1e6)+7)
#define MOD (ll(1e9)+7)
#define INF (ll(1e18)+7)

#define elif else if
#define def inline auto

#define for_in(a,b,c) for(ll a=(b);a<(c);++a)
#define repeat(a,b) for(ll a=0;a<(b);++a)
#define repeat_down(a,b) for(ll a=(b);a>=0;--a)

#define array_size(a) ll(sizeof(a)/sizeof(a[0]))

#define def_input(...) ll __VA_ARGS__;input(__VA_ARGS__)
#define if_print(a,b,c) output(a?#b:#c)
#define print(a) output(#a)
#define fout(a) cout<<fixed<<setprecision(10)<<a
#define fillout(a,b,c) cout<<setfill(a)<<setw(b)<<right<<c
#define ios_boost cin.tie(0);ios::sync_with_stdio(false)

#define digit(a) to_string(a).length()
#define lcm(a,b) a*b/gcd(a,b)

char N='\n',S=' ';
const ll primes[15]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47};
ll temp_index;

inline void input(){}
template<class T,class...A>inline void input(T&&t,A&&...a){cin>>t;input(move(a)...);}
template<class T>inline void output(T&t){cout<<t<<N;}
template<class T,class...A>inline void output(T&t,A&...a){cout<<t<<S;output(move(a)...);}
template<class T>istream&operator>>(istream&i,vector<T>&v){for(T&x:v)i>>x;return i;}
template<class T>ostream&operator<<(ostream&o,vector<T>const&v)
{bool d=0;for(T x:v){if(d)o<<S<<x;else{o<<x,d=1;}}o<<N;return o;}

def get_ll(){ll x;input(x);return x;}
def gcd(ll a,ll b){ll c;while(a){c=a;a=b%a;b=c;}return b;}

inline bool is_prime(ll a){
    if(a<48){for_in(i,0,15)if(primes[i]==a)return 1;}
    elif(a<2809)return gcd(614889782588491410,a)==1;
    else {print(Error:Argument>2808);exit(1);}return 0;
}

template<class T>def sum_array(T&a,T&b){
    b[0]=a[0];
    for_in(i,1,array_size(a))b[i]=a[i]+b[i-1];
}

map<string,ll>LIST;
map<ll,string>VLIST;

def val(string a){
    auto IT=LIST.find(a);
    if(IT!=LIST.end()){
        return LIST[a];
    }
    else{
        ll v=LIST.size();
        LIST[a]=v;
        VLIST[v]=a;
        return v;
    }
}

ll a,b,c,d;
int main(){
    ios_boost;
    def_input(n,m);
    if_print(n%m,1,0)
}

//for compilation: g++ -o _ _.cpp -std=c++14 (or 17)
//
//for fastening: g++ -O2 -o _ _.cpp -std=c++14 (or 17)
//for fastening: g++ -O3 -mtune=native -march=native -o _ _.cpp -std=c++14 (or 17)


Compiler output:
a.cc: In function 'int main()':
a.cc:75:1: error: expected ';' before '}' token
   75 | }
      | ^
Language: C++

object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n, k = sc.nextInt
 
    println(
      if(n % k == 0) 0
      else 1
    )
  }
}

Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace::std;
int main(){
int a;
int b;
cin>>a;
cin>>b;
cout<<a%b
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before '}' token
    8 | cout<<a%b
      |          ^
      |          ;
    9 | }
      | ~
Language: C

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

int main() {
  int n, k; scanf("%d%d", &n, &k);
  if (n % k == 0) puts("0");
  else puts("1");
}


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++

#define _CRT_SECURE_NO_WARNINGS

/* include ***********************/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>

/* define *************************/
//for
#define REP(i,n) for(int i=0,i##_len=(int)(n);i<i##_len;i++)
#define REPS(i,n) for(int i=1,i##_len=(int)(n);i<=i##_len;i++)
#define RREP(i,n) for(int i=(int)(n)-1;i>=0;i--)
#define RREPS(i,n) for(int i=(int)(n);i>0;i--)
#define FOR(i,s,n) for(int i=(int)(s),i##_len=(int)(n);i<i##_len;i++)

//printf
#define PRINTD(d) printf("%d\n",(d))
#define PRINTL(d) printf("%lld\n",(d))

//memset
#define m0(s) memset(s,0,sizeof(s))
#define ml(s) memset(s,63,sizeof(s))
#define fill(s,c) memset(s,c,sizeof(s))

#define INF 1e9

typedef long long ll;

int diff[4][2] = {
	{ 0, -1 },
	{ -1, 0 },
	{ 1, 0 },
	{ 0, 1 },
};

int Min(int a, int b) {
	return (a)<(b) ? (a) : (b);
}
ll Max(ll a, ll b) {
	return (a) > (b) ? (a) : (b);
}
void Swap(int *a, int *b) {
	int tmp = *a;
	*a = *b;
	*b = tmp;
}

int main() {
	int n k;
	scanf("%d %d", &n, &k);
	if (n%k == 0) {
		puts("0");
	}
	else {
		puts("1");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:50:15: error: expected initializer before 'k'
   50 |         int n k;
      |               ^
a.cc:51:25: error: 'n' was not declared in this scope; did you mean 'yn'?
   51 |         scanf("%d %d", &n, &k);
      |                         ^
      |                         yn
a.cc:51:29: error: 'k' was not declared in this scope
   51 |         scanf("%d %d", &n, &k);
      |                             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define INF 1000000000000000009
//#define INF 9223372036854775807
typedef long long ll;
#define REP(i,n) for(int i=0;i<(n);++i)
#define OREP(i,n) for(int i=1;i<=(n);++i)
#define RREP(i,n) for(int i=(n)-1;i>=0;--i)
#define rollcall cout<<"I'm Sucu."<<endl;
#define YES(s) s?cout << "YES" << endl:cout << "NO" << endl
#define Yes(s) s?cout << "Yes" << endl:cout << "No" << endl
#define Taka(s) s?cout << "Takahashi" << endl:cout << "Aoki" << endl
#define out(s,t,u) s?cout << t << endl:cout << u << endl
#define int ll
#define Endl endl
//#define P pair<int,int>

signed main(){
    int N,K;
    cin >> N >> K;
    out(N%K==,"0","1");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected primary-expression before '?' token
   14 | #define out(s,t,u) s?cout << t << endl:cout << u << endl
      |                     ^
a.cc:22:5: note: in expansion of macro 'out'
   22 |     out(N%K==,"0","1");
      |     ^~~
Language: C++

using System;
using System.Linq;

namespace abc105_a
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            Console.WriteLine(x[0] % x[1] == 0 ? 0 : 1);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:13:6: error: expected ';' after class definition
   13 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void abc105_a::Program::Main(int*)':
a.cc:10:16: error: structured binding declaration cannot have type 'int'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                ^~
a.cc:10:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:16: error: empty structured binding declaration
a.cc:10:19: error: expected initializer before 'x'
   10 |             int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                   ^
a.cc:11:13: error: 'Console' was not declared in this scope
   11 |             Console.WriteLine(x[0] % x[1] == 0 ? 0 : 1);
      |             ^~~~~~~
a.cc:11:31: error: 'x' was not declared in this scope
   11 |             Console.WriteLine(x[0] % x[1] == 0 ? 0 : 1);
      |                               ^
Language: C++

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



int main() {
  int N,a,b;
  cin >> N >> a >> b;
int toori = 0;
for(int a=0;a<=25;++a){
  for(int b=o;b<=14;++b){
  int tyoudo =a*4+b*7;
  if(tyoudo==N)++toori;
  }
}
cout<<toori<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'o' was not declared in this scope
   11 |   for(int b=o;b<=14;++b){
      |             ^
Language: C++

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



int main() {
  int N,a,b;
  cin >> N >> a >> b;
int toori = 0;
for(int a=0;a<=25;++a){
  for(int b=o;b<=14;++b){
  int tyoudo =a*4+b*7
  }
  if(tyoudo==N)++toori
}
cout<<toori<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'o' was not declared in this scope
   11 |   for(int b=o;b<=14;++b){
      |             ^
a.cc:13:3: error: expected ',' or ';' before '}' token
   13 |   }
      |   ^
a.cc:14:6: error: 'tyoudo' was not declared in this scope
   14 |   if(tyoudo==N)++toori
      |      ^~~~~~
a.cc:14:23: error: expected ';' before '}' token
   14 |   if(tyoudo==N)++toori
      |                       ^
      |                       ;
   15 | }
      | ~
Language: C++

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



int main() {
  int N;
  cin >> N >> a >> b;
int toori = 0;
for(int a=0;a<=25;++a){
  for(int b=o;b<=14;++b){
  int tyoudo =a*4+b*7
  }
  if(tyoudo==N)++toori
}
cout<<toori<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
    8 |   cin >> N >> a >> b;
      |               ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |   cin >> N >> a >> b;
      |                    ^
a.cc:11:13: error: 'o' was not declared in this scope
   11 |   for(int b=o;b<=14;++b){
      |             ^
a.cc:13:3: error: expected ',' or ';' before '}' token
   13 |   }
      |   ^
a.cc:14:6: error: 'tyoudo' was not declared in this scope
   14 |   if(tyoudo==N)++toori
      |      ^~~~~~
a.cc:14:23: error: expected ';' before '}' token
   14 |   if(tyoudo==N)++toori
      |                       ^
      |                       ;
   15 | }
      | ~
Language: C++

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

          int a,b,c=0,i;
          cin>>a;
          b=a;
          if(n<4)
          {
                    cout<<"No";return 0;
          }
         for(i=1;i<100;i++)
         {
                   a-=4;
                   if(a==7 || a==4)
                    c=1;
         }
         for(i=1;i<100;i++)
         {
                 b-=7;
                 if(b==4 ||b==0)
                    c=1;
         }
         if(c==1) cout<<"Yes";
         else cout<<"No";
}


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

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

int main(){
  int N;cin>>N;
  int X=N/4+1;
  bool can=false;
  for(int i=0;i<=X;i++){
    int j=0;
    while(true){
      if(4*i+7*j==N){
        can=true;
        break;
      }
      if(4*i+7*j>N) break;
      j++;
    }
    if(can) break;
  }
  cout<<(can?"Yes":"No")<<endl;
      


Compiler output:
a.cc: In function 'int main()':
a.cc:20:32: error: expected '}' at end of input
   20 |   cout<<(can?"Yes":"No")<<endl;
      |                                ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int N;cin>>N;
  int X=N/4+1;
  bool can=false;
  for(int i=0;i<=X;i++){
    int j=0;
    while(true){
      if(4*i+7*j==N){
        can=true;
        break;
      }
      if(4*i+7*j>N) break;
    }
    if(can) break;
  }
  cout<<(can?"Yes":"No")<<endl;
      

Compiler output:
a.cc: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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: lvalue required as left operand of assignment
   15 |   else if(n%11 = 0)
      |           ~^~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: 'total' was not declared in this scope
   16 |   if (total == N) {
      |       ^~~~~
Language: C++

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

int main(void)
{
	int N, l;
  	l = 0;
  	cin >> N;
  	for(int i = 0; i < 30; i++){
    	for(int j = 0; j < 30 && l = 0; j++){
        if(N == 4 * i + 7 * j){
        	l = 1;
        }
       }
    }
  if(l = 0)
  {cout << "NO" << endl;}
  else{cout << "Yes" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: lvalue required as left operand of assignment
   10 |         for(int j = 0; j < 30 && l = 0; j++){
      |                        ~~~~~~~^~~~
Language: C

#include<stdio.h>
int main()
{
int x,i,sw,k;
  sw=0;
  scanf("%d",&x);
  
  if(x>=28) printf("Yes");
  k=x/7;
  else {
  for(i=0;i<=k;i++){
    if(x%4==0) sw++; 
    x=x-7;
   }
  if(sw==0) printf("No");
    else printf("Yes");
  }


return 0;}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
Language: C

#include<stdio.h>
int main()
{
int x,i,sw,k;
  sw=0;
  scanf("%d",&x);
  
  if(x>=28) printf("Yes");
  k=x/7;
  else {
  for(i=0;i<k;i++){
    if(x%4==0) sw++; 
    x=x-7;
   }
  if(sw==0) printf("No");
    else printf("Yes");
  }


return 0;}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else {
      |   ^~~~
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++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
  int X;
  cin >> X;
  int ans = 0;
  for(int i = 0; i < 200; i++) {
    for(int j = 0; j < 200; j++) { 
      if(4 * i + 7 * j == X) {
        ans++;
        cout << "Yes" << endl;
      }
    }
  }
  if (ans == 0) {
    cout << "No" << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
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++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
int main() {
  int X;
  cin >> X;
  int ans = 0;
  for(int i = 0; i <= 100; i++) {
    for(int j = 0; j <= 100; j++) { 
      if(4 * j + 7 * k == X) {
        ans++;
      }
    }
  }
  cout << ans << endl;
}
    


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

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair

using ll = long long;
using namespace std;

void solve() {
    int n; string ans = "No";
    cin>>n;
    if(n<4) ans = "No";
    if(n>3 and n%4==3) ans = "Yes";
    if(n%7==0 or a%4 ==0) ans = "Yes";
    cout<<ans<<'\n';

}

int main() 
{
    std::ios::sync_with_stdio(false); \
        std::cin.tie(NULL);
    int test=1;
    //cin>>test;
    while (test--) {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:14:18: error: 'a' was not declared in this scope
   14 |     if(n%7==0 or a%4 ==0) ans = "Yes";
      |                  ^
Language: C++

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i=0;i<(n);++i)
#define repi(i,a,b) for(int i=int(a);i<int(b);++i)
#define all(x) (x).begin(), (x).end()
#define PI 3.14159265358979323846264338327950L
using namespace std;
typedef long long ll;
typedef long double ld;
int main() {
    int n;
    cin>>n;
    rep(i,n/4){
        rep(j,n/7){
            if(i*4+j*7==n){
                cout<<"Yes";
                return 0;
        }
    }
    cout<<"No";
}

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

#include<stdio.h>
int main(){
  int n;
  for(scanf("%d",&n);n>=0;n-=4)if(n%7==0){printf("Yes");return 0;}
  pritnf("No");
}


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

#include<stdio.h>
int main(){
  int n;
  for(scanf("%d",&n);n>=0;n-=4)if(n%7==0){pritnf("Yes");return 0;}
  pritnf("No");
}


Compiler output:
main.c: In function 'main':
main.c:4:43: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    4 |   for(scanf("%d",&n);n>=0;n-=4)if(n%7==0){pritnf("Yes");return 0;}
      |                                           ^~~~~~
      |                                           printf
Language: C++

int main(){
    int N;
    bool judge;
    cin>>N;
        for(int a=0;a<=N/4;++a){
            for(int b=0;b<=7;++b){
                    if(4*a+7*b==N){
                         judge=true;
                        break;
                    }

            }
        }
        if(judge==false){cout<<"No";
        }
            else{
                cout<<"Yes";
            }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin>>N;
      |     ^~~
a.cc:14:26: error: 'cout' was not declared in this scope
   14 |         if(judge==false){cout<<"No";
      |                          ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout<<"Yes";
      |                 ^~~~
Language: C++

include<bits/stdc++.h>
using namespace std;
const int N=1e3+10;
int a[N][N];
  int main()
{  
    int t,n,m;
    cin>>n;
    int flag=0;
    for(int i=1;i<=n/4;i++)
    {
        m=n;
        m-=4*i;
        if(!m)flag=1;
        for(int j=1;j<=m/7;j++)
        {
            t=m;
            m-=7*i;
            if(!m)flag=1;
        }
    }
    if(flag)cout<<"Yes";
    else cout<<"No";
    
        
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>n;
      |     ^~~
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |     if(flag)cout<<"Yes";
      |             ^~~~
a.cc:23:10: error: 'cout' was not declared in this scope
   23 |     else cout<<"No";
      |          ^~~~
Language: C++

#include <iostream>

int main() {
  int n;
  cin >> n;
  
  bool ans = false;
  for (int i = 0; i <= n / 4; i++) {
    if ((n - i * 4) % 7 == 0) {
      ans = true;
      break;
    }
  }
  
  if (ans) {
    cout << "Yes\n";
  } else {
    cout << "No\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> 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:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << "Yes\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     cout << "No\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
 int a;
  int count = 0;
  cin >> a;
  for(int i=0;i<26;i++){
   for(int j=0;j<15;j++){
     int total = i*4 + j*7;
     if(total==a){
       count++
       break;
     }
     if(total>101){
      break;
     }
   }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'break'
   11 |        count++
      |               ^
      |               ;
   12 |        break;
      |        ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
 int a;
  int count = 0;
  cin >> a;
  for(int i=0;i<26;i++){
   for(int j=0;j<15;j++){
     int total = i*4 + j*7;
     if(total==a){
       count++;
       break
     }
     if(total>101){
      break
     }
   }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected ';' before '}' token
   12 |        break
      |             ^
      |             ;
   13 |      }
      |      ~       
a.cc:15:12: error: expected ';' before '}' token
   15 |       break
      |            ^
      |            ;
   16 |      }
      |      ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
 int a;
  int count = 0;
  cin >> a;
  for(int i=0;i<26;i++){
   for(int j=0;j<15;j++){
     int total = i*4 + j*7;
     if(total==a){
       count++
       break
     }
     if(total>101){
      break
     }
   }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'break'
   11 |        count++
      |               ^
      |               ;
   12 |        break
      |        ~~~~~   
a.cc:15:12: error: expected ';' before '}' token
   15 |       break
      |            ^
      |            ;
   16 |      }
      |      ~
Language: C++

using namespace std;
using ll = long long;
using P = pair<int,int>;
#define rep(i,n) for (ll i = 0; i < (n); ++i)
#define rep2(i,a,b) for (ll i = (a); i < (b); ++i)
#define INF (1<<18)




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

    bool ans = false;
    rep(i,30)rep(j,20){
        if(4*i+j+7 ==n) ans=true;
    }

    cout<< (ans ? "Yes" : "No") <<endl;
    return 0;
}

Compiler output:
a.cc:3:11: error: 'pair' does not name a type
    3 | using P = pair<int,int>;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'cin' was not declared in this scope
   13 |     cin>>n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout<< (ans ? "Yes" : "No") <<endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:35: error: 'endl' was not declared in this scope
   20 |     cout<< (ans ? "Yes" : "No") <<endl;
      |                                   ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main() {
	int n;
	cin >> n;
	set<int>a;
	for (int i = 0; i <= 25; i++) {
		for (int j = 0; j <= 15; j++)a.insert(i*4+j*7)
	}
	if (a.count(n))cout << "Yes" << endl;
	else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:63: error: expected ';' before '}' token
   10 |                 for (int j = 0; j <= 15; j++)a.insert(i*4+j*7)
      |                                                               ^
      |                                                               ;
   11 |         }
      |         ~
Language: C++

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

int main(){
  int n;
  cin >> n;
  bool res == false;
  
  for(int i = 0; i<=25; i++){
    for(int j = 0; j<15; j++){
      int total = 4*i + 7*j;
      if(total == n){
        res = true;
        break;
      }
    }
    if(res)
      break;
  }
  if(res)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected initializer before '==' token
    7 |   bool res == false;
      |            ^~
a.cc:13:9: error: 'res' was not declared in this scope
   13 |         res = true;
      |         ^~~
a.cc:17:8: error: 'res' was not declared in this scope
   17 |     if(res)
      |        ^~~
a.cc:20:6: error: 'res' was not declared in this scope
   20 |   if(res)
      |      ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected primary-expression before '=' token
   14 |   if(count!==0){
      |             ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: expected ')' before '!' token
   14 |   if(count==0!){
      |     ~        ^
      |              )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: expected ')' before '!' token
   14 |   if(count==0!){ cout<<"Yes"<<endl};
      |     ~        ^
      |              )
a.cc:14:35: error: expected ';' before '}' token
   14 |   if(count==0!){ cout<<"Yes"<<endl};
      |                                   ^
      |                                   ;
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{cout<<"No"<<endl;}
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: expected ';' before '}' token
   14 |   if(count==0){ cout<<"Yes"<<endl};
      |                                  ^
      |                                  ;
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{cout<<"No"<<endl;}
      |   ^~~~
Language: C++

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

int main() {
  int N;
  cin >>N;
  long long i=0,count=0;
  int sum=(N-4*i)%;
  while(N-4*i>0){
    if(sum==0){
     cout<<"Yes"<<endl;
     count++;
      break;
    }
    i++;
  }     
  if (count==0){
  cout<<"No"<<endl;
  }
}


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

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

int main() {
  int N;
  cin >>N;
  int i=0,count=0;
  int sum=(N-4*i)%;
  while(N-4*i>0){
    if(sum==0){
     cout<<"Yes"<<endl;
     i++;
     count++;
    }
  }     
  if (count==0){
  cout<<"No"<<endl;
  }
}

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

#include<iostream>

using namespace std;

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

    int total=0;
    int res=0;
    for(int i=0;i=<100;i++){
        for(int j=0;j=<100;j++){
            total=4*j+7*i;
            if(total==N){
                ++res;
                break;
            }
        }
    }

    if(res>0){
        cout << 'Yes' << endl;
    }else{
        cout << 'No' << endl;
    }
}

Compiler output:
a.cc:22:17: warning: multi-character character constant [-Wmultichar]
   22 |         cout << 'Yes' << endl;
      |                 ^~~~~
a.cc:24:17: warning: multi-character character constant [-Wmultichar]
   24 |         cout << 'No' << endl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before '<' token
   11 |     for(int i=0;i=<100;i++){
      |                   ^
a.cc:12:23: error: expected primary-expression before '<' token
   12 |         for(int j=0;j=<100;j++){
      |                       ^
Language: C++

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

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

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

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

int main(){
  int N,A,count=0;
  cin >> N;
  A=N/4,B=N/7;
  for(int i=0;i<A;i++){
    for(int j=0;j<A;j++){
      if(4*A+7*B==N){
        bool a=true;
        break;
      }
    }
  }
  if(a){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'B' was not declared in this scope
    7 |   A=N/4,B=N/7;
      |         ^
a.cc:16:6: error: 'a' was not declared in this scope
   16 |   if(a){
      |      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected ';' before ':' token
   14 |     cout << "No" << endl:
      |                         ^
      |                         ;
Language: C++

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

const int Nmax = 100;
const int cake = 4;
const int donut = 7;

int main(){

  int N;
  cin >> N;

bool flag = false;

  for(int i = 0; i < Nmax/cake){
    for(int j = 0; j < Nmax/donut){
        if(cake * i + donut * j == N) flag = true;
    }
  }

  if(flag == true) cout << "Yes";
  else cout << "No";


  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected ';' before ')' token
   15 |   for(int i = 0; i < Nmax/cake){
      |                               ^
      |                               ;
a.cc:16:34: error: expected ';' before ')' token
   16 |     for(int j = 0; j < Nmax/donut){
      |                                  ^
      |                                  ;
Language: C++

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

int main(){
  int N;cin>>N;
  bool ans=(N%4==0);
  if ((N%4==1&&N>20)||(N%4==2&&N>13)||(N%4==3&&N>6)){
    ans==1;
  }
  cout<<ans?"Yes":"No";<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected primary-expression before '<<' token
   10 |   cout<<ans?"Yes":"No";<<endl;
      |                        ^~
Language: C++

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

int main(){
  int N;cin>>N;
  bool ans=(N%4==0);
  if ((N%4==1&&N>20)||(N%4==2&&N>13)||(N%4==3&&N>6)){
    ans==1;
  }
  cout<<ans?"Yes":"No"<<endl;
}

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

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

int main(){
  int n;
  cin >> n;
  int total = 0;
  bool res = false;
  
  for(int i = 0; total<n; i++){
    for(int j = 0; total<n; j++){
      total = 4*i + 7*j;
      if(total == n){
        bool res = ture;
        break;
      }
    }
    if(res)
      break;
  }
  
  if(res)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'ture' was not declared in this scope
   14 |         bool res = ture;
      |                    ^~~~
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;

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected primary-expression before '||' token
    9 |      (N % 7) % 4 == 0) || (N % 4) % 7 == 0)cout << "Yes" << endl;
      |                        ^~
Language: C++

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

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

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

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

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

public class G {

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

int main(){
    int n;
    cin>>n;
    if(n % 4 == 0){
        cout<<"Yes"<<endl;
        return 0;
    }
    else if(n % 7 == 0){
        cout<<"Yes"<<endl;
        return 0;
    }
    else if(n % 11 == 0){
        cout<<"Yes"<<endl;
        return 0;
    }
    else{
        int temp = n;
        while(temp >= 4){
            temp -= 4;
            if(temp % 7 == 0){
                cout<<"Yes"<<endl;
                return 0;
            }
        }
        while(n >= 7){
            n -= 7;
            if(n % 4 == 0){
                cout<<"Yes"<<endl;
                return 0;
            }
        }
    }

    cout<<"No"<<endl;

}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'public'
    1 | public class G {
      | ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int a;
    scanf("%d",&a);
    int b = a/2;

    if(a<4)
    {
        printf("No");
    }
    else if(a==11||b=11)
    {
        printf("Yes");
    }
    else if(a%4==0 || a%7==0)
    {
        printf("Yes");
    }
    else printf("No")
    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:21: error: lvalue required as left operand of assignment
   12 |     else if(a==11||b=11)
      |                     ^
main.c:20:22: error: expected ';' before 'return'
   20 |     else printf("No")
      |                      ^
      |                      ;
   21 |     return 0;
      |     ~~~~~~
Language: Java


package game;

import java.util.Scanner;


public class Game {

  
    public static void main(String[] args) {
        int a;
       Scanner sc = new Scanner(System.in);
       a= sc.nextInt();
       if(a<4)
       {
           System.out.print("No");
       }
       else if(a%4==0 || a%7==0)
       {
           System.out.print("Yes");
       }
       else if(4+7==a)
       {
            System.out.print("Yes");
                    
       }
       
       else System.out.print("No");
    }
    
}


Compiler output:
Main.java:7: error: class Game is public, should be declared in a file named Game.java
public class Game {
       ^
1 error
Language: Java


package pkg4.pkg7.game;

import java.util.Scanner;


public class Game {

   
    public static void main(String[] args) {
       int a;
       Scanner sc = new Scanner(System.in);
       a= sc.nextInt();
       if(a<4)
       {
           System.out.print("No");
       }
       else if(a%4==0 || a%7==0)
       {
           System.out.print("Yes");
       }
       else if(4+7==a)
       {
            System.out.print("Yes");
                    
       }
       
       else System.out.print("No");
    }
    
}


Compiler output:
Main.java:7: error: class Game is public, should be declared in a file named Game.java
public class Game {
       ^
1 error
Language: Java

public class Game {

   
    public static void main(String[] args) {
       int a;
       Scanner sc = new Scanner(System.in);
       a= sc.nextInt();
       if(a<4)
       {
           System.out.print("No");
       }
       else if(a%4==0 || a%7==0)
       {
           System.out.print("Yes");
       }
       else if(4+7==a)
       {
            System.out.print("Yes");
                    
       }
       
       else System.out.print("No");
    }
    
}

Compiler output:
Main.java:1: error: class Game is public, should be declared in a file named Game.java
public class Game {
       ^
Main.java:6: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
       ^
  symbol:   class Scanner
  location: class Game
Main.java:6: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Game
3 errors
Language: Java


package pkg4.pkg7.game;

import java.util.Scanner;


public class Game {

   
    public static void main(String[] args) {
       int a;
       Scanner sc = new Scanner(System.in);
       a= sc.nextInt();
       if(a<4)
       {
           System.out.print("No");
       }
       else if(a%4==0 || a%7==0)
       {
           System.out.print("Yes");
       }
       else if(4+7==a)
       {
            System.out.print("Yes");
                    
       }
       
       else System.out.print("No");
    }
    
}

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

#include <iostream>
using namespace std;
 
int main() {
	int n;
         cin >> n; 
           bool OK = false;
	for (int j = 0; j <= n / 4; j++) {
		for (int k = 0; k <= n / 7; k++) {
			if (4 * j + 7 * k == n) 
                                OK = true;
		}
	}
	if (OK == false) 
          cout << "No" <<"\n|;
	else
              cout << "Yes" << "\n";
	return 0;
}

Compiler output:
a.cc:15:26: warning: missing terminating " character
   15 |           cout << "No" <<"\n|;
      |                          ^
a.cc:15:26: error: missing terminating " character
   15 |           cout << "No" <<"\n|;
      |                          ^~~~~
a.cc: In function 'int main()':
a.cc:16:9: error: expected primary-expression before 'else'
   16 |         else
      |         ^~~~
Language: Java

import java.util.*;
public class pg {
      static Scanner sc=new Scanner(System.in);
      public static void main(String[] args) {
            int x=sc.nextInt();
            if(x%4==0||x%7==0){
                  System.out.println("Yes");
                  return;
            }
            else{
                  for(int i=4; i<=x; i+=4){
                        for(int j=i+7; j<=x; j+=7){
                              
                              if(j==x){
                                    System.out.println("Yes");
                                    return; 
                              }
                        }
                  }
            }
            System.out.println("No");
      }
}


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

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

int main()
{
	int N, i,j;
	scanf("%d", &N);

	for(i = 0; i < N; i++){
		for(j = 0; j < N; j++){
			if(i * 4 + j * 7 == N){
				printf("Yes\n");
				return 0;
			}
			
			
		}
		
		
	}
	printf("No\n");
	
	
	return 0;
}


Compiler output:
main.c:27:5: error: redefinition of 'main'
   27 | int main()
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
Language: C

#include<stdio.h>

main()
{
    int n,flag=0;
    scanf("%d",&n);
    if(n%4==0)
        printf("Yes");
    else if(n%7==0)
        printf("Yes");
    else if(n<4)
        printf("No");

    else
    {
        for(i=1;i<10;i++)
        {
            if((4*i+7*i)<=n)
            {
                flag=1;
                break;
            }
        }
        if(flag)
            printf("yes");
        
    }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:16:13: error: 'i' undeclared (first use in this function)
   16 |         for(i=1;i<10;i++)
      |             ^
main.c:16:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main()
{
    int n,flag=0;
    scanf("%d",&n);
    if(n%4==0)
        printf("Yes");
    else if(n%7==0)
        printf("Yes");
    else if(n<4)
        printf("No");

    else
    {
        for(i=1;i<10;i++)
        {
            if((4*i+7*i)==n)
            {
                flag=1;
                break;
            }
        }
        if(flag)
            printf("yes");
        else
          printf("No");
    }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:16:13: error: 'i' undeclared (first use in this function)
   16 |         for(i=1;i<10;i++)
      |             ^
main.c:16:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

main()
{
    int n,flag=0;
    scanf("%d",&n);
    if(n%4==0)
        printf("Yes");
    else if(n%7==0)
        printf("Yes");

    else
    {
        for(i=1;i<10;i++)
        {
            if((4*i+7*i)==n)
            {
                flag=1;
                break;
            }
        }
        if(flag)
            printf("yes");
        else
          printf("No");
    }
}


Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:14:13: error: 'i' undeclared (first use in this function)
   14 |         for(i=1;i<10;i++)
      |             ^
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main (){
    int n, cake = 4, dognuts = 7, i, j;
    cin>>n;
    if(n<7){
        cout<<"No";
        break;
    }
    if(n%cake==0||n%dognuts==0){
        cout<<"Yes";
        break;
    }
    i = n%cake; j = n%dognuts;
    if(i==0||j==0){
        cout<<"Yes";
        break;
    }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: break statement not within loop or switch
    8 |         break;
      |         ^~~~~
a.cc:12:9: error: break statement not within loop or switch
   12 |         break;
      |         ^~~~~
a.cc:17:9: error: break statement not within loop or switch
   17 |         break;
      |         ^~~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main (){
    int n, cake = 4, dognuts = 7, i, j;
    cin>>n;
    if(n<7){
        cout<<"No";
        break;
    }
    if(n%cake==0||n%dognuts==0){
        cout<<"Yes";
        break;
    }
    i = n%cake; j = n%dognuts;
    if(i==0||j==0){
        cout<<"Yes";
        break;
    }


}

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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,c=0;
  cin>>N;
  for(int i=0;i<=N;i++){
    for(int j=0;j<=N;j++){
      int K;
      K=4*i+7*j;
      if(N==K){
        c++;
      }
    }
  }
  if(c>0){
    cout<<"Yes";
  }
  else{
    cout"No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ';' before string constant
   20 |     cout"No";
      |         ^~~~
      |         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=0;i<=n/4;i++){
      |                  ^
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;
  bool a=0;
  
  rep(i,30){
    rep(j,30){
      if(i*4 + j*7 == n){
        a=1;
      }
    }
  }
  if(a){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }

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