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

#include <stdio.h>
#define MIN(a,b) ((a) < (b) ? (a) : (b))
int main(void){
	char c[2];
	int fr[1000][1000],n,i,j,x,ans;
	while(scanf("%d",&n)){
		if(n==0)break;
		ans=0;
		for(i=0;i<n;i++){
			for(j=0;j<n;j++){
				scanf("%1s",&c);
				if(c[0]=='.'){
					if(i==0 || j==0)fr[i][j]=1;
					else {
						x=MIN(MIN(fr[i][j-1],fr[i-1][j]),fr[i-1][j-1])+1;
						if(ans<x)ans=x;
						fr[i][j]=x;
					}
				}
				else fr[i][j]=0;
			}
		}
		printf("%d\n",ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:1: error: expected declaration or statement at end of input
   25 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
dp[1111][1111];
string s[1111];
main()
{
    int n;
    while(cin>>n,n)
    {
        for(int i=0;i<n;i++)for(int j=0;j<n;j++)dp[i][j]=0;
        dp[0][0]=s[0][0]=='.';
        for(int i=1;i<n;i++)
        {
            if(s[i][0]=='.')dp[i][0]=dp[i-1][0]+1;
            if(s[0][i]=='.')dp[0][i]=dp[0][i-1]+1;
        }
        for(int i=1;i<n;i++)for(int j=1;j<n;j++)
        {
            if(s[i][j]=='.')dp[i][j]=min(dp[i-1][j-1],min(dp[i-1][j],dp[i][j-1]))+1;
        }
        int ans=0;
        for(int i=0;i<n;i++)for(int j=0;j<n;j++)ans=max(ans,dp[i][j]);
        cout<<ans<<endl;
    }
}


Compiler output:
a.cc:4:1: error: 'dp' does not name a type
    4 | dp[1111][1111];
      | ^~
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:49: error: 'dp' was not declared in this scope
   11 |         for(int i=0;i<n;i++)for(int j=0;j<n;j++)dp[i][j]=0;
      |                                                 ^~
a.cc:12:9: error: 'dp' was not declared in this scope
   12 |         dp[0][0]=s[0][0]=='.';
      |         ^~
Language: C++

while(1):
    n = int(input())
    if n == 0:
        break
    a = [0 for i in range(n)]
    b = [[0 for i in range(n)] for j in range(n)]
    c_ = [[2000 for i in range(n)] for j in range(n)]
    c = [[0 for i in range(n)] for j in range(n)]
    for i in range(n):
        a[i] = [0 if i == "." else 1 for i in list(input())]
        for j in range(n):
            for k in range(j,n):
                if a[i][k] == 1:
                    break
                b[i][j] = k-j+1
                
    for col in range(n):
        for i in range(n):
            for j in range(i,n):
                min_ = min(c_[i][col], b[j][col])
                if min_ < j-i+1:
                    break
                c_[i][col] = min_
                c[i][col] = j-i+1
    
    print(max([max(i) for i in c]))



Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while(1):
      | ^~~~~
Language: C++

#include<iostream>
#include<string>

#define NMAX 1010

int n;
    string sqs[NMAX];
int sqi[NMAX][NMAX]={0};
    int c;
    int max;

using namespace std;

int main(){

    int n;
    string sqs[NMAX];
    int sqi[NMAX][NMAX];
    int c;
    int max;

    while(1){

        cin>>n;
        if(n==0) break;

        for(int i=0;i<n;i++){
            cin>>sqs[i];
        }

        for(int i=0;i<n;i++){
            sqi[i][0]=1;
	    c=2;
            for(int j=1;j<n;j++){
	      if(sqs[i][j]=='.') sqi[i][j]=c++;
	      else sqi[i][j]=0,c=1;
            }
        }

	max=0;

	for(int i=0;i<n;i++){
	  for(int j=0;j<n;j++){
	    /*(i,j) 左上*/
	    for(int k=0;i+k<n||j+k<n;k++){
	      if(k+1<=max) continue;
	      /*(i+k,j+k) 右下*/
	      bool f=true;
	      for(int l=0;l<=k&&f;l++){
		if(sqs[i+l][j]=='*'||sqs[i+l][j+k]=='*'||sqi[i+l][j]+k!=sqi[i+l][j+k]) f=false;
	      }
	      if(f) max=k+1;
	      else break;
	    }
         }
      }
	cout<<max<<endl;
    }
}

Compiler output:
a.cc:7:5: error: 'string' does not name a type; did you mean 'stdin'?
    7 |     string sqs[NMAX];
      |     ^~~~~~
      |     stdin
Language: C++

#include<iostream>
#include<string>

#define NMAX 1010

int n;
string sqs[NMAX];
int sqi[NMAX][NMAX];
int c;
int max;

using namespace std;

int main(){

    int n;
    string sqs[NMAX];
    int sqi[NMAX][NMAX];
    int c;
    int max;

    while(1){

        cin>>n;
        if(n==0) break;

        for(int i=0;i<n;i++){
            cin>>sqs[i];
        }

        for(int i=0;i<n;i++){
            sqi[i][0]=1;
	    c=2;
            for(int j=1;j<n;j++){
	      if(sqs[i][j]=='.') sqi[i][j]=c++;
	      else sqi[i][j]=0,c=1;
            }
        }

	max=0;

	for(int i=0;i<n;i++){
	  for(int j=0;j<n;j++){
	    /*(i,j) 左上*/
	    for(int k=0;i+k<n||j+k<n;k++){
	      if(k+1<=max) continue;
	      /*(i+k,j+k) 右下*/
	      bool f=true;
	      for(int l=0;l<=k&&f;l++){
		if(sqs[i+l][j]=='*'||sqs[i+l][j+k]=='*'||sqi[i+l][j]+k!=sqi[i+l][j+k]) f=false;
	      }
	      if(f) max=k+1;
	      else break;
	    }
         }
      }
	cout<<max<<endl;
    }
}

Compiler output:
a.cc:7:1: error: 'string' does not name a type; did you mean 'stdin'?
    7 | string sqs[NMAX];
      | ^~~~~~
      | stdin
Language: C++

10
...*....**
..........
**....**..
........*.
..*.......
..........
.*........
..........
....*..***
.*....*...
10
****.*****
*..*.*....
****.*....
*....*....
*....*****
..........
****.*****
*..*...*..
****...*..
*..*...*..
0

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 10
      | ^~
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
#define MAX(A, B) ((A) > (B)? (A): (B))
#define MIN(A, B) ((A) < (B)? (A): (B))

int search(int x, int y, int pat);

int n;
bool tront[1000][1000];
int table[1000][1000];

int main() {
	int i, j;

	while (1) {
		int max = 0;
		memset(table, 0, sizeof(table));
		cin >> n;
		getchar();
		if (n == 0)
			break;
		for (i = 0; i < n; i++) {
			char str[1001];
			gets(str);
			for (j = 0; j < n; j++) {
				switch (str[j]) {
				case '.':
					tront[i][j] = 0;
					break;
				case '*':
					tront[i][j] = 1;
					break;
				}
			}
		}
		for (i = 0; i < n; i++) {
			for (j = 0; j < n; j++) {
				if (!tront[i][j]) {
					int kmax = search(i, j, 0);
					max = MAX(max, kmax);
				}
			}
		}
		cout << max << endl;
	}
	return 0;
}

int search(int x, int y, int pat) {
	int cx = 1, cy = 1, cxy = 1;
	if (table[x][y])
		return table[x][y];
	if (x >= n || y >= n || tront[x][y])
		return 0;
	switch (pat) {
	case 0:
		cx += search(x+1, y, 1);
		cy += search(x, y+1, 2);
		cxy += search(x+1, y+1, 0);
		table[x][y] = MIN(cx, MIN(cy, cxy));
		return table[x][y];
		break;

	case 1:
		cx += search(x+1, y, 1);
		return cx;
		break;

	case 2:
		cy += search(x, y+1, 2);
		return cy;
		break;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'memset' was not declared in this scope
   18 |                 memset(table, 0, sizeof(table));
      |                 ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
a.cc:25:25: error: 'gets' was not declared in this scope; did you mean 'getw'?
   25 |                         gets(str);
      |                         ^~~~
      |                         getw
a.cc: In function 'int search(int, int, int)':
a.cc:75:1: warning: control reaches end of non-void function [-Wreturn-type]
   75 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
string str[1000];
int serch(int now,int y,int x,char s,int maxe)
{
    if(maxe==now+x)return 0;
    for(int i=0;;i++){
        if(str[y+i][x+now]!=s||str[y+now][x+i]!=s)return 0;
        if(y+i==y+now)break;
    }
    return serch(now+1,y,x,s)+1;
}
int main()
{
    int n;
    while(cin>>n,n){
        for(int i=0;i<n;i++)cin>>str[i];
        int ans=1;
        for(int i=0;i<n;i++){
            for(int j=0;j<n;j++){
                if(str[i][j]=='.'){
                    int kawa=1+serch(1,i,j,'.',n);
                    if(kawa>ans)ans=kawa;
                }
            }
        }
        cout<<ans<<endl;
    }
}

Compiler output:
a.cc: In function 'int serch(int, int, int, char, int)':
a.cc:11:17: error: too few arguments to function 'int serch(int, int, int, char, int)'
   11 |     return serch(now+1,y,x,s)+1;
      |            ~~~~~^~~~~~~~~~~~~
a.cc:4:5: note: declared here
    4 | int serch(int now,int y,int x,char s,int maxe)
      |     ^~~~~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <stdlib.h>
#define rep(i, n) for(int i=0;i<n;i++)
#define FOR(i, j, n) for(int i=j;i<n;i++)

int N;
// char** data;
char data[50][50];
// int** dp;
int dp[50][50];

int search() {
    int max = 0;
    FOR(i, 1, N) {
        FOR(j, 1, N) {
            int k = i;
            int l = j;
            int up = 0, left = 0;
            int previous = dp[i - 1][j - 1] + 1;

            while(k >= 0 && data[k][j] == '.') {
                ++up;
                --k;
            }
            while(l >= 0 && data[i][l] == '.') {
                ++left;
                --l;
            }
            dp[i][j] = std::min({up, left, previous});
            max = dp[i][j] > max ? dp[i][j] : max;
        }
    }

    return max;
}

int main() {
    while(1) {
        std::cin >> N;
        if (N == 0) return 0;
        memset(dp, 0, sizeof(dp));
//        data = (char**)malloc(sizeof(char*) * N);
//        dp = (int**)malloc(sizeof(int*) * N);
        rep(i, N) {
//            data[i] = (char*)malloc(sizeof(char) * N);
//            dp[i] = (int*)malloc(sizeof(int) * N);
            rep(j, N) std::cin >> data[i][j];
            dp[i][0] = data[i][0] == '.' ? 1 : 0;
            dp[0][i] = data[0][i] == '.' ? 1 : 0;
        }

        int max = search();
        std::cout << max << std::endl;
//        rep(i, N) {
//            free(dp[i]);
//            free(data[i]);
//        }
//        free(data);
//        free(dp);
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:9: error: 'memset' was not declared in this scope
   43 |         memset(dp, 0, sizeof(dp));
      |         ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <stdlib.h>
  +++ |+#include <cstring>
    5 | #define rep(i, n) for(int i=0;i<n;i++)
Language: C++

#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <stdlib.h>
#define rep(i, n) for(int i=0;i<n;i++)
#define FOR(i, j, n) for(int i=j;i<n;i++)

int N;
char data[50][50];
int dp[50][50];

int search() {
    int max = 0;
    FOR(i, 1, N) {
        FOR(j, 1, N) {
            int k = i;
            int l = j;
            int up = 0, left = 0;
            int previous = dp[i - 1][j - 1] + 1;

            while(k >= 0 && data[k][j] == '.') {
                ++up;
                --k;
            }
            while(l >= 0 && data[i][l] == '.') {
                ++left;
                --l;
            }
            dp[i][j] = std::min({up, left, previous});
            max = dp[i][j] > max ? dp[i][j] : max;
        }
    }

    return max;
}

int main() {
    while(1) {
        std::cin >> N;
        if (N == 0) return 0;
        memset(dp, 0, sizeof(dp));
        memset(data, 0, sizeof(data));
        rep(i, N) {
            rep(j, N) std::cin >> data[i][j];
            dp[i][0] = data[i][0] == '.' ? 1 : 0;
            dp[0][i] = data[0][i] == '.' ? 1 : 0;
        }

        std::cout << search() << std::endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:9: error: 'memset' was not declared in this scope
   41 |         memset(dp, 0, sizeof(dp));
      |         ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include <stdlib.h>
  +++ |+#include <cstring>
    5 | #define rep(i, n) for(int i=0;i<n;i++)
Language: C++

z[4000],*a=z,*b=z+2000,m,i,j;main(n){for(;!scanf("%d",&n)||n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;)m=fmax(m,b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0);}

Compiler output:
a.cc:1:1: error: 'z' does not name a type
    1 | z[4000],*a=z,*b=z+2000,m,i,j;main(n){for(;!scanf("%d",&n)||n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;)m=fmax(m,b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0);}
      | ^
a.cc:1:34: error: expected constructor, destructor, or type conversion before '(' token
    1 | z[4000],*a=z,*b=z+2000,m,i,j;main(n){for(;!scanf("%d",&n)||n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;)m=fmax(m,b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0);}
      |                                  ^
Language: C++

z[4000],*a=z,*b=z+2000,m,i,j,k;main(n){for(;scanf("%d",&n),n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;k>m?m=k:0)k=b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0;}

Compiler output:
a.cc:1:1: error: 'z' does not name a type
    1 | z[4000],*a=z,*b=z+2000,m,i,j,k;main(n){for(;scanf("%d",&n),n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;k>m?m=k:0)k=b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0;}
      | ^
a.cc:1:36: error: expected constructor, destructor, or type conversion before '(' token
    1 | z[4000],*a=z,*b=z+2000,m,i,j,k;main(n){for(;scanf("%d",&n),n;m=!printf("%d\n",m))for(i=++n;i--;j=a,a=b,b=j)for(j=n;j--;k>m?m=k:0)k=b[j]=n+~i&&getchar()>45?1+fmin(fmin(b[j+1],a[j+1]),a[j]):0;}
      |                                    ^
Language: C++

#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int n;
char str[1005][1005];
int rui[1001][1001];
int main(){
	while(1){
	scanf("%d",&n);
	if(!n) break;
	for(int i=1;i<=n;i++){
		scanf("%s",&str[i]);
	}
	for(int j=1;j<=n;j++){
	for(int i=n-1;i>=0;i--){
		str[j][i+1]=str[j][i];
	}
	}
	memset(rui,0,sizeof(rui));
for(int i=1;i<=n;i++){
	if(str[i][1]=='*'){
		rui[i][1]=rui[i-1][1]+1;
	}else{
		rui[i][1]=rui[i-1][1];
	}
}
for(int i=1;i<=n;i++){
	if(str[1][i]=='*'){
		rui[1][i]=rui[1][i-1]+1;
	}else{
		rui[1][i]=rui[1][i-1];
	}
}
for(int i=2;i<=n;i++){
	for(int j=2;j<=n;j++){
		if(str[i][j]=='*'){
			rui[i][j]=rui[i-1][j]+rui[i][j-1]-rui[i-1][j-1]+1;
		}else{
			rui[i][j]=rui[i-1][j]+rui[i][j-1]-rui[i-1][j-1];
		}
	}
}
int ans=1;
for(int i=1;i<=n;i++){
	for(int j=i;j<=n;j++){
		if(j-i+1<=ans) continue;
		for(int k=1;k<=n-(j-i);k++){
			int eo=rui[j][k+j-i]-rui[j][k-1]-rui[i-1][k+j-i]+rui[i-1][k-1];
			if(!eo){
				ans=max(ans,(j-i+1));
				break;
			}
		}
	}
}
printf("%d\n",ans);
}

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

#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int n;
char str[1005][1005];
int rui[1001][1001]={};
int main(){
	while(1){
	scanf("%d",&n);
	if(!n) break;
	memset(rui,0,sizeof(rui));
	for(int i=1;i<=n;i++){
		scanf("%s",&str[i]);
	}
	for(int j=1;j<=n;j++){
	for(int i=n-1;i>=0;i--){
		str[j][i+1]=str[j][i];
	}
	}
for(int i=1;i<=n;i++){
	if(str[i][1]=='*'){
		rui[i][1]=rui[i-1][1]+1;
	}else{
		rui[i][1]=rui[i-1][1];
	}
}
for(int i=1;i<=n;i++){
	if(str[1][i]=='*'){
		rui[1][i]=rui[1][i-1]+1;
	}else{
		rui[1][i]=rui[1][i-1];
	}
}
for(int i=2;i<=n;i++){
	for(int j=2;j<=n;j++){
		if(str[i][j]=='*'){
			rui[i][j]=rui[i-1][j]+rui[i][j-1]-rui[i-1][j-1]+1;
		}else{
			rui[i][j]=rui[i-1][j]+rui[i][j-1]-rui[i-1][j-1];
		}
	}
}
int ans=1;
for(int i=1;i<=n;i++){
	for(int j=i;j<=n;j++){
		if(j-i+1<=ans) continue;
		for(int k=1;k<=n-(j-i);k++){
			int eo=rui[j][k+j-i]-rui[j][k-1]-rui[i-1][k+j-i]+rui[i-1][k-1];
			if(!eo){
				ans=max(ans,(j-i+1));
				break;
			}
		}
	}
}
printf("%d\n",ans);
}

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

#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
   char c[1001];
   int d[2][1002],i,j,k,n,m,mx;
   while(true) {
	   cin >> n; k=0; mx=0;
	   if (n==0) break;
	   memset(d,0,sizeof(d));
	   for (i=0;i<n;i++) {
		   cin >> c;
		   for (j=0;j<n;j++) {
			   if (c[j]=='.') {
				   m=min(d[k][j],d[k][j+1]);
				   m=min(m,d[1-k][j])+1;
				   d[1-k][j+1]=m;
				   mx=max(mx,m);
			   } else d[1-k][j+1]=0;
		   }
		   k=1-k;
		  }
   cout << mx << endl;
   }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'memset' was not declared in this scope
   10 |            memset(d,0,sizeof(d));
      |            ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <stdio.h>
Language: C++

#Include <iostream>
using namespace std;


int main () {
  int i,j,n;
  int dp[1001][1001];
  int ma;
  char c;

  cin >> n;
  while(n != 0) {
    ma = 0; 

    for(i=0; i<n; i++){ dp[0][i] = 0; }
    for(i=0; i<n; i++){ dp[i][0] = 0; }
  
    for(int i=1; i<=n; i++){
      for(int j=1; j<=n; j++) {
	cin >> c;
	if(c == '*') {
	  dp[j][i] = 0;
	  continue;
	}
      
	dp[j][i] = min(dp[j-1][i], min(dp[j-1][i-1], dp[j][i-1]))+1;
	ma = (dp[j][i] > ma) ? dp[j][i] : ma;
      }
    }
    printf("%d\n", ma);

    cin >> n;
  }

  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   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 | #Include <iostream>
a.cc:26:36: error: 'min' was not declared in this scope; did you mean 'main'?
   26 |         dp[j][i] = min(dp[j-1][i], min(dp[j-1][i-1], dp[j][i-1]))+1;
      |                                    ^~~
      |                                    main
a.cc:26:20: error: 'min' was not declared in this scope; did you mean 'main'?
   26 |         dp[j][i] = min(dp[j-1][i], min(dp[j-1][i-1], dp[j][i-1]))+1;
      |                    ^~~
      |                    main
a.cc:30:5: error: 'printf' was not declared in this scope
   30 |     printf("%d\n", ma);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #Include <iostream>
Language: C++

#include<iostream>
using namespace std;

#define N 1000

#define max((a),(b)) ((a)>(b)?(a):(b))
#define min((a),(b)) ((a)>(b)?(b):(a))

int main() {
	char map[N][N]; int l[N][N], ans, n, dp[N][N], c;
	while(1) {
		cin >> n;
		if(!n) break;
		c = 0;
		for(int i=0; i<n; ++i) {
			for(int j=0; j<n; ++j) {
				cin >> map[i][j]; l[i][j] = 0;
				if(map[i][j]=='*') {
					c++;
					if(i) {
						int k = 1;
						while(map[i-k][j]!='*') {
							l[i-k][j] = k;
							if(i<(++k)) break;
						}
					}
				}
			}
		}
		for(int j=0; j<n; ++j) {
			int k = 1;
			while(map[n-k][j]!='*') {
				l[n-k][j] = k;
				if(n<(++k)) break;
			}
		}
		if(c==n*n) {
			cout << "0" << endl;
			continue;
		}
		ans = 1;
		for(int i=0; i<n; ++i) {
			for(int j=0; j<n; ++j) dp[j][j] = l[i][j];
			int r = 0;
			for(int l=0; l<n; ++l) {
				if(r<l) r = l;
				while(dp[l][r]>(r-l+1)&&r<n-1) {
					r++;
					for(int m=l; m<r; ++m) {
						dp[m][r] = min(dp[m][r-1], dp[r][r]);
					}
				}
				ans = max(ans, min(dp[l][r], r-l+1));
			}
		}
		cout << ans << endl;
	}
	return 0;
}

Compiler output:
a.cc:6:13: error: expected parameter name, found "("
    6 | #define max((a),(b)) ((a)>(b)?(a):(b))
      |             ^
a.cc:7:13: error: expected parameter name, found "("
    7 | #define min((a),(b)) ((a)>(b)?(b):(a))
      |             ^
Language: Java

package benkyo;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class BenkyoMain {

	public static void main(String args[] ) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String output = "";
		List<String> input = new ArrayList<String>();
		while (line != null) {
			// CTRL+Z??§??\????????????
			input.add(line);

			line = br.readLine();
		}
		for (String inputLine : input) {
			String[] inputData = inputLine.split(" ");
			int startYear = Integer.parseInt(inputData[0]);
			int endYear = Integer.parseInt(inputData[1]);
			if (startYear == 0 && endYear == 0) {
				break;
			}
			boolean isEmpty = true;
			for (int i = startYear; i <= endYear; i++) {
				if (i % 4 == 0) {
					System.out.println(i);
					isEmpty = false;
				}
			}
			if (isEmpty) {
				System.out.println("NA");
			}
			System.out.println();
		}
    }

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class AOJ_0093
{
  public static void main(String[] args) throws IOException
  {
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));

    ;
    while (input.ready())
    {
      String[] inputStr = input.readLine().split(" ");

      if (inputStr[0].equals("0") && inputStr[1].equals("0"))
      {
        break;
      }
      ArrayList<Integer> ansList = leapYearCount(Integer.parseInt(inputStr[0]),
          Integer.parseInt(inputStr[1]));

      if (ansList.size() == 0)
      {
        System.out.println("NA");
        System.out.println();
        continue;
      }

      for (Integer each : ansList)
      {
        System.out.println(each);
      }
      System.out.println();
    }

  }

  private static ArrayList<Integer> leapYearCount(int fromYear, int toYear)
  {
    ArrayList<Integer> yearList = new ArrayList<>();
    for (int i = fromYear; i <= toYear; i++)
    {
      if (isLeapYear(i))
      {
        yearList.add(i);
      }
    }
    return yearList;
  }

  private static boolean isLeapYear(int year)
  {
    if (year % 4 != 0)
    {
      return false;
    }

    if (year % 100 == 0 && year % 400 == 0)
    {
      return true;
    }

    if (year % 100 == 0)
    {
      return false;
    }

    return true;
  }
}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		while (true) {
			int a = sc.nextInt();
			int b = sc.nextInt();

				if (a == 0 && b == 0) {
					break;
				}
			hasLeapYear(a, b);
		}
	sc.close();
	}

	private static void hasLeapYear(int a, int b) {
		boolean hasLeapYear = false;

		for (int i = a; i <= b; i++) {
			boolean res = isLeapYear(i);
				if (res) {
					if (hasLeapYear == false) {
						hasLeapYear = true;
					}
					System.out.println(i);
				}
		}

		if (hasLeapYear == false) {
			System.out.println("NA");
		}
	}

	private static boolean isLeapYear(int i) {
		if (i % 4 == 0) {
			if (i % 100 == 0) {

				if (i % 400 == 0) {
					return true;
				} else {
					return false;
				}

			}
			return true;
		} else {
			return false;
		}
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
public class m_0093 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a,b,flag=0;
		while(true) {
			a=sc.nextInt();
			b=sc.nextInt();
			if ( a == 0 && b == 0 )break;
			while ( a < b ) {
				if ( a % 4 == 0 && a % 100 != 0 || a % 400 == 0 ) {
					System.out.println(a);
					flag=1;
				}
				a++;
			}
			if ( flag == 0 )
				System.out.println("NA");
		}
	}
}

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

import java.io.*;
class Main{
    public static void main(String[] args)throws IOException{

	BufferedReader br = null;
	String buf;
	try{
	    br = new BufferedReader(new InputStreamReader(System.in));
	    while((buf = br.readLine()) !=null){
		int[] year = new int[2];
		for(int i=0;year.length;i++){
		    year[i]= Integer.parseInt(buf.split(" "));
		}
		boolean check = false;
		for(int i = year[0];i<year[1];i++){
		    if(i%4==0 && (i%100 !=0 || i%400 ==0)){
			check = true;
			System.out.printf("%d\n",year);
		    }
		}
		System.out.println();
	    }
	}finally{
	    if(br !=null){
		br.close();
	    }
	}
    }
}
	    

Compiler output:
Main.java:11: error: incompatible types: int cannot be converted to boolean
		for(int i=0;year.length;i++){
		                ^
Main.java:12: error: incompatible types: String[] cannot be converted to String
		    year[i]= Integer.parseInt(buf.split(" "));
		                                       ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args)throws IOException{

	BufferedReader br = null;
	String buf;
	try{
	    br = new BufferedReader(new InputStreamReader(System.in));
	    while((buf = br.readLine()) !=null){
		int[] year = new int[2];
		for(int i=0;i<year.length;i++){
		    year[i]= Integer.parseInt(buf.split(" ")[i]);
		}
		boolean check = false;
		for(int i = year[0];i<year[1];i++){
		    if(i%4==0 && (i%100 != 0 || i%400 == 0)){
			check = true;
			System.out.printf("%d\n",i);
		    }
		}
		if(!check){
		    System.out.println("NA");
		System.out.println();
	    }
	}finally{
	    if(br !=null){
		br.close();
	    }
	}
    }
}
	    

Compiler output:
Main.java:25: error: 'finally' without 'try'
	}finally{
	 ^
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
	try{
	^
Main.java:31: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args)throws IOException{

	BufferedReader br = null;
	String buf;
	int line = true;
	try{
	    br = new BufferedReader(new InputStreamReader(System.in));
	    while((buf = br.readLine()) !=null){
		int[] year = new int[2];
		for(int i=0;i<year.length;i++){
		    year[i]= Integer.parseInt(buf.split(" ")[i]);
		}
		if(year[0] == year[1] && year[0] ==0)break;
		if(line){
		    line = false;
		}else{
		    System.out.println();
		boolean check = false;
		for(int i = year[0];i<=year[1];i++){
		    if(i%4==0 && (i%100 != 0 || i%400 == 0)){
			check = true;
			System.out.printf("%d\n",i);
		    }
		}
		if(!check){
		    System.out.println("NA");
		}
	    }
	}finally{
	    if(br !=null){
		br.close();
	    }    
	}
    }   
}

Compiler output:
Main.java:31: error: 'finally' without 'try'
	}finally{
	 ^
Main.java:8: error: 'try' without 'catch', 'finally' or resource declarations
	try{
	^
Main.java:37: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.*;
class Main{
    public static void main(String[] args)throws IOException{

	BufferedReader br = null;
	String buf;
	int line = true;
	try{
	    br = new BufferedReader(new InputStreamReader(System.in));
	    while((buf = br.readLine()) !=null){
		int[] year = new int[2];
		for(int i=0;i<year.length;i++){
		    year[i]= Integer.parseInt(buf.split(" ")[i]);
		}
		if(year[0] == year[1] && year[0] ==0)break;
		if(line){
		    line = false;
		}else{
		    System.out.println();}
		boolean check = false;
		for(int i = year[0];i<=year[1];i++){
		    if(i%4==0 && (i%100 != 0 || i%400 == 0)){
			check = true;
			System.out.printf("%d\n",i);
		    }
		}
		if(!check){
		    System.out.println("NA");
		}
	    }
	}finally{
	    if(br !=null){
		br.close();
	    }    
	}
    }   
}

Compiler output:
Main.java:7: error: incompatible types: boolean cannot be converted to int
	int line = true;
	           ^
Main.java:16: error: incompatible types: int cannot be converted to boolean
		if(line){
		   ^
Main.java:17: error: incompatible types: boolean cannot be converted to int
		    line = false;
		           ^
3 errors
Language: C

#include<stdio.h>
/*与えられた期間の間のうるう年をすべて出力*/
void leap_year(int year1, int year2);

int main(void)
{
    while(1){
        int a, b; /*a は year1　, b は year2*/
        scanf("%d %d", &a, &b);
        if (a == 0 && b == 0){
            break;
        }else if (a == b){
            printf("NA\n");
            printf("\n");
        }else {
            leap_year(a, b);
        }
    }
    return 0;
}

void leap_year(int year1, int year2)
{   
    int limit; /もしも、うるう年がなかった時に使う/
    for(int i = year1; i <= year2; ++i){
        if ((i % 4 == 0 && i % 100 != 0) || i % 400 == 0){
            printf("%d\n", i);
        }else{
            ++limit;
        }
    }
    if (limit = (year2 - year1){　/*うるう年がない場合*/
        printf("NA\n");
        printf("\n");
    }else{    /*うるう年がある場合*/
    printf("\n");
    }
} 

Compiler output:
main.c: In function 'leap_year':
main.c:24:16: error: expected expression before '/' token
   24 |     int limit; /もしも、うるう年がなかった時に使う/
      |                ^
main.c:24:23: error: stray '\343' in program
   24 |     int limit; /<U+3082><U+3057><U+3082><U+3001><U+3046><U+308B><U+3046><U+5E74><U+304C><U+306A><U+304B><U+3063><U+305F><U+6642><U+306B><U+4F7F><U+3046>/
      |                                         ^~~~~~~~
main.c:32:33: error: stray '\343' in program
   32 |     if (limit = (year2 - year1){<U+3000>/*<U+3046><U+308B><U+3046><U+5E74><U+304C><U+306A><U+3044><U+5834><U+5408>*/
      |                                 ^~~~~~~~
main.c:38:1: error: expected declaration or statement at end of input
   38 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
	int a, b;
	int i, c;
	
	while(scanf("%d %d", &a, &b) != EOF){
		if(a == 0 && b == 0) break;
		c = 0;
　　　　　　　　　putchar('\n');
		for(i = a; i <= b; i++){
			if(i % 4 == 0 && i %100 != 0){
				printf("%d\n", i);
				c++;
			}else if(i % 400 == 0){
				printf("%d\n", i);
				c++;
			}
		}
		if(c == 0) printf("NA\n");
		
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:1: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      | ^~~~~~~~
main.c:10:3: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |         ^~~~~~~~
main.c:10:5: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                 ^~~~~~~~
main.c:10:7: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                         ^~~~~~~~
main.c:10:9: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                                 ^~~~~~~~
main.c:10:11: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                                         ^~~~~~~~
main.c:10:13: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                                                 ^~~~~~~~
main.c:10:15: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                                                         ^~~~~~~~
main.c:10:17: error: stray '\343' in program
   10 | <U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000><U+3000>putchar('\n');
      |                                                                 ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,i,temp,judge=0;
  while(1){
??????temp=0;
    scanf("%d %d", &a, &b);
    if((a==0)&&(b==0))break;  
    if(judge!=0) printf("\n");
    judge++;
    for(i=a;i<=b;i++){
      if(i%400==0){
    printf("%d\n",i);
    temp=1;
      }
      else if((i%4==0)&&(i%100!=0)){
    printf("%d\n",i);
    temp=1;
      }
    }
    if(temp==0)printf("NA\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ??????temp=0;
      | ^
Language: C

#include<stdio.h>
int main(){
  int a,b,i,temp,judge=0;
  while(1){
??????temp=0;
    scanf("%d %d", &a, &b);
    if((a==0)&&(b==0))break;  
    if(judge!=0) printf("\n");
    judge++;
    for(i=a;i<=b;i++){
      if(i%400==0){
    printf("%d\n",i);
    temp=1;
      }
      else if((i%4==0)&&(i%100!=0)){
    printf("%d\n",i);
    temp=1;
      }
    }
    if(temp==0)printf("NA\n");
  }
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ??????temp=0;
      | ^
Language: C

#include<stdio.h>
int main(){
  int a,b,i,temp,judge=0;
  while(1){
??????temp=0;
    scanf("%d %d", &a, &b);
    if((a==0)&&(b==0))break;  
    if(judge!=0) {printf("\n");}
    judge++;
    for(i=a;i<=b;i++){
      if(i%400==0){
    printf("%d\n",i);
    temp=1;
      }
      else if((i%4==0)&&(i%100!=0)){
    printf("%d\n",i);
    temp=1;
      }
    }
    if(temp==0){printf("NA\n");}
  }
  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
    5 | ??????temp=0;
      | ^
Language: C

#include<stdio.h>
int main(void){
    int before,after;
    int i;
    int flag = 0;
   scanf("%d %d",&before,&after);
        if(before == 0 && after == 0){
            break;
        }
        for(i = before;i <= after;i++){
            if(i % 4 == 0){
                if(i % 100 != 0){
                    flag = 1;
                    printf("%d",i);
                }
            }
            if(i % 4 == 0){
                if(i % 400 == 0){
                    flag = 1;
                    printf("%d",i);
                }
            }
        }
        if(flag == 0){
            printf("NA");
        }
        flag = 0;


    while(scanf("%d %d",&before,&after)){
puts("");
        if(before == 0 && after == 0){
            break;
        }
        for(i = before;i <= after;i++){
            if(i % 4 == 0){
                if(i % 100 != 0){
                    flag = 1;
                    printf("%d",i);
                }
            }
            if(i % 4 == 0){
                if(i % 400 == 0){
                    flag = 1;
                    printf("%d",i);
                }
            }
        }
        if(flag == 0){
            printf("NA");
        }
        flag = 0;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: break statement not within loop or switch
    8 |             break;
      |             ^~~~~
Language: C

#include<stdio.h>
int main(void){
    int before,after;
    int i;
    int flag = 0;
   scanf("%d %d",&before,&after);

        for(i = before;i <= after;i++){
            if(i % 4 == 0){
                if(i % 100 != 0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
            if(i % 4 == 0){
                if(i % 400 == 0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
        }
        if(flag == 0){
            printf("NA\n");
        }
        flag = 0;


    while(1){
scanf("%d %d",&before,&after)
puts("");
        if(before == 0 && after == 0){
            break;
        }
        for(i = before;i <= after;i++){
            if(i % 4 == 0){
                if(i % 100 != 0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
            if(i % 4 == 0){
                if(i % 400 == 0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
        }
        if(flag == 0){
            printf("NA\n");
        }
        flag = 0;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:30: error: expected ';' before 'puts'
   29 | scanf("%d %d",&before,&after)
      |                              ^
      |                              ;
   30 | puts("");
      | ~~~~
Language: C

#include<stdio.h>
int main(void){
    int before,after;
    int i;
    int flag = 0;
   scanf("%d %d",&before,&after);

        for(i = before;i <= after;i++){
            if(i % 4 == 0&&i % 100 != 0||i%400==0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
        }
        if(flag == 0){
            printf("NA\n");
        }
        flag = 0;


    while(1){
scanf("%d %d",&before,&after);
puts("");
        if(before == 0 && after == 0){
            break;
        }
        for(i = before;i <= after;i++){
            if(i % 4 == 0&&i % 100 != 0||i%400==0){
                    flag = 1;
                    printf("%d\n",i);
                }
            }
        }
        if(flag == 0){
            printf("NA\n");
        }
        flag = 0;

    }
    return 0;
}

Compiler output:
main.c:15:9: error: expected identifier or '(' before 'if'
   15 |         if(flag == 0){
      |         ^~
main.c:18:9: warning: data definition has no type or storage class
   18 |         flag = 0;
      |         ^~~~
main.c:18:9: error: type defaults to 'int' in declaration of 'flag' [-Wimplicit-int]
main.c:21:5: error: expected identifier or '(' before 'while'
   21 |     while(1){
      |     ^~~~~
main.c:34:9: error: expected identifier or '(' before 'if'
   34 |         if(flag == 0){
      |         ^~
main.c:37:9: warning: data definition has no type or storage class
   37 |         flag = 0;
      |         ^~~~
main.c:37:9: error: type defaults to 'int' in declaration of 'flag' [-Wimplicit-int]
main.c:37:9: error: redefinition of 'flag'
main.c:18:9: note: previous definition of 'flag' with type 'int'
   18 |         flag = 0;
      |         ^~~~
main.c:39:5: error: expected identifier or '(' before '}' token
   39 |     }
      |     ^
main.c:40:5: error: expected identifier or '(' before 'return'
   40 |     return 0;
      |     ^~~~~~
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^
Language: C

include <stdio.h>

int main(void){
	int a,b,c;
	c=0;
	scanf("%d%d",&a,&b);
	while(1){
	scanf("%d%d",&a,&b);
	if(a==0&&b==0){break;}
	if(a%4==0){
		if(a%400==0&&a%100==0){
			printf("%d\n",a);
			c=c++;}
			else if(a%100!=0){
				printf("%d\n",a);
				c=c++;
				}
				if(a==b){break;}
				a=a+1;}
	}
	if(c==0){printf("NA\n");}
	return 0;
}

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
#include <numeric>
#include <iomanip>
#define fi first
#define se second
#define fcout(n) cout<<fixed<<setprecision((n))
#define cinl(str) getline(cin,(str))
using namespace std;
bool value(int y,int x,int R,int C){return 0<=y&&y<R&&0<=x&&x<C;}
typedef pair<int,int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
double pie=acos(-1);
int INF=10000009;
int dx[4] = { 0,-1,0,1 };
int dy[4] = { -1,0,1,0 };
int main() {
	int a,b;
	int y=0;
	int x=0;
	int i;
	while(true){
		scanf("%d %d",&a,&b);
		if(a+b==0) break;
		if(y!=0) printf("\n");
		for(int i=a;i<=b;i++){
			if((i%4==0&&i%100!=0)||i%400==0){
				printf("%d\n",i);
				x++;
			}
			if(i==b&&x==0){
				printf("%s\n","NA");
			}
		}
		x=0;
		y++;
	}
	return 0;
}

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
#include <numeric>
#include <iomanip>
#define fi first
#define se second
#define fcout(n) cout<<fixed<<setprecision((n))
#define cinl(str) getline(cin,(str))
using namespace std;
bool value(int y,int x,int R,int C){return 0<=y&&y<R&&0<=x&&x<C;}
typedef pair<int,int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
double pie=acos(-1);
int INF=10000009;
int dx[4] = { 0,-1,0,1 };
int dy[4] = { -1,0,1,0 };
int main() {
	int a,b;
	int y=0;
	int x=0;
	int i;
	while(1){
		scanf("%d %d",&a,&b);
		if(a+b==0) break;
		if(y!=0) printf("\n");
		for(i=a;i<=b;i++){
			if((i%4==0&&i%100!=0)||i%400==0){
				printf("%d\n",i);
				x++;
			}
			if(i==b&&x==0){
				printf("%s\n","NA");
			}
		}
		x=0;
		y++;
	}
	return 0;
}

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

#include <stdio.h>

int main(void)
{
	int start, end;
	int year;
	int flg_null;
	int flg_dsp;
	
	flg_null = 0;
	while (1){
		scanf("%d%d", &start, &end);
		if (start == 0 && end == 0){
			break;
		}
		if (flg_null == 1){
			printf("\n");
			flg_null = 1;
		}
		flg_dsp = 0;
		for (year = start; year <= end; year++){
			if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)){
				printf("%d\n", year);
				flg_dsp = 1;
			}
		}
		if (flg_dsp == 0){
			printf("NA\n");
		}
	}
	
	return (0);
}
#include <stdio.h>

int main(void)
{
	int start, end;
	int year;
	int flg_null;
	int flg_dsp;
	
	flg_null = 0;
	while (1){
		scanf("%d%d", &start, &end);
		if (start == 0 && end == 0){
			break;
		}
		if (flg_null == 0){
			printf("\n");
			flg_null = 1;
		}
		flg_dsp = 0;
		for (year = start; year <= end; year++){
			if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)){
				printf("%d\n", year);
				flg_dsp = 1;
			}
		}
		if (flg_dsp == 0){
			printf("NA\n");
		}
	}
	
	return (0);
}

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

#include<stdio.h>
int main(){
  int a,i,b,count=0;


  while(1)
    {
      count=0;
      scanf("%d%d",&a,&b);
      printf("\n");
      
    if(a==0 && b==0){ break; }
    
    for(i=a;i<=b;i++)
      {
	
	if(i%4==0 && i%100!=0)
	  {
	    printf("%d\n",i);
	    count++;
	  }
	else if(i%400==0)
	  {
	    printf("%d\n",i);
	    count++;
	  }
      }
    
    if(count==0)
      {
	printf("NA\n");
      }
      
    printf("\n");
    
    }

  return 0;

Compiler output:
main.c: In function 'main':
main.c:38:3: error: expected declaration or statement at end of input
   38 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>

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

    int a, b, y;
    
    while(1) {
        scanf("%d %d", &a, &b);
        if (a == 0 && b == 0) {
            break;
        } else {
            int cnt = 0;
            if (cnt != 0) {
                printf("\n");
            }
            for (y = a; y <= b; y++) {
                if ((y % 400 == 0) || (y % 4 == 0 && y % 100 != 0)) {
                    printf("%d\n", y);
                    cnt++;
                }
            }
            if (cnt == 0) {
                printf("NA\n");
                cnt++;
            }
        }
    }
    
    return 0;

Compiler output:
main.c: In function 'main':
main.c:30:5: error: expected declaration or statement at end of input
   30 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>

struct year {
	int start;
	int end;
};

void outputLeapyear(int, int);

int main(void) 
{
	int isInit = 0;
	struct year year;

	while (scanf("%d %d", &year.start, &year.end), !(year.start == 0 && year.end == 0)) {
		if (isInit == 0) {
			isInit++;
		} else {
			printf("\n");
			outputLeapyear(year.start, year.end);
		}

		return 0;
}

void outputLeapyear(int start, int end) 
{
	int i;
	int count = 0;

	for (i = start; i <= end; i++) {
		if (i % 400 == 0) {
			printf("%d\n", i);
			count++;
		} else if (i % 100 == 0) 
			continue;
		else if (i % 4 == 0) {
			printf("%d\n", i);
			count++;
		}
	}

	if (!count) 
		printf("NA\n");
}

Compiler output:
main.c: In function 'main':
main.c:45:1: error: expected declaration or statement at end of input
   45 | }
      | ^
Language: C

include<stdio.h>

main(){

  int a,b,i,x,y=0;

  while(1){ /* 無限ループ */
    x=0; 
    y++;
    scanf("%d %d",&a,&b);
    if(a==0 && b==0){
      break; //ループを抜ける
    }
    if(y!=1){
      printf("\n");
    }
    for(i=a;i<=b;i++){
      if(i%400==0){
	printf("%d\n",i);
	x=1; 
      }

      else if(i%4==0 && i%100!=0){
	printf("%d\n",i);
	x=1;
      }
    }
    if(x==0){
      printf("NA\n");
    }
  }
  return 0;
}

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

#include <stdio.h>

int main(void)
{
	int a,b;
	int i;
	int uru;
	
	while(1){
		scanf("%d",&a);
		scanf("%d",&b);
		
		uru=0;
		if(a==0 && b==0)
			break;
			
		for(i=a;i<=b;i++){
			if(i%4==0 && i%100!=0){
				printf("%d\n",i);
				uru++;
			}else if(i%100==0 && i%400!=0)
				printf("");
			else if(i%400==0){00
				printf("%d\n",i);
				uru++;
			}
		}
		if(uru==0){
			printf("NA\n");
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:45: error: expected ';' before 'printf'
   23 |                         else if(i%400==0){00
      |                                             ^
      |                                             ;
   24 |                                 printf("%d\n",i);
      |                                 ~~~~~~
Language: C

#include<stdio.h>

int main(){
	int a, b, i, c = true;
	while(scanf("%d%d", &a, &b)){
		if(a == 0 && b == 0) break;
		for(i = a; i <= b; i++){
			if(i % 4 == 0){
				if(i % 100 == 0){
					if(i % 400 == 0){
						printf("%d\n", i);
						c = false; 
					}
				}else{
					printf("%d\n", i);
					c = false;
				}
			}
		}
		if(c) printf("NA\n");
		c = true;
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:26: error: 'true' undeclared (first use in this function)
    4 |         int a, b, i, c = true;
      |                          ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:4:26: note: each undeclared identifier is reported only once for each function it appears in
    4 |         int a, b, i, c = true;
      |                          ^~~~
main.c:12:53: error: 'false' undeclared (first use in this function)
   12 |                                                 c = false;
      |                                                     ^~~~~
main.c:12:53: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>

int main( void ) {
	int i, a, b, first = 1, exist;

	while ( scanf( "%d %d", &a, &b ), a ) {
		if ( !first )
			putchar( '\n' );

		exist = 0;
		for ( i = ( ( a - 1 ) / 4 * 4 + 4; i <= b; i += 4 )
			if ( !( i % 4 ) && i % 25 || !( i % 400 ) ) {
				printf( "%d\n", i );

				exist = 1;
			}
		if ( !exist )
			puts( "NA" );

		first = 0;
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:50: error: expected ')' before ';' token
   11 |                 for ( i = ( ( a - 1 ) / 4 * 4 + 4; i <= b; i += 4 )
      |                           ~                      ^
      |                                                  )
main.c:11:68: error: expected ';' before 'if'
   11 |                 for ( i = ( ( a - 1 ) / 4 * 4 + 4; i <= b; i += 4 )
      |                                                                    ^
      |                                                                    ;
   12 |                         if ( !( i % 4 ) && i % 25 || !( i % 400 ) ) {
      |                         ~~                                          
main.c:21:9: error: expected expression before '}' token
   21 |         }
      |         ^
main.c:21:9: error: expected expression before '}' token