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

#include <stdio.h>

int count_number(void);

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

Compiler output:
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　int a;
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U00003000int' was not declared in this scope
    7 | 　int a;
      | ^~~~~
a.cc:10:25: error: 'a' was not declared in this scope
   10 |         scanf("%d %d", &a, &b);
      |                         ^
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("\n");
            printf("NA\n");
            printf("\n");
        }else {
            leap_year(a, b);
     c   }
    }
    return 0;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:6: error: 'c' was not declared in this scope
   18 |      c   }
      |      ^
Language: C++

/*
    2014.07.04 1230~1237
    C language Lecture week ∞
*/

#include <stdio.h>

int leap_chk ( int year );

int main (void) {
    
    int init;
    int last;
    
    int count = 0;
    
    scanf ( "%d", &init );
    scanf ( "%d", &last );
    
    for ( int ly = init; ly <= last; ly ++ ) {
        if ( leap_chk ( ly ) ) {
            printf ( "%d\n", ly );
            count ++;
        }
    }
    
    if ( count == 0 ) {
        printf ( "NA\n" );
    }
    printf ( "\n" );
    
    return 0;
    
}

int leap_chk ( int year ) {
    
    if ( year % 4 == 0 ) {
        if ( year % 100 == 0 ) {
            if ( year % 400 == 0 ) {
                return 1;
            } else {
                return 0;
            }
        } else {
            return 1;
        }
    else {
        return 0;
    }
    
}

Compiler output:
a.cc: In function 'int leap_chk(int)':
a.cc:48:5: error: expected '}' before 'else'
   48 |     else {
      |     ^~~~
a.cc:38:26: note: to match this '{'
   38 |     if ( year % 4 == 0 ) {
      |                          ^
Language: C++

#include <stdio.h>

void Leap_Year(int start_year, int end_year)
{
    if((start_year != 0) || (end_year != 0)) {
        for(int i = start_year; i <= end_year; ++i) {
            if(i % 400 != 0) {
                if((i % 100 != 0) && (i % 4 == 0)) {
                    printf("%d\n", i);
                } else {
                    printf("NA");
            } else {
                printf("%d\n", i);
            }
        }
    }
}

int main(void)
{
    int start_year, end_year;
    scanf("%d %d", &start_year, &end_year);
    Leap_Year(start_year, end_year);
    return 0;
}

Compiler output:
a.cc: In function 'void Leap_Year(int, int)':
a.cc:12:15: error: expected '}' before 'else'
   12 |             } else {
      |               ^~~~
a.cc:7:30: note: to match this '{'
    7 |             if(i % 400 != 0) {
      |                              ^
Language: C++

#include <stdio.h>

void Leap_Year(int start_year, int end_year)
{
    if ((start_year != 0) || (end_year != 0)) {
        if (end_year - start_year < 3) {
            if (((start_year % 4) < (end_year % 4)) || ((start_Year % 100) > (end_Year % 100))) { 
                if ((start_year % 400) < (end_year % 400)) {
                    printf("NA\n");
                } else {
                    printf("%d", start_year + 4 - start_year % 4);
                }
            }
        } else {
            for (int i = start_year; i <= end_year; ++i) {
                if (i % 400 != 0) {
                    if ((i % 100 != 0) && (i % 4 == 0)) {
                        printf("%d\n", i);
                    }
                } else {
                    printf("%d\n", i);
                }
            }
        }
    }
}

int main(void)
{
    int start_year, end_year;
    scanf("%d %d", &start_year, &end_year);
    Leap_Year(start_year, end_year);
    return 0;
}

Compiler output:
a.cc: In function 'void Leap_Year(int, int)':
a.cc:7:58: error: 'start_Year' was not declared in this scope; did you mean 'start_year'?
    7 |             if (((start_year % 4) < (end_year % 4)) || ((start_Year % 100) > (end_Year % 100))) {
      |                                                          ^~~~~~~~~~
      |                                                          start_year
a.cc:7:79: error: 'end_Year' was not declared in this scope; did you mean 'end_year'?
    7 |             if (((start_year % 4) < (end_year % 4)) || ((start_Year % 100) > (end_Year % 100))) {
      |                                                                               ^~~~~~~~
      |                                                                               end_year
Language: C++

#include <stdio.h>

void Leap_Year(int start_year, int end_year)
{
    while ((start_year != 0) || (end_year != 0)) {
        if (0 < end_year - start_year < 3) {
            if (((start_year % 4) < (end_year % 4)) || ((start_year % 100) > (end_year % 100))) { 
                if ((start_year % 400) < (end_year % 400)) {
                    printf("NA\n");
                } else {
                    printf("%d\n", start_year + 4 - start_year % 4);
                }
            }
        } else if(start_year == end_year) {
            if (((start_year % 4 == 0) && (start_year % 100 != 0)) || (start_year % 400 == 0)) {
                printf("%d\n", start_year);
            } else {
                printf("NA\n");
            } else {
            for (int i = start_year; i <= end_year; ++i) {
                if (i % 400 != 0) {
                    if ((i % 100 != 0) && (i % 4 == 0)) {
                        printf("%d\n", i);
                    }
                } else {
                    printf("%d\n", i);
                }
            }
        }
        scanf("%d %d", &start_year, &end_year);
        if ((start_year != 0) || (end_year != 0)) {
            printf("\n");
        }
    }
}

int main(void)
{
    
    int start_year, end_year;
    scanf("%d %d", &start_year, &end_year);
    Leap_Year(start_year, end_year);
    return 0;
}

Compiler output:
a.cc: In function 'void Leap_Year(int, int)':
a.cc:19:15: error: expected '}' before 'else'
   19 |             } else {
      |               ^~~~
a.cc:14:43: note: to match this '{'
   14 |         } else if(start_year == end_year) {
      |                                           ^
Language: C++

#include <stdio.h>

void Leap_Year(int start_year, int end_year)
{
    while ((start_year != 0) || (end_year != 0)) {
        if ((end_year - start_year > 0) && (end_year - start_year < 3)) {
            if (((start_year % 4) < (end_year % 4)) || ((start_year % 100) > (end_year % 100))) { 
                if ((start_year % 400) < (end_year % 400)) {
                    printf("NA\n");
                } else {
                    printf("%d\n", start_year + 4 - start_year % 4);
                }
            }
        } else if(start_year == end_year) {
            if (((start_year % 4 == 0) && (start_year % 100 != 0)) || (start_year % 400 == 0)) {
                printf("%d\n", start_year);
            } else {
                printf("NA\n");
            } 
        else {
            for (int i = start_year; i <= end_year; ++i) {
                if (i % 400 != 0) {
                    if ((i % 100 != 0) && (i % 4 == 0)) {
                        printf("%d\n", i);
                    }
                } else {
                    printf("%d\n", i);
                }
            }
        }
        scanf("%d %d", &start_year, &end_year);
        if ((start_year != 0) || (end_year != 0)) {
            printf("\n");
        }
    }
}

int main(void)
{
    
    int start_year, end_year;
    scanf("%d %d", &start_year, &end_year);
    Leap_Year(start_year, end_year);
    return 0;
}

Compiler output:
a.cc: In function 'void Leap_Year(int, int)':
a.cc:20:9: error: expected '}' before 'else'
   20 |         else {
      |         ^~~~
a.cc:14:43: note: to match this '{'
   14 |         } else if(start_year == end_year) {
      |                                           ^
Language: C++

#include<stdio.h>

void leap_year(int start_year, int end_year);

int main(void)
{
 int start_year;
 int end_year;
   int i = 0;
   while(1){
   scanf("%d %d", &start_year, &end_year);
   if (start_year == 0 && end_year == 0) {
     break;
  } else {
    if ( i == 1) {
      printf("\n");
  }
    leap_year(start_year, end_year);
    i = 1
   }
   }
   return 0;
}

void leap_year(int start_year, int end_year)
{
 int n = 0;
 int year = start_year;
   while (year <= end_year){
     if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)){
     printf("%d\n", year);
     n++;
   }
     year++;
 }
 if (n == 0){
   printf("NA\n");
  }
}

 

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before '}' token
   19 |     i = 1
      |          ^
      |          ;
   20 |    }
      |    ~
Language: C++

#include<stdio.h>
 
void leap_year(int start_year, int end_year);
 
int main(void)
{
 int start_year;
 int end_year;
   int i = 0;
   while(1){
   scanf("%d %d", &start_year, &end_year);
   if (start_year == 0 && end_year == 0) {
     break;
  } else {
    if (i == 1) {
      printf("\n");
  }
    leap_year(start_year, end_year);
    i = 1
   }
   }
   return 0;
}
 
void leap_year(int start_year, int end_year)
{
 int n = 0;
 int year = start_year;
   while (year <= end_year){
     if (year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)){
     printf("%d\n", year);
     n++;
   }
     year++;
 }
 if (n == 0){
   printf("NA\n");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected ';' before '}' token
   19 |     i = 1
      |          ^
      |          ;
   20 |    }
      |    ~
Language: C++

#include <stdio.h>

void uruu(int a, int b);

int main(void)
{
    int a;
    int b;
    scanf("%d %d", &a, &b);
    while (a != 0 || b != 0) {
        uruu(a, b);
        scanf("%d %d", &a, &b);
        printf("\n")
    }
    return 0;
}


void uruu(int a, int b)
{
    int count = 0;
    for (int year = a; year <= b; ++year) {
        if (year % 4 == 0) {
            if (year % 100 != 0) {
                printf("%d\n", year);
                ++count;
            } else {
                if (year % 400 == 0) {
                    printf("%d\n", year);
                    ++count;
                }
            }
        }   
    }
    if (count == 0) {
        printf("NA\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: expected ';' before '}' token
   13 |         printf("\n")
      |                     ^
      |                     ;
   14 |     }
      |     ~
Language: C++

#include <stdio.h>

void uruu(int a, int b);
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0093#
int main(void)
{
    int a;
    int b;
    scanf("%d %d", &a, &b);
    while (a != 0 || b != 0) {
        uruu(a, b);
        scanf("%d %d", &a, &b);
        printf("\n");
    }
    return 0;
}


void uruu(int a, int b)
{
    int count = 0;
    for (int year = a; year <= b; ++year) {
        if (year % 4 == 0) {
            if (year % 100 != 0) {
                printf("%d\n", year);
                ++count;
            } else {
                if (year % 400 == 0) {
                    printf("%d\n", year);
                    ++count;
                }
            }
        }   
    }
    if (count == 0) {
        printf("NA\n");
    }
}

Compiler output:
a.cc:4:1: error: 'http' does not name a type
    4 | http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0093#
      | ^~~~
Language: C++

#include <stdio.h>

void uruu(int a, int b);

int main(void)
{
    int a;
    int b;
    scanf("%d %d", &a, &b);
    while (a != 0 || b != 0) {
        uruu(a, b);
        printf("\n");
        scanf("%d %d", &a, &b);
    }
    if (a == 0 && b == 0) {
        printf("\n");
    return 0;
}


void uruu(int a, int b)
{
    int count = 0;
    for (int year = a; year <= b; ++year) {
        if (year % 4 == 0) {
            if (year % 100 != 0) {
                printf("%d\n", year);
                ++count;
            } else {
                if (year % 400 == 0) {
                    printf("%d\n", year);
                    ++count;
                }
            }
        }   
    }
    if (count == 0) {
        printf("NA\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:1: error: a function-definition is not allowed here before '{' token
   22 | {
      | ^
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<stdio.h>

void leap_year(int = x)


int main(void)
{
    int start_year, end_year, check;
    scanf(%d %d,&start_year, &end_year);
    for(int i = start_year; i =<end_year; i++){
        leap_year(i);
        check += leap_year(i);
    } 
    if(check = 0){
        printf("NA");
    }
    return 0;
}


int leap_year(int = x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc:3:22: error: 'x' was not declared in this scope
    3 | void leap_year(int = x)
      |                      ^
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(void)
      | ^~~
a.cc:21:21: error: 'x' was not declared in this scope
   21 | int leap_year(int = x)
      |                     ^
a.cc: In function 'int leap_year(int)':
a.cc:23:8: error: 'x' was not declared in this scope
   23 |     if(x % 4 = 0){
      |        ^
Language: C++

#include<stdio.h>

void leap_year(int)


int main(void)
{
    int start_year, end_year, check;
    check = 0;
    scanf(%d %d,&start_year, &end_year);
    for(int i = start_year; i =<end_year; i++){
        leap_year(i);
        check += leap_year(i);
    } 
    if(check = 0){
        printf("NA");
    }
    return 0;
}


int leap_year(int = x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc:6:1: error: expected initializer before 'int'
    6 | int main(void)
      | ^~~
a.cc:22:21: error: 'x' was not declared in this scope
   22 | int leap_year(int = x)
      |                     ^
a.cc: In function 'int leap_year(int)':
a.cc:24:8: error: 'x' was not declared in this scope
   24 |     if(x % 4 = 0){
      |        ^
Language: C++

#include<stdio.h>

void leap_year(int x);


int main(void)
{
    int start_year, end_year, check;
    check = 0;
    scanf(%d %d,&start_year, &end_year);
    for(int i = start_year; i =<end_year; i++){
        leap_year(i);
        check += leap_year(i);
    } 
    if(check = 0){
        printf("NA");
    }
    return 0;
}


int leap_year(int x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before '%' token
   10 |     scanf(%d %d,&start_year, &end_year);
      |           ^
a.cc:10:12: error: 'd' was not declared in this scope
   10 |     scanf(%d %d,&start_year, &end_year);
      |            ^
a.cc:11:32: error: expected primary-expression before '<' token
   11 |     for(int i = start_year; i =<end_year; i++){
      |                                ^
a.cc:13:27: error: void value not ignored as it ought to be
   13 |         check += leap_year(i);
      |                  ~~~~~~~~~^~~
a.cc: At global scope:
a.cc:22:5: error: ambiguating new declaration of 'int leap_year(int)'
   22 | int leap_year(int x)
      |     ^~~~~~~~~
a.cc:3:6: note: old declaration 'void leap_year(int)'
    3 | void leap_year(int x);
      |      ^~~~~~~~~
a.cc: In function 'int leap_year(int)':
a.cc:24:10: error: lvalue required as left operand of assignment
   24 |     if(x % 4 = 0){
      |        ~~^~~
Language: C++

#include<stdio.h>

int leap_year(int x);


int main(void)
{
    int start_year, end_year, counter;
    check = 0;
    scanf(%d %d, &start_year, &end_year);
    for(int i = start_year; i =< end_year; i++){
        leap_year(i);
        counter += leap_year(i);
    } 
    if( counter = 0){
        printf("NA");
    }
    return 0;
}


int leap_year(int x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'check' was not declared in this scope
    9 |     check = 0;
      |     ^~~~~
a.cc:10:11: error: expected primary-expression before '%' token
   10 |     scanf(%d %d, &start_year, &end_year);
      |           ^
a.cc:10:12: error: 'd' was not declared in this scope
   10 |     scanf(%d %d, &start_year, &end_year);
      |            ^
a.cc:11:32: error: expected primary-expression before '<' token
   11 |     for(int i = start_year; i =< end_year; i++){
      |                                ^
a.cc: In function 'int leap_year(int)':
a.cc:24:10: error: lvalue required as left operand of assignment
   24 |     if(x % 4 = 0){
      |        ~~^~~
Language: C++

#include<stdio.h>
 
int leap_year(int x);
 
 
int main(void)
{
    int start_year, end_year, counter;
    counter = 0;
    scanf(%d %d, &start_year, &end_year);
    for(int i = start_year; i =< end_year; i++){
        leap_year(i);
        counter += leap_year(i);
    } 
    if( counter = 0){
        printf("NA");
    }
    return 0;
}
 
 
int leap_year(int x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before '%' token
   10 |     scanf(%d %d, &start_year, &end_year);
      |           ^
a.cc:10:12: error: 'd' was not declared in this scope
   10 |     scanf(%d %d, &start_year, &end_year);
      |            ^
a.cc:11:32: error: expected primary-expression before '<' token
   11 |     for(int i = start_year; i =< end_year; i++){
      |                                ^
a.cc: In function 'int leap_year(int)':
a.cc:24:10: error: lvalue required as left operand of assignment
   24 |     if(x % 4 = 0){
      |        ~~^~~
Language: C++

#include<stdio.h>
  
int leap_year(int x);
  
  
int main(void)
{
    int start_year, end_year, counter;
    counter = 0;
    scanf("%d %d", &start_year, &end_year);
    for(int i = start_year; i =< end_year; i++){
        leap_year(i);
        counter += leap_year(i);
    } 
    if( counter = 0){
        printf("NA");
    }
    return 0;
}
  
  
int leap_year(int x)
{
    if(x % 4 = 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: expected primary-expression before '<' token
   11 |     for(int i = start_year; i =< end_year; i++){
      |                                ^
a.cc: In function 'int leap_year(int)':
a.cc:24:10: error: lvalue required as left operand of assignment
   24 |     if(x % 4 = 0){
      |        ~~^~~
Language: C++

#include<stdio.h>
    
int leap_year(int x);
    
    
int main(void)
{
    int start_year, end_year, counter;
    counter = 0;
    while(1){
        scanf("%d %d", &start_year, &end_year);
        if(start_year == 0 && end_year == 0){
            break;
        }else{
            for(int i = start_year; i <= end_year; i++){
                leap_year(i);
                counter += leap_year(i); 
                if( counter == 0){
                    printf("NA");
            }
        }
    }
    return 0;
}
    
    
int leap_year(int x)
{
    if(x % 4 == 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:28:1: error: a function-definition is not allowed here before '{' token
   28 | {
      | ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<stdio.h>
    
int leap_year(int x);
    
    
int main(void)
{
    int start_year, end_year, counter;
    while(1){
        scanf("%d %d", &start_year, &end_year);
        counter = 0;
        if(start_year == 0 && end_year == 0){
            break;
        }else{
            for(int i = start_year; i <= end_year; i++){
                laep_year(i);
                counter += leap_year(i); 
                }
            if( counter == 0){
                printf("NA");
            }
        }
    }
    return 0;
}
    
    
int leap_year(int x)
{
    if((x % 4 == 0 && !(x % 100 == 0)) || x % 400 == 0){
        printf("%d\n", x);
        return 1;
    }
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'laep_year' was not declared in this scope; did you mean 'leap_year'?
   16 |                 laep_year(i);
      |                 ^~~~~~~~~
      |                 leap_year
Language: C++

#include<stdio.h>
    
int leap_year(int x);
        
int main(void)
{
    int start_year, end_year, counter;
    while(1){
        scanf("%d %d", &start_year, &end_year);
        if(start_year == 0 && end_year == 0){
            break;
        }else{
            counter = 0;
            for(int i = start_year; i <= end_year; i++){
                leap_year(i);
                counter += leap_year(i); 
                }
            if( counter == 0){
                printf("NA");
            }
        }
    }
    return 0;
}
    
    
int leap_year(int x)
{
    if((x % 4 == 0 && !(x % 100 == 0)) || x % 400 == 0){
        printf("%d\n", x);
        return 1;
    }else
        return 0;
    }
} 

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

#include <stdio.h>
#include <stdbool.h>

bool is_leap_year(int y);

int get_leap_years();

int main()
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない

    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので

    while (true) {
        int year_begin, year_end;

        //読み込み
        scanf("%d %d", &year_begin, &year_end);

        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }

        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);

        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }

        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
        
    }
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true; 
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

int get_leap_years(int *leap_years_list, int year_begin, int year_end)
{
    int count = 0;//閏年の個数を数える
    for (int year = year_begin; year <= year_end; year++) {//閏年を配列に代入していく
        if (is_leap_year(year)) {
            leap_years_list[count] = year;
            count++;
        }
    }
    return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:46: error: too many arguments to function 'int get_leap_years()'
   26 |         int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);
      |                                ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:5: note: declared here
    6 | int get_leap_years();
      |     ^~~~~~~~~~~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

bool is_leap_year(int y);

int get_leap_years(int leap_years_list[1000], int year_begin, int year_end)
{
    int count = 0;
    while(int year = year_begin; year <= year_end; ++year) {
        if (is_leap_year(year) != false) {
            leap_years_list[count] = year;
            ++count;
        }
    }
    return count;
}
        

int main()
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない

    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので

    while (true) {
        int year_begin, year_end;

        //読み込み
        scanf("%d %d", &year_begin, &year_end);

        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }

        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);

        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }

        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
        
    }
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true; 
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:9:32: error: expected ')' before ';' token
    9 |     while(int year = year_begin; year <= year_end; ++year) {
      |          ~                     ^
      |                                )
a.cc:9:34: error: 'year' was not declared in this scope
    9 |     while(int year = year_begin; year <= year_end; ++year) {
      |                                  ^~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>
 
bool is_leap_year(int y);
int  get_leap_years(int list[], int begin, int end);
 
int main(void)
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない
 
    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので
 
    while (true) {
        int year_begin, year_end;
 
        //読み込み
        scanf("%d %d", &year_begin, &year_end);
 
        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }
 
        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);
 
        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }
 
        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
 
    }
}

int  get_leap_years(int list[], int begin, int end)
{
    int i;
    for (int year = begin; year <= end; year++) {
    if (is_leap_year(year)) {
    i++
    }
    return i;
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true;
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:51:8: error: expected ';' before '}' token
   51 |     i++
      |        ^
      |        ;
   52 |     }
      |     ~   
a.cc:57:1: error: a function-definition is not allowed here before '{' token
   57 | {
      | ^
a.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
a.cc:47:1: note: to match this '{'
   47 | {
      | ^
a.cc:65:2: warning: control reaches end of non-void function [-Wreturn-type]
   65 | }
      |  ^
Language: C++

#include <stdio.h>
#include <stdbool.h>
 
bool is_leap_year(int y);
int  get_leap_years(int list[], int begin, int end);
 
int main(void)
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない
 
    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので
 
    while (true) {
        int year_begin, year_end;
 
        //読み込み
        scanf("%d %d", &year_begin, &year_end);
 
        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }
 
        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);
 
        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }
 
        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
 
    }
}

int  get_leap_years(int list[], int begin, int end)
{
    int i;
    for (int year = begin; year <= end; year++) {
    if (is_leap_year(year)) {
    i++;
    }
    return i;
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true;
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:57:1: error: a function-definition is not allowed here before '{' token
   57 | {
      | ^
a.cc:65:2: error: expected '}' at end of input
   65 | }
      |  ^
a.cc:47:1: note: to match this '{'
   47 | {
      | ^
a.cc:65:2: warning: control reaches end of non-void function [-Wreturn-type]
   65 | }
      |  ^
Language: C++

#include <stdio.h>
#include <stdbool.h>
 
bool is_leap_year(int y);
int  get_leap_years(int list[], int begin, int end);
 
int main(void)
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない
 
    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので
 
    while (true) {
        int year_begin, year_end;
 
        //読み込み
        scanf("%d %d", &year_begin, &year_end);
 
        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }
 
        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);
 
        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }
 
        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
 
    }
}

int  get_leap_years(int list[], int begin, int end)
{
    int i;
    for (int year = begin; year <= end; year++) {
    if (is_leap_year(year)) {
    list[i] = year
    i++;
    }
    }
    return i;
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true;
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:51:19: error: expected ';' before 'i'
   51 |     list[i] = year
      |                   ^
      |                   ;
   52 |     i++;
      |     ~
Language: C++

#include <stdio.h>
#include <stdbool.h>
 
bool is_leap_year(int y);
int  get_leap_years(int list[], int begin, int end);
 
int main(void)
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない
 
    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので
 
    while (true) {
        int year_begin, year_end;
 
        //読み込み
        scanf("%d %d", &year_begin, &year_end);
 
        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }
 
        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);
 
        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }
 
        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
 
    }
}

int  get_leap_years(int list[], int begin, int end)
{
    int j;
    for (int year = begin; year <= end; year++) {
    if (is_leap_year(year)) {
    list[j] = year;
    j++;
    }
    }
    return i;
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true;
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:55:12: error: 'i' was not declared in this scope
   55 |     return i;
      |            ^
Language: C++

#include <stdio.h>
#include <stdbool.h>

bool is_leap_year(int y);

int get_leap_years(int* leap_years_list, int year_begin, int year_end)
{
    int j = 0;
    for (int i = year_begin, i < year_end + 1, i++) {
        if (is_leap_year(i) == true) {
            leap_years_list[j] = i;
            j++;
        }
    }
    return j;   
}

int main()
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない

    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので

    while (true) {
        int year_begin, year_end;

        //読み込み
        scanf("%d %d", &year_begin, &year_end);

        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }

        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);

        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }

        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
        
    }
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true; 
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:9:31: error: expected ';' before '<' token
    9 |     for (int i = year_begin, i < year_end + 1, i++) {
      |                               ^~
      |                               ;
a.cc:9:32: error: expected primary-expression before '<' token
    9 |     for (int i = year_begin, i < year_end + 1, i++) {
      |                                ^
a.cc:9:51: error: expected ';' before ')' token
    9 |     for (int i = year_begin, i < year_end + 1, i++) {
      |                                                   ^
      |                                                   ;
Language: C++

#include <stdio.h>
#include <stdbool.h>

bool is_leap_year(int y);

int get_leap_years(int* leap_year_array, int start_year, int final_year);
int main()
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない

    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので

    while (true) {
        int year_begin, year_end;

        //読み込み
        scanf("%d %d", &year_begin, &year_end);

        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }

        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);

        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }

        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
        
    }
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true; 
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

int get_leap_years(int* leap_year_array, int start_year, int final_year)
{
    for(int i = start_year; i <= final_year; i++){
        if(is_leap_year(i)){
            leap_year_array[count] = i;
            count++;
        }
    }
    return count + 1;
}
            

Compiler output:
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:61:29: error: 'count' was not declared in this scope
   61 |             leap_year_array[count] = i;
      |                             ^~~~~
a.cc:65:12: error: 'count' was not declared in this scope
   65 |     return count + 1;
      |            ^~~~~
Language: C++

#include <stdio.h>
#include <stdbool.h>

bool is_leap_year(int y);
int get_leap_years(int* ly_list, y_bgn, y_end);

int main()
{
    int leap_years_list[1000]; //A.D. 0 - A.D. 3000 の間に閏年は高々1000個しかない

    bool first_set = true; //一つ目のセットの前にだけは改行を入れてはいけないので

    while (true) {
        int year_begin, year_end;

        //読み込み
        scanf("%d %d", &year_begin, &year_end);

        //終了判定
        if (year_begin == 0 && year_end == 0) {
            break;
        }

        //閏年を計算する
        int leap_years_count = get_leap_years(leap_years_list, year_begin, year_end);

        //セットとセットの間には空行を入れる
        if (first_set) {
            first_set = false;
        } else {
            putchar('\n'); //putcharは一文字だけ出力する関数です
        }

        //閏年を出力
        if (leap_years_count == 0) {
            puts("NA"); //putsは与えられた文字列を出力した後改行する関数です
        } else {
            for (int i = 0; i < leap_years_count; i++) {
                printf("%d\n", leap_years_list[i]);
            }
        }
        
    }
}

bool is_leap_year(int y)
{
    if (y % 400 == 0) {
        return true; 
    } else if (y % 100 == 0) {
        return false;
    } else {
        return y % 4 == 0;
    }
}

int get_leap_years(int* ly_list, y_bgn, y_end)
{
    int count = 0;
    for ( int ly = y_bgn; ly <= y_end; ly ++ ) {
        if ( is_leap_year ( ly ) == true ) {
            ly_list[count] = ly;
            count ++;
        }
    }
    return count;
}

Compiler output:
a.cc:5:34: error: 'y_bgn' has not been declared
    5 | int get_leap_years(int* ly_list, y_bgn, y_end);
      |                                  ^~~~~
a.cc:5:41: error: 'y_end' has not been declared
    5 | int get_leap_years(int* ly_list, y_bgn, y_end);
      |                                         ^~~~~
a.cc:57:34: error: 'y_bgn' has not been declared
   57 | int get_leap_years(int* ly_list, y_bgn, y_end)
      |                                  ^~~~~
a.cc:57:41: error: 'y_end' has not been declared
   57 | int get_leap_years(int* ly_list, y_bgn, y_end)
      |                                         ^~~~~
a.cc: In function 'int get_leap_years(int*, int, int)':
a.cc:60:20: error: 'y_bgn' was not declared in this scope
   60 |     for ( int ly = y_bgn; ly <= y_end; ly ++ ) {
      |                    ^~~~~
a.cc:60:33: error: 'y_end' was not declared in this scope
   60 |     for ( int ly = y_bgn; ly <= y_end; ly ++ ) {
      |                                 ^~~~~
Language: C++


#include<iostream>
#include<string>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<complex>
using namespace std ;
typedef vector<int> vi ;
typedef vector<vi> vvi ;
typedef vector<string> vs ;
typedef pair<int, int> pii; 
typedef long long ll ;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()

int main(void){
  int b,e;
  bool fa=false;
  while(cin >> b >> e , b+e){
    if(fa)cout<<endl;
    bool na=false;
    loop(i,b,e){
      if(!i%400){
	cout<< i << endl;
	count++;
      }
      if(i%100 && !i%4){
	cout<<i<<endl;
	na=true;
      }
    }
    na?cout<<"NA"<<endl:;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:14: error: no post-increment operator for type
   30 |         count++;
      |              ^~
a.cc:37:25: error: expected primary-expression before ';' token
   37 |     na?cout<<"NA"<<endl:;
      |                         ^
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include<iostream>

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

            if (isN) {
                printf("NA\n");
            }
            printf("\n");
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:51: error: expected ';' before '{' token
   15 |             if ((i%4==0)&&((i&100!=0)||(i&400==0)){
      |                                                   ^
      |                                                   ;
a.cc:20:13: error: expected primary-expression before 'if'
   20 |             if (isN) {
      |             ^~
a.cc:18:14: error: expected ')' before 'if'
   18 |             }
      |              ^
      |              )
   19 | 
   20 |             if (isN) {
      |             ~~
a.cc:15:16: note: to match this '('
   15 |             if ((i%4==0)&&((i&100!=0)||(i&400==0)){
      |                ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected initializer before 'answer'
    5 |     int a, b, year answer;
      |                    ^~~~~~
a.cc:11:9: error: 'answer' was not declared in this scope
   11 |         answer = 0;
      |         ^~~~~~
a.cc:12:14: error: 'year' was not declared in this scope
   12 |         for (year = a; year <= b; year++) {
      |              ^~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected initializer before 'answer'
    5 |     int a, b, year answer;
      |                    ^~~~~~
a.cc:11:9: error: 'answer' was not declared in this scope
   11 |         answer = 0;
      |         ^~~~~~
a.cc:12:14: error: 'year' was not declared in this scope
   12 |         for (year = a; year <= b; year++) {
      |              ^~~~
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   13 |             pritnf("\n");
      |             ^~~~~~
      |             printf
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   13 |             pritnf("\n");
      |             ^~~~~~
      |             printf
Language: C++

#include <stdio.h>
	
int uruu(int first, int end)
{
	int count = 0;
	for (int i = first; i < end + 1; i++) 
	{	
		if (i % 400 == 0) {
		    count = count + 1;
			printf("%d\n", i);
		} else if (i % 100 == 0) {
			i = i + 3;
		}else if (i % 4 == 0) {
			printf("%d\n", i);
			count = count + 1;
		}
	}
	if (count == 0) {
		printf("NA\n");
}
	
int main(void)
{	
	while (1) {
		static int first, end;
		scanf("%d %d", &first, &end);
		if (first == 0 && end == 0) {
			break;
		} else {
			uruu(first, end);
			printf("\n");
		}
	}
}

Compiler output:
a.cc: In function 'int uruu(int, int)':
a.cc:23:1: error: a function-definition is not allowed here before '{' token
   23 | {
      | ^
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:34:2: warning: no return statement in function returning non-void [-Wreturn-type]
   34 | }
      |  ^
Language: C++

#include <stdio.h>
	
int uruu(int first, int end)
{
	int count = 0;
	for (int i = first; i < end + 1; i++) {	
		if ((i % 400 != 0 && i % 100 == 0 && i - first <= 3 && end - i <= 3) || (first == end)) {
			printf("NA\n");
			count = count + 1;		
		}
		if (i % 400 == 0) {
			printf("%d\n", i);
			count = count + 1;
		} else if (i % 100 == 0) {
			i = i + 3;
		}else if (i % 4 == 0) {
			printf("%d\n", i);
			count = count + 1;
		}
	}
	if (count == 0) {
		printf("NA\n")
	}
}
	
int main(void)
{	
	while (1) {
		static int first, end;
		scanf("%d %d", &first, &end);
		if (first == 0 && end == 0) {
			break;
		} else {
			uruu(first, end);
			printf("\n");
		}
	}
}

Compiler output:
a.cc: In function 'int uruu(int, int)':
a.cc:22:31: error: expected ';' before '}' token
   22 |                 printf("NA\n")
      |                               ^
      |                               ;
   23 |         }
      |         ~                      
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
Language: C++

include <stdio.h>
	
int uruu(int first, int end)
{
	int count = 0;
	for (int i = first; i < end + 1; i++) {	
		if (i % 400 == 0 && i % 100 != 0) {
			printf("%d\n", i);
			count = count + 1;
		} else if (i % 100 == 0) {
			i = i + 3;
		} else if (i % 4 == 0) {
			printf("%d\n", i);
			count = count + 1;
		}
	}
	if (count == 0) {
		printf("NA\n");
	}
}
	
int main(void)
{	
	while (1) {
		static int first, end;
		scanf("%d %d", &first, &end);
		if (first == 0 && end == 0) {
			break;
		} else {
			uruu(first, end);
			printf("\n");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:26:17: error: 'scanf' was not declared in this scope
   26 |                 scanf("%d %d", &first, &end);
      |                 ^~~~~
a.cc:30:25: error: 'uruu' was not declared in this scope
   30 |                         uruu(first, end);
      |                         ^~~~
a.cc:31:25: error: 'printf' was not declared in this scope
   31 |                         printf("\n");
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <stdio.h>