criyle/codenet-compile-errors huggingface dataset:
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:18: error: lvalue required as left operand of assignment
   12 |        if (i * 4 + j * 7 = N ) {
      |            ~~~~~~^~~~~~~
a.cc:14:10: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |          return;
      |          ^~~~~~
a.cc:19:4: 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;
       }
       else {
         cerr << "No" << endl;
         return;
       }
     }
   }
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: lvalue required as left operand of assignment
   12 |        if (i * 4 + j * 7 = N ) {
      |            ~~~~~~^~~~~~~
a.cc:14:10: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |          return;
      |          ^~~~~~
a.cc:18:10: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |          return;
      |          ^~~~~~
a.cc: At global scope:
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
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;
       }
       else {
         cerr << "No" << endl;
         return;
       }
     }
   }
 }

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

read n;
f=0;
for i in `seq $[n/4]`;do
	f=$[f+(i*4<=n&&(n-i*4)%7==0)];
done;
[ $f -eq 0 ]&&echo No||echo Yes


Compiler output:
main.c:1:1: error: unknown type name 'read'
    1 | read n;
      | ^~~~
main.c:2:1: warning: data definition has no type or storage class
    2 | f=0;
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
main.c:3:1: error: expected identifier or '(' before 'for'
    3 | for i in `seq $[n/4]`;do
      | ^~~
main.c:3:10: error: stray '`' in program
    3 | for i in `seq $[n/4]`;do
      |          ^
main.c:3:21: error: stray '`' in program
    3 | for i in `seq $[n/4]`;do
      |                     ^
main.c:3:23: error: expected identifier or '(' before 'do'
    3 | for i in `seq $[n/4]`;do
      |                       ^~
main.c:5:1: warning: data definition has no type or storage class
    5 | done;
      | ^~~~
main.c:5:1: error: type defaults to 'int' in declaration of 'done' [-Wimplicit-int]
main.c:6:1: error: expected identifier or '(' before '[' token
    6 | [ $f -eq 0 ]&&echo No||echo Yes
      | ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define r(i,a,n) for(int i=a;i<(int)(n);i++)
typedef long long ll;
int main(){
    int N;
    cin>>N;
    int MAX_C=100/4;
    int MAX_D=100/7;
    r(i,0,MAX_C+1){
        r(j,0,MAX_D+1){
            if(4*i+7*j==N){
                cout<<"Yes"<<endl;
                break;
            }
        }
    }
    if(i=MAX_C+1)cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'i' was not declared in this scope
   18 |     if(i=MAX_C+1)cout<<"No"<<endl;
      |        ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define r(i,a,n) for(int i=a;i<(int);(n)i++)
typedef long long ll;
int main(){
    int N;
    cin>>N;
    int MAX_C=100/4;
    int MAX_D=100/7;
    r(i,0,MAX_C+1){
        r(j,0,MAX_D+1){
            if(4*i+7*j==N){
                cout<<"Yes"<<endl;
                break;
            }
        }
    }
    if(i=MAX_C+1)cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:33: error: expected primary-expression before 'int'
    3 | #define r(i,a,n) for(int i=a;i<(int);(n)i++)
      |                                 ^~~
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:3:33: error: expected ')' before 'int'
    3 | #define r(i,a,n) for(int i=a;i<(int);(n)i++)
      |                                ~^~~
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:10:7: error: expected ')' before 'i'
   10 |     r(i,0,MAX_C+1){
      |       ^
a.cc:3:41: note: in definition of macro 'r'
    3 | #define r(i,a,n) for(int i=a;i<(int);(n)i++)
      |                                         ^
a.cc:3:21: note: to match this '('
    3 | #define r(i,a,n) for(int i=a;i<(int);(n)i++)
      |                     ^
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:3:44: error: expected ';' before ')' token
    3 | #define r(i,a,n) for(int i=a;i<(int);(n)i++)
      |                                            ^
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:18:8: error: 'i' was not declared in this scope
   18 |     if(i=MAX_C+1)cout<<"No"<<endl;
      |        ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define r(i,a,n) for(int i=a,i<(int)(n)i++)
typedef long long ll;
int main(){
    int N;
    cin>>N;
    int MAX_C=100/4;
    int MAX_D=100/7;
    r(i,0,MAX_C+1){
        r(j,0,MAX_D+1){
            if(4*i+7*j==N){
                cout<<"Yes"<<endl;
                break;
            }
        }
    }
    if(i=MAX_C+1)cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:31: error: expected ';' before '<' token
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                               ^
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:3:31: error: expected primary-expression before '<' token
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                               ^
a.cc:10:5: note: in expansion of macro 'r'
   10 |     r(i,0,MAX_C+1){
      |     ^
a.cc:10:7: error: expected ';' before 'i'
   10 |     r(i,0,MAX_C+1){
      |       ^
a.cc:3:40: note: in definition of macro 'r'
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                                        ^
a.cc:3:31: error: expected ';' before '<' token
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                               ^
a.cc:11:9: note: in expansion of macro 'r'
   11 |         r(j,0,MAX_D+1){
      |         ^
a.cc:3:31: error: expected primary-expression before '<' token
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                               ^
a.cc:11:9: note: in expansion of macro 'r'
   11 |         r(j,0,MAX_D+1){
      |         ^
a.cc:11:11: error: expected ';' before 'j'
   11 |         r(j,0,MAX_D+1){
      |           ^
a.cc:3:40: note: in definition of macro 'r'
    3 | #define r(i,a,n) for(int i=a,i<(int)(n)i++)
      |                                        ^
a.cc:18:8: error: 'i' was not declared in this scope
   18 |     if(i=MAX_C+1)cout<<"No"<<endl;
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before 'cin'
    7 |   0<n && n<101
      |               ^
      |               ;
    8 |   cin >> n;
      |   ~~~
Language: C++

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

Compiler output:
a.cc:7:6: error: extended character 　 is not valid in an identifier
    7 |   1<=n　&& n<=100
      |      ^
a.cc: In function 'int main()':
a.cc:7:6: error: 'n\U00003000' was not declared in this scope
    7 |   1<=n　&& n<=100
      |      ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'cin'
    7 |   1<=n<=100
      |            ^
      |            ;
    8 |   cin >> n;
      |   ~~~
Language: C++

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

int main(void){
    int x[100] = {1,2,3,5,6,9,10,13,17};
    int a;
    cin >> a;
    for(int i=0;i<x.size();i++){
        if(a==x[i]){
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: request for member 'size' in 'x', which is of non-class type 'int [100]'
    8 |     for(int i=0;i<x.size();i++){
      |                     ^~~~
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:15:33: error: return-statement with no value, in function returning 'int' [-fpermissive]
   15 |                                 return;
      |                                 ^~~~~~
a.cc:20:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |         return;
      |         ^~~~~~
Language: C++

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

Compiler output:
a.cc:3:6: error: expected constructor, destructor, or type conversion before '(' token
    3 | scanf("%d",&n);
      |      ^
a.cc:4:1: error: expected unqualified-id before 'while'
    4 | while(n>=0){
      | ^~~~~
a.cc:11:7: error: expected constructor, destructor, or type conversion before '(' token
   11 | printf("No\n");
      |       ^
a.cc:12:1: error: expected unqualified-id before 'return'
   12 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include <stdio.h>
int main(){
	int a;

	scanf("%d",&a);
	
	for(int i=0;i<=25;i++){
		for(int j=0;j<=14;j++){
			if(i*4+j*7==a && ){
				printf("Yes");
				return 0;
			}
		}
	}
	printf("No");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:42: error: expected expression before ')' token
    9 |                         if(i*4+j*7==a && ){
      |                                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n,m,k,a;
	scanf("%lld",&n);
	if(n%4==0||n%7==0||n%11==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%7;
	a=m%4;
	if(a==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%4;
	a=m%7;
	if(a==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%11;
	if(m%4==0||m%7==0)
	{
		printf("Yes");
		return 0;
	}	
	printf("No");
	return 0;
}#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long n,m,k,a;
	scanf("%lld",&n);
	if(n%4==0||n%7==0||n%11==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%7;
	a=m%4;
	if(a==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%4;
	a=m%7;
	if(a==0)
	{
		printf("Yes");
		return 0;
	}
	m=n%11;
	if(m%4==0||m%7==0)
	{
		printf("Yes");
		return 0;
	}	
	printf("No");
	return 0;
}

Compiler output:
a.cc:34:2: error: stray '#' in program
   34 | }#include<bits/stdc++.h>
      |  ^
a.cc:34:3: error: 'include' does not name a type
   34 | }#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc:36:5: error: redefinition of 'int main()'
   36 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int input = sc.nextInt();
    boolean isEqual = false;
    if (input < 4 || input > 100) {
      isEqual = false;
    } else if (input % 4 == 0 || input % 4 == 3 || input % 7 == 0 || input % 7 == 4) {
      isEqual = true;
    } else {
      // 4 base
      int inputCopy1 = input;
      while (inputCopy1 > 0 && !isEqual) {
        if (inputCopy1 % 7 != 0) {inputCopy1 -= 4;} else {isEqual = true;}
      }
      // 7 base
      int inputCopy2 = input;
      while (input > 0 && !isEqual) {
        if (inputCopy % 4 != 0) {inputCopy -= 7;} else {isEqual = true;}
      }
    }
    System.out.println(isEqual ? "Yes" : "No");
  }
}

Compiler output:
Main.java:21: error: cannot find symbol
        if (inputCopy % 4 != 0) {inputCopy -= 7;} else {isEqual = true;}
            ^
  symbol:   variable inputCopy
  location: class Main
Main.java:21: error: cannot find symbol
        if (inputCopy % 4 != 0) {inputCopy -= 7;} else {isEqual = true;}
                                 ^
  symbol:   variable inputCopy
  location: class Main
2 errors
Language: C++

#include <iostream>
using namespaces std;
int main(){
int N,flag= 0;
cin >> N
for (int i= 0;i<25;i++){
if ((N-4*i)%4 == 0 or (N-4*i)%7 == 0){
 flag ++;
}
}
if (flag != 0){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: 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:6:15: error: 'i' was not declared in this scope
    6 | for (int i= 0;i<25;i++){
      |               ^
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout << "Yes" << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 | cout << "Yes" << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 | cout << "No" << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 | cout << "No" << endl;
      |                 ^~~~
      |                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespaces std;
int main(){
int N,flag= 0;
cin >> N
for (int i= 0;i<25;i++){
if ((N-4*i)/4 == 0 or (N-4*i)/7 == 0){

}

}

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: 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:6:15: error: 'i' was not declared in this scope
    6 | for (int i= 0;i<25;i++){
      |               ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
using namespace std;
typedef long long ll;
ll MOD = 1e9+7;
bool dp[101];

int main()
{
	fill(dp,dp+101,false);
	dp[0]=true;
	for(int i=0;i<100;i++)
	{
		for(int j=100;j>-1;j--)
		{
			if(dp[j])
			{
				if(j+4<101)
					dp[j+4]=true;
				if(j+7<101)
					dp[j+7]=true;
			}
		}
	}
	int n;
	cin>>n;
	if(dp[n])
		cout<"Yes"<<endl;
	else
		cout<<"No"<<endl;
	return 0;
}

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

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <utility>
using namespace std;
typedef long long ll;
ll MOD = 1e9+7;
bool dp[101];

int main()
{
	fill(dp,dp+101,false);
	dp[0]=true;
	for(int i=0;i<100;i++)
	{
		for(int j=100;j>-1;j--)
		{
			if(dp[j])
			{
				dp[j+4]=true;
				dp[j+7]=true;
			}
		}
	}
	int n;
	cin>>n;
	if(dp[n])
		cout<"Yes"<<endl;
	else
		cout<<"No"<<endl;
	return 0;
}

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

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


Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'J' undeclared (first use in this function)
    6 |     for(j=0;J<=14;j++){
      |             ^
main.c:6: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 A, B, C, D;
  cin >> A;
for (int i = 0; D <= A; i++) {
B  = 4 * i; 
C = 7 * i;
D = B + C;
if(D == A){
cout << "Yes" << endl; 
break;
}else{
if(D > A){
D = A;
break;
}
}
D = 0;
for (int i = 0; D <= A; i++) {  
B  = 4 * i; 
D = B;
if(D == A){
cout << "Yes" << endl; 
break;
}else{
if(D > A){
D = A;
break;
}  
}
  for (int i = 0; D <= A; i++) {  
C = 7 * i;
D = C;
if(D == A){
cout << "Yes" << endl; 
break;
}else{
if(D > A){
cout << "No" << endl; 
break;
}  
}


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

{
    int x,num,t;
    int i = 1;
    cin >> x;
    num = x;
    if(x < 4)
    {
        cout << "No" << endl;
    }
    else if(x % 4 == 0 || x % 7 == 0)
    {
        cout << "Yes" <<endl;
    }
    else if(x % 4 != 0 || x % 7 != 0)
    {
        if(4 < x % 7)
        {
             while(num >= 0)
             {
                num = num - 4;
                 t = i;
                 while(t >= 0)
                 {
                     if((num + (7 * t)) == x)
                     {
                         cout << "Yes" << endl;
                         exit(0);
                     }
                     t--;
                 }
                 i++;
             }
             if(num <= 0)
             {
                 cout << "No" << endl;
             }
        }
        else
        {

             while(num >= 0)
             {
                num = num - 7;
                 t = i;
                 while(t >= 0)
                 {
                     if((num + (4 * t)) == x)
                     {
                         cout << "Yes" << endl;
                         exit(0);
                     }
                     t--;
                 }
                 i++;
             }
             if(num <= 0)
             {
                 cout << "No" << endl;
             }
        }
    }
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

#include <iostream>
using namespace std;
int N;
int main(){
  cin >> N;
  bool judge = false;
  for(int i=0;i<=25;i++){
	if((N-4*i)%7==0 && N>=4*i) judge = true;
  }
  cout << (judge? "Yes":"No" << endl;
}

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before 'i'
    8 |   for(int i=0; i<=N/4 i++){
      |                      ^~
      |                      ;
a.cc:9:15: error: lvalue required as left operand of assignment
    9 |     if((N-4*i)%7=0){
      |        ~~~~~~~^~
Language: C++

#include<iostream>
using namespace std;

bool judge(int s) {
	int tmp,sum=s;
	for (int i = 0;sum>0;i++) {
		sum = s-4*i;
		if (sum == 0) 
			return true;
		for (int j = 1,tmp=sum;tmp > 0;j++) {
			tmp -= 7*j;
			if (tmp == 0) {
				return true;
			}
		}
	}
	return false;
}
int main() {
	int N;
	cin >> N;

	cout<<(judge(i) ? "Yes" : "No") << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:22: error: 'i' was not declared in this scope
   23 |         cout<<(judge(i) ? "Yes" : "No") << endl;
      |                      ^
Language: C

#include <stdio.h>

int main()
{
	int M = 0, N = 0, cake = 4, donuts = 7;
	scanf("%d", &N);

	M = N % cake;

	if (M % donuts == 0)
	{
		printf("Yes\n");
	}
	else 
	{
		prntf("No\n");
	}

	return 0;
}

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

#include<iostream>
using namespace std;

bool judge(int s) {
	int tmp = s;
	for (int i = 0;s>0;i++) {
		for (int j = 1,tmp=s;tmp > 0;j++) {
			tmp -= 7*j;
			if (tmp == 0) {
				return true;
			}
			s -= 4;
			if (s == 0)
				return true;
		}
	}
	return false;
}
int main() {
	int N;
	cin >> N;

	cout<< i << (judge(N) ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:16: error: 'i' was not declared in this scope
   23 |         cout<< i << (judge(N) ? "Yes" : "No") << endl;
      |                ^
Language: Java

import java.io.*;
import java.util.*;

public class template
{
	public static void main(String[] ar)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(System.out);
		int n = Integer.parseInt(br.readLine());
		if(n%4==0 || n%7==0 || n%11==0 || n%15==0 ||n%18==0||n%19==0||n%25==0||n%23==0||n%32==0||n%27==0||n%39==0||n%31==0||n%46==0||n%35==0||n%53==0||n%39==0||n%60==0||n%43==0||n%67==0||n%47==0||n%74==0||n%51==0||n%81==0||n%55==0||n%91==0||n%59==0||n%95==0||n%63==0||n%67==0||n%71==0||n%75==0||n%79==0||n%83==0||n%87==0||n%91==0||n%95==0||n%99==0)
			out.println("Yes");
		else
			out.println("No");
		out.flush();		
	}
}
/**

**/

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'in7' was not declared in this scope; did you mean 'int'?
    7 |         else if(n>4&&in7) cout<<"No";
      |                      ^~~
      |                      int
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'i' was not declared in this scope
    6 |         if(i<4) cout<<"No";
      |            ^
Language: C++

#include<iostream>

using namespace std;

int main()
{
 int N;
  cin>>N;
  int temp=N%11;

  else if(N%7==0||N%4==0)
    cout<<"Yes"<<endl;
    
  else if(temp%4==0||temp%7==0)
      cout<<"Yes"<<endl;
      
  else
    cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if(N%7==0||N%4==0)
      |   ^~~~
Language: C

#include <stdio.h>
#define cake 4
#define dount 7

int main(){
    
    int N;

    int cake_num, dount_num;

    scanf("%d", &N);

    for(int i = 0; i <= N/cake ; i++){
        
        if ( (N - i * cake) % dount == 0 ) {
            printf("Yes")
            return 0;
        }s
         
    } 
    printf("No")
    return 1;
}


Compiler output:
main.c: In function 'main':
main.c:16:26: error: expected ';' before 'return'
   16 |             printf("Yes")
      |                          ^
      |                          ;
   17 |             return 0;
      |             ~~~~~~        
main.c:18:10: error: 's' undeclared (first use in this function)
   18 |         }s
      |          ^
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: error: expected ';' before '}' token
   18 |         }s
      |           ^
      |           ;
   19 | 
   20 |     }
      |     ~      
main.c:21:17: error: expected ';' before 'return'
   21 |     printf("No")
      |                 ^
      |                 ;
   22 |     return 1;
      |     ~~~~~~
Language: C

#include <stdio.h>
#define cake 4
#define dount 7

int main(){
    
    int N;

    int cake_num, dount_num;

    scanf("%d", &N);

    for(int i = 0; i <= N/cake ; i++){
        
        if ( (N - i * cake) % dount == 0 ) {
            return 0;
        }s
         
    } 
    return 1;
}



Compiler output:
main.c: In function 'main':
main.c:17:10: error: 's' undeclared (first use in this function)
   17 |         }s
      |          ^
main.c:17:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:11: error: expected ';' before '}' token
   17 |         }s
      |           ^
      |           ;
   18 | 
   19 |     }
      |     ~
Language: C

#include <stdio.h>
#define cake 4
#define donut 7

int main(){
    
    int N;

    int cake_num, donut_num;

    scanf("%d", &N);

    for(int i = 0; i <= N/cake ; i++){
        
        if ( (N - i * cake) % dount == 0 ) {
            return 0;
        }s
         
    } 
    return 1;
}

Compiler output:
main.c: In function 'main':
main.c:15:31: error: 'dount' undeclared (first use in this function); did you mean 'donut'?
   15 |         if ( (N - i * cake) % dount == 0 ) {
      |                               ^~~~~
      |                               donut
main.c:15:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:10: error: 's' undeclared (first use in this function)
   17 |         }s
      |          ^
main.c:17:11: error: expected ';' before '}' token
   17 |         }s
      |           ^
      |           ;
   18 | 
   19 |     }
      |     ~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
#include<float.h>
using namespace std;


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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:127: error: expected ')' before 'n'
   12 |     if (n % 28 == 1 || n % 28 == 2 || n % 28 == 3 || n % 28 == 5 || n % 28 == 6 || n % 28 == 9 || n % 28 == 10 || n % 28 == 17 n % 28 == 13) {
      |        ~                                                                                                                      ^~
      |                                                                                                                               )
Language: C

#include<stdio.h>

int main(){
	
	int n;
	fscanf(stdin,"%d, &n);
	if((n%4==2 && n<14)||(n%4==1 && n<21)||(n&4==3 && n<7)){
		pritf("No\n");
	}else{
		pritf("Yes\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: warning: missing terminating " character
    6 |         fscanf(stdin,"%d, &n);
      |                      ^
main.c:6:22: error: missing terminating " character
    6 |         fscanf(stdin,"%d, &n);
      |                      ^~~~~~~~~
main.c:7:9: error: expected expression before 'if'
    7 |         if((n%4==2 && n<14)||(n%4==1 && n<21)||(n&4==3 && n<7)){
      |         ^~
main.c:12:18: error: expected ';' before '}' token
   12 |         return 0;
      |                  ^
      |                  ;
   13 | }
      | ~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<cstdlib>
#include<float.h>
using namespace std;


int main() {
    int n;
    cin >> n ;
    if (n % 28 == 1 || n % 28 == 2 || n % 28 == 3 || n % 28 == 15 || n % 28 == 6 || n % 28 == 9 || n % 28 == 10 || n % 28 == 17 n % 28 == 13) {
        cout << "No" << endl;
   }
    else cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:128: error: expected ')' before 'n'
   12 |     if (n % 28 == 1 || n % 28 == 2 || n % 28 == 3 || n % 28 == 15 || n % 28 == 6 || n % 28 == 9 || n % 28 == 10 || n % 28 == 17 n % 28 == 13) {
      |        ~                                                                                                                       ^~
      |                                                                                                                                )
Language: C++

#include <iostream>
using namespace std;
bool f(int n) {
  if (n == 0) {
    return true;
  }
  if (n < 0) {
    return false;
  }
  return (n - 4) || return (n - 7);
}

int main(int argc, char** argv) {
  int n;
  cin >> n;

if (n < 4 || ((n % 4) == 0) || ((n % 7) == 0)) {
  cout << "yes";
  return 0;
}

cout << f(n) ? "Yes" : "No";
}


Compiler output:
a.cc: In function 'bool f(int)':
a.cc:10:21: error: expected primary-expression before 'return'
   10 |   return (n - 4) || return (n - 7);
      |                     ^~~~~~
a.cc:10:20: error: expected ';' before 'return'
   10 |   return (n - 4) || return (n - 7);
      |                    ^~~~~~~
      |                    ;
Language: C

#include <stdio.h>

#define CAKE 4
#define DONUT 7
int main(){
  int n;

  scanf( "%d", &n );

  if ( n < CAKE ){
    puts( "No" ); //printf( "%d\n", n );
    return 0;
  }else if ( n % CAKE == 0 ){
    puts( "Yes" ); //printf( "1:%d\n", n % CAKE );
    return 0;
  }else if ( n % DONUT == 0 ){
    puts( "Yes" ); //printf( "2:%d\n", n % DONUT );
    return 0;
  }else if ( ( n % DONUT ) % CAKE == 0 ) {
    puts( "Yes" ); //printf( "3:%d\n", ( n % DONUT ) % CAKE );
    return 0;
  // }else if ( ( n % CAKE ) % DONUT == 0 ) {
  //   puts( "Yes" ); printf( "4:%d\n", ( n % CAKE ) % DONUT );
  //   return 0;
  }else {
    int n_temp = n - CAKE;
    while( n_temp < 0 ){
      if ( n_temp % DONUT == 0 ){
        puts( "Yes" ); //printf( "3:%d\n", ( n % DONUT ) % CAKE );
        return 0;
      }
      n_temp -= CAKE;
    }
    int n_temp = n - DONUT;
    while( n_temp < 0 ){
      if ( n_temp % CAKE == 0 ){
        puts( "Yes" ); //printf( "3:%d\n", ( n % DONUT ) % CAKE );
        return 0;
      }
      n_temp -= CAKE;
    }
  }

  puts( "No" );
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:34:9: error: redefinition of 'n_temp'
   34 |     int n_temp = n - DONUT;
      |         ^~~~~~
main.c:26:9: note: previous definition of 'n_temp' with type 'int'
   26 |     int n_temp = n - CAKE;
      |         ^~~~~~
Language: C

#include <stdio.h>

int main(void)
{
  int N;
  
  scanf("%d", &N);
  
  switch(N) {
    case 1:
    printf("No");
    break;
    case 2:
    printf("No");
    break;
    case 3:
    printf("No");
    break;
    case 5:
    printf("No");
    break;
    case 6:
    printf("No");
    break;
    case 9:
    printf("No");
    break;
    case 10:
    printf("No");
    break;
    case 13:
    printf("No");
    break;
    case 17:
    printf("No");
    break;
    default:
    printf("Yes")
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:38:18: error: expected ';' before '}' token
   38 |     printf("Yes")
      |                  ^
      |                  ;
   39 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void)
{
  int N;
  
  scanf("%d", N);
  
  switch(N) {
    case 1:
    printf("No");
    break;
    case 2:
    printf("No");
    break;
    case 3:
    printf("No");
    break;
    case 5:
    printf("No");
    break;
    case 6:
    printf("No");
    break;
    case 9:
    printf("No");
    break;
    case 10:
    printf("No");
    break;
    case 13:
    printf("No");
    break;
    case 17:
    printf("No");
    break;
    default:
    printf("Yes")
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:38:18: error: expected ';' before '}' token
   38 |     printf("Yes")
      |                  ^
      |                  ;
   39 |   }
      |   ~
Language: C++

#include <iostream>
#include <string>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
    int sum,f=0;
    cin>>sum;
    if(sum%4==0)
    {
        cout<<"Yes"<<endl;
        f=1;
    }
    else
    {
        int k=sum/4,i=0,num;
        while(i<=k)
        {
            num=i*4;
            int t=sum-num;
            if(t%7==0)
            {
                cout<<"Yes"<<endl;
                f=1;
                break;
            }
            else
            {
                num=0;
            }
            i++;
        }
    }
    if(f==0)
        cout<<"No"<<endl;
}
   选择文件


Compiler output:
a.cc:38:4: error: '\U00009009\U000062e9\U00006587\U00004ef6' does not name a type
   38 |    选择文件
      |    ^~~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
  int a;
  cin >> a;
  if(0=<a && a<4){
    cout << "No" << endl;
  }
  else if(4<a && a<7){
    cout << "No" << endl;
  }
  else if(8<a && a<11){
    cout << "No" << endl;
  }
  else if(a==13){
    cout << "No" << endl;
  }
  else if(a==17){
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before '<' token
    7 |   if(0=<a && a<4){
      |        ^
Language: C++

#include <iostream>#include <string>#include <cstdio>#include <algorithm>using namespace std;int main(){    int sum,f=0;    cin>>sum;    if(sum%4==0)    {        cout<<"Yes"<<endl;        f=1;    }    else    {        int k=sum/4,i=0,num;        while(i<=k)        {            num=i*4;            int t=sum-num;            if(t%7==0)            {                cout<<"Yes"<<endl;                f=1;                break;            }            else            {                num=0;            }            i++;        }    }    if(f==0)        cout<<"No"<<endl;}

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include <iostream>#include <string>#include <cstdio>#include <algorithm>using namespace std;int main(){    int sum,f=0;    cin>>sum;    if(sum%4==0)    {        cout<<"Yes"<<endl;        f=1;    }    else    {        int k=sum/4,i=0,num;        while(i<=k)        {            num=i*4;            int t=sum-num;            if(t%7==0)            {                cout<<"Yes"<<endl;                f=1;                break;            }            else            {                num=0;            }            i++;        }    }    if(f==0)        cout<<"No"<<endl;}
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main(void)
{
  int N;
  
  scanf("%d", N);
  
  if(N < 4) {
    printf("No")
  } else if(N == 5) {
    printf("No")
  } else if(N == 6) {
    printf("No")
  } else if(N == 9) {
    printf("No")
  } else if(N == 10) {
    printf("No")
  } else if(N == 13) {
    printf("No")
  } else if(N == 17) {
    printf("No")
  } else {
    printf("Yes");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ';' before '}' token
   10 |     printf("No")
      |                 ^
      |                 ;
   11 |   } else if(N == 5) {
      |   ~              
main.c:12:17: error: expected ';' before '}' token
   12 |     printf("No")
      |                 ^
      |                 ;
   13 |   } else if(N == 6) {
      |   ~              
main.c:14:17: error: expected ';' before '}' token
   14 |     printf("No")
      |                 ^
      |                 ;
   15 |   } else if(N == 9) {
      |   ~              
main.c:16:17: error: expected ';' before '}' token
   16 |     printf("No")
      |                 ^
      |                 ;
   17 |   } else if(N == 10) {
      |   ~              
main.c:18:17: error: expected ';' before '}' token
   18 |     printf("No")
      |                 ^
      |                 ;
   19 |   } else if(N == 13) {
      |   ~              
main.c:20:17: error: expected ';' before '}' token
   20 |     printf("No")
      |                 ^
      |                 ;
   21 |   } else if(N == 17) {
      |   ~              
main.c:22:17: error: expected ';' before '}' token
   22 |     printf("No")
      |                 ^
      |                 ;
   23 |   } else {
      |   ~
Language: C

#include <stdio.h>

int main(void)
{
  int N;
  
  scanf("%d", N);
  
  if(N < 4) {
    printf("No")
  } else if(N == 5) {
    printf("No")
  } else if(N == 6) {
    printf("No")
  } else if(N == 9) {
    printf("No")
  } else if(N == 10) {
    printf("No")
  } else if(N == 13) {
    printf("No")
  } else if(N == 17) {
    printf("No")
  } else {
    printf("Yes")
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:17: error: expected ';' before '}' token
   10 |     printf("No")
      |                 ^
      |                 ;
   11 |   } else if(N == 5) {
      |   ~              
main.c:12:17: error: expected ';' before '}' token
   12 |     printf("No")
      |                 ^
      |                 ;
   13 |   } else if(N == 6) {
      |   ~              
main.c:14:17: error: expected ';' before '}' token
   14 |     printf("No")
      |                 ^
      |                 ;
   15 |   } else if(N == 9) {
      |   ~              
main.c:16:17: error: expected ';' before '}' token
   16 |     printf("No")
      |                 ^
      |                 ;
   17 |   } else if(N == 10) {
      |   ~              
main.c:18:17: error: expected ';' before '}' token
   18 |     printf("No")
      |                 ^
      |                 ;
   19 |   } else if(N == 13) {
      |   ~              
main.c:20:17: error: expected ';' before '}' token
   20 |     printf("No")
      |                 ^
      |                 ;
   21 |   } else if(N == 17) {
      |   ~              
main.c:22:17: error: expected ';' before '}' token
   22 |     printf("No")
      |                 ^
      |                 ;
   23 |   } else {
      |   ~              
main.c:24:18: error: expected ';' before '}' token
   24 |     printf("Yes")
      |                  ^
      |                  ;
   25 |   }
      |   ~
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();
    int mod7 = (n + 7) / 7;
    int mod4 = (n + 4) / 4;
    boolean f = false;
    
    for(int j = 1; j < mod7; j++){
      for(int i = 1; i =< mod4; i++){
        if(7 * j + 4 * i == n)
          f = true;
      }
    }
    
    if(f == false)
      System.out.println("No");
    else
      System.out.println("Yes");
  }
}


Compiler output:
Main.java:11: error: > or ',' expected
      for(int i = 1; i =< mod4; i++){
                              ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(int i=0;i<=25;i++){
			for(int j=0;j<=14;j++){
				cut = c*i + d*j;
				if(cut = 0)cut = 4;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to boolean
				if(cut = 0)cut = 4;
				       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(){
ll n;cin>>n;
bool flag = false;
for(int i= 0;i<100;++i)for(int j=0;j<100;++j)if(i*4+j*7==n)flag=true;
cout<<flag?"Yes":"No"<<std::endl;
}


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

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

int main() {
	int N;
	cin >> N;
	if (N == 1 || N == 2 || N == 3 || N == 5 || N == 6 || N == 9 || N == 10) {
		cout << "No" << endl;
	}
	else {
		if (N % 4 == 0 || N % 7 == 0) {
		cout << "Yes" << endl;
	}
	else {
		if (((N % 13 == 0) && (N / 13 == 1) || (N % 17 == 0) && (N / 17 == 1)) && N % (13 * 17) != 0) {
			cout << "No" << endl;
		}
		else {
			cout << "Yes" << endl;
		}
	}
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(i=0;i<=25;i++){
			for(j=0;j<=14;j++){
				cut = c*i + d*j;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		for(i=0;i<=25;i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
		for(i=0;i<=25;i++){
		        ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
		for(i=0;i<=25;i++){
		              ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
			for(j=0;j<=14;j++){
			    ^
  symbol:   variable j
  location: class Main
Main.java:13: error: cannot find symbol
			for(j=0;j<=14;j++){
			        ^
  symbol:   variable j
  location: class Main
Main.java:13: error: cannot find symbol
			for(j=0;j<=14;j++){
			              ^
  symbol:   variable j
  location: class Main
Main.java:14: error: cannot find symbol
				cut = c*i + d*j;
				        ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
				cut = c*i + d*j;
				              ^
  symbol:   variable j
  location: class Main
8 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int n = sc.nextInt();
		// スペース区切りの整数の入力
		int c = 4;
		int d = 7;
		int flag = 0;
		int cut = 0;
		for(i=0;i<=25;i++;){
			for(j=0;j<=14;j++;){
				cut = c*i + d*j;
				if(n%cut==0){flag=1;break;}
				if(cut>100){break;}
			}
			if(flag==1)break;
		}
		// 文字列の入力
		//String s = sc.next();
		// 出力
		if(flag==1)System.out.println("Yes");
		else System.out.println("No");
	}
}

Compiler output:
Main.java:12: error: ')' expected
		for(i=0;i<=25;i++;){
		                 ^
Main.java:12: error: illegal start of expression
		for(i=0;i<=25;i++;){
		                  ^
Main.java:13: error: ')' expected
			for(j=0;j<=14;j++;){
			                 ^
Main.java:13: error: illegal start of expression
			for(j=0;j<=14;j++;){
			                  ^
4 errors
Language: C

nclude <stdio.h>

int main(void)
{
  int N;
  
  scanf("%d", N);
  
  if(N < 4 || N == 5 || N == 6 ||  N == 8 ||  N == 9 ||  N == 10|| N == 13 || N == 17) {
    printf("No");
  } else {
    printf("Yes");
  }
  return 0;
}


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

#include "stdafx.h"	//※提出時に消すこと

#include <iostream>
using namespace std;

int main()
{
	int n = 0, ans=0;

	cin >> n;

	if (n % 4 == 0 || n % 7 == 0 || n % 11 == 0)
		ans = 1;
	else
		ans = 0;

	if(ans)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"     //※提出時に消すこと
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

using namespace std;

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


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここに追記
  int A, B, C, D;
  cin >> A;
for (int i = 0; D <= A; i++) {
B  = 4 * i; 
C = 7 * i;
D = B + C;
if(D == A){
cout << "Yes" << endl; 
break;
}else{
if(D > A){  
cout << "No" << endl; 
}
}
}
}
}

Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^