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

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

bool judge(int year)
{
    bool flag;
    if (year % 400 == 0) {
        flag = true;                
    } else if (year % 100 == 0) {
        flag = false;
    } else if (year % 4 == 0) {
        flag = true;
    }
    return flag;
}

int main(void)
{ 
    while (true) {
        int x, y;
        bool exist = false;
        scanf("%d%d", &x, &y);
        if (x == 0 && y == 0) {
            break;
        }
        for (int i = x;i <= y; ++i) {
            bool flag = judge(i)
	    if (flag == true) {
                printf("%d\n", i);
                exist = true;
            } 
        }
        if (exist == 0) {
            printf("NA\n");
        }
        printf("\n");
    }   
    return 0;        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: expected ',' or ';' before 'if'
   28 |             if (flag == true) {
      |             ^~
Language: C++

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

bool judge(int year)
{
    bool flag;
    if (year % 400 == 0) {
        flag = true;                
    } else if (year % 100 == 0) {
        flag = false;
    } else if (year % 4 == 0) {
        flag = true;
    }
    return flag;
}

int main(void)
{ 
    while (true) {
        int x, y;
        bool exist = false;
        scanf("%d%d", &x, &y);
        if (x == 0 && y == 0) {
            break;
        }
        for (int i = x;i <= y; ++i) {
            bool flag = judge(i);
	    if (flag == true) {
                printf("%d\n", i);
                exist = true;
        } 
        if (exist == 0) {
            printf("NA\n");
        }
        printf("\n");
           
    }
    return 0;        
}

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

#include <stdio.h>

void uru(int year);

int main(void)
{
    int a, b;
    int year;
    int j;
    while (true) {
    scanf("%d %d", &a, &b);
    if (a == 0 && b == 0) {
        break;
    } else {
        for (year = a; year < b; ++year) {
            uru(year);
        }
    } else if (j == 0) {
        printf("NA\n");
    }
    return 0;
}

void uru(int year)
{
    int j = 0;
    int R4, R100, R400;
    R4 = year % 4;
    R100 = year % 100;
    R400 = year % 400;
    if (R4 == 0 && R100 != 0) {
        printf("%d\n", year);
        ++j;
    } else if (R400 == 0) {
        printf("%d\n", year);
        ++j;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'else' without a previous 'if'
   18 |     } else if (j == 0) {
      |       ^~~~
a.cc:25:1: error: a function-definition is not allowed here before '{' token
   25 | {
      | ^
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

File Edit Options Buffers Tools C Help
#include <stdio.h>
int main(void)
{
    int start, finish;
    int exist;
    while(1){
        exist = 0;
        scanf("%d %d", &start, &finish);
        if (start == 0 && finish == 0) {
            break;
        }
        for(; start <= finish; start++) {
            if((start % 4 == 0 && start % 100 != 0) || start % 400 == 0) {
            printf("%d\n", start);
            ++exist;
            }
        }
        if (exist == 0) {
            printf("NA\n");
        }
    }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'File' does not name a type
    1 | File Edit Options Buffers Tools C Help
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf' was not declared in this scope
    9 |         scanf("%d %d", &start, &finish);
      |         ^~~~~
a.cc:15:13: error: 'printf' was not declared in this scope
   15 |             printf("%d\n", start);
      |             ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include <stdio.h>
  +++ |+#include <cstdio>
    3 | int main(void)
a.cc:20:13: error: 'printf' was not declared in this scope
   20 |             printf("NA\n");
      |             ^~~~~~
a.cc:20:13: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>
using namespace std;
#include <algorithm>
#include <stdio.h>
int main(void)
{
	int a[100], b[100], i = 0, j, k;
	bool flag = false;
	
	while (1){
		scanf_s("%d %d", &a[i], &b[i]);
		if (a[i] == 0 && b[i] == 0) break;
		if (a[i] % 400 < 400 - 4){ a[i] += 4 - (a[i] % 4); }
		i++;
	}
	for (j = 0; j <= i; j++){
		if (j != 0) { printf("\n"); }
		for (k = a[j]; k < b[j];k+=4){
			if (k % 100 == 0){
				if (k % 400 == 0) {
					printf("%d\n", k); 
					flag = true; 
				}
			}
			else {
				printf("%d\n", k);
				if (k % 400 > 400 - 4){
					printf( "%d\n", k + (400 - (k % 400)) ); 
				}
				flag = true;
			}
		}
		if (flag == false) { printf("NA\n"); }
		flag = false;
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int fiyear,finyear,co=0;
    while(cin>>fiyear>>finyear&&fiyear!=0&&finyear!=0){
        for(int i=0;(fiyear+i)=<finyear;i++){
            if((fiyear+i)%4==0){
                co=1;
                if((fiyear+i)%100!=0||(fiyear+i)%400==0)cout<<fiyear+i<<endl;
            }
        }
        if(co==0)cout<<"NA"<<endl;
        cout<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected primary-expression before '<' token
    7 |         for(int i=0;(fiyear+i)=<finyear;i++){
      |                                ^
Language: C++

#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int t=0;
	while(1){
		int a,b;
		cin>>a>>b;
		if(a==0&&b==0)break;
		if(!)puts("");
		int fg=0;
		for(int  i=a;i<=b;i++){
			if(!(i%400)){
				cout<<i<<endl;
				fg=1;
			}
			else if(!(i%100))continue;
			else if(!(i%4)){
				cout<<i<<endl;
				fg=1;
			}
		}
		if(!fg)cout<<"NA"<<endl;
		t++;
	}
	return 0;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected primary-expression before ')' token
   12 |                 if(!)puts("");
      |                     ^
Language: C++

#include <iostream>

bool inputValCheck(int input_n1, input_n2);
void printLeapYear(int start_y, int end_y);
bool isLeapYear(int year);


int main()
{
    int start_year, end_year;
    std::cin >> start_year >> end_year;
    if (inputValCheck(start_year, end_year)) {
        printLeapYear(start_year, end_year);
    }
    return 0;
}

bool inputValCheck(int input_n1, int input_n2);
{
    if (input_n1 <= 0 || input_n1 > input_n2 || input_n2 >= 1000) {
        return false;
    }
    return true;
}


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

void printLeapYear(int start_y, int end_y)
{
    bool is_leap_year = false;
    for (int i = start_y; i <= end_y; i++) {
        if (isLeapYear(i) == true) {
            std::cout << i << std::endl;
        }
    }
}

Compiler output:
a.cc:3:34: error: 'input_n2' has not been declared
    3 | bool inputValCheck(int input_n1, input_n2);
      |                                  ^~~~~~~~
a.cc:19:1: error: expected unqualified-id before '{' token
   19 | {
      | ^
Language: C++

#include <iostream>
 
bool inputValCheck(int input_n1, int input_n2);
void printLeapYear(int start_y, int end_y);
bool isLeapYear(int year);
 
 
int main()
{
    int start_year, end_year;
    std::cin >> start_year >> end_year;
    if (inputValCheck(start_year, end_year)) {
        printLeapYear(start_year, end_year);
    }
    return 0;
}
 
bool inputValCheck(int input_n1, int input_n2);
{
    if (input_n1 <= 0 || input_n1 > input_n2 || input_n2 >= 1000) {
        return false;
    }
    return true;
}
 
 
bool isLeapYear(int year)
{
    if (year % 400 == 0) {
        return true;
    } else if (year % 100 == 0) {
        return false;
    } else if (year % 4 == 0) {
        return true;
    } else {
        return false;
    }
}
 
void printLeapYear(int start_y, int end_y)
{
    bool is_leap_year = false;
    for (int i = start_y; i <= end_y; i++) {
        if (isLeapYear(i) == true) {
            std::cout << i << std::endl;
        }
    }
}

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

include <iostream>

bool ifEndValInput(int input_n1, int input_n2);
bool inputValRangeCheck(int input_n1, int input_n2);
void printLeapYear(int start_y, int end_y);
bool isLeapYear(int year);
 
 
int main()
{
    int start_year, end_year;
    while (true) {
        std::cin >> start_year >> end_year;
        if (ifEndValInput(start_year, end_year)) {
            break;
        }
        if (inputValRangeCheck(start_year, end_year)) {
            printLeapYear(start_year, end_year);
        }
    }
    return 0;
}

bool ifEndValInput(int input_n1, int input_n2)
{
    if (input_n1 == 0 && input_n2 == 0) {
        return true;
    }
    return false;
}

bool inputValRangeCheck(int input_n1, int input_n2)
{
    if (input_n1 <= 0 || input_n1 > input_n2 || input_n2 >= 1000) {
        return false;
    }
    return true;
}
 
 
bool isLeapYear(int year)
{
    if (year % 400 == 0) {
        return true;
    } else if (year % 100 == 0) {
        return false;
    } else if (year % 4 == 0) {
        return true;
    } else {
        return false;
    }
}
 
void printLeapYear(int start_y, int end_y)
{
    bool is_leap_year = false;
    for (int i = start_y; i <= end_y; i++) {
        if (isLeapYear(i) == true) {
            std::cout << i << std::endl;
        }
    }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:13:14: error: 'cin' is not a member of 'std'
   13 |         std::cin >> start_year >> end_year;
      |              ^~~
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:14:13: error: 'ifEndValInput' was not declared in this scope
   14 |         if (ifEndValInput(start_year, end_year)) {
      |             ^~~~~~~~~~~~~
a.cc: In function 'void printLeapYear(int, int)':
a.cc:59:18: error: 'cout' is not a member of 'std'
   59 |             std::cout << i << std::endl;
      |                  ^~~~
a.cc:59:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:59:36: error: 'endl' is not a member of 'std'
   59 |             std::cout << i << std::endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | include <iostream>
Language: C++

#include <iostream>
#include <stdio.h>

bool judge(int year);

int main() 
{
	int a, b;
	
	while (true) {
		int check = 0;
		std::cin >> a >> b;
		
		if (start == 0 && end == 0) {
			break;
		}
		
		for (int i = a; i <= b; i++) {
			if (judge(i)) {
				std::cout << i << std::endl;
				check = 1;
			}
		}
		
		if (check == 0) {
			std::cout << "NA" << std::endl;
		}
		
		std::cout << std::endl;
	}
	return 0;
}


bool judge(int year){
	if ((year % 4 == 0 && !(year % 100 == 0)) || year % 400 == 0) {
		return true;
	} else {
		return false;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'start' was not declared in this scope
   14 |                 if (start == 0 && end == 0) {
      |                     ^~~~~
a.cc:14:35: error: 'end' was not declared in this scope; did you mean 'std::end'?
   14 |                 if (start == 0 && end == 0) {
      |                                   ^~~
      |                                   std::end
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include <iostream>



bool judge(int year);

int main() 
{
	int start, end;
	
	while (true) {
		int check = 0;
		std::cin >> start >> end;
		
		std::cout << std::endl;
		
		if (start == 0 && end == 0) {
			break;
		}
		
		for (int i = start; i <= end; i++) {
			if (judge(i)) {
				std::cout << i << std::endl;
				check = 1;
			}
		}
		
		if (check == ) {
			std::cout << "NA" << std::endl;
		}
		
	}
	return 0;
}


bool judge(int year){
	if ((year % 4 == 0 && !(year % 100 == 0)) || year % 400 == 0) {
		return true;
	} else {
		return false;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:30: error: expected primary-expression before ')' token
   28 |                 if (check == ) {
      |                              ^
Language: C++

#include <iostream>

bool judgeUruyear(int year)
{

    if (year % 400 == 0) {
        return true;
    } else if (year % 100 == 0) {
        return false;
    } else if (year % 4 == 0) {
        return true;
    } else {
        return false;
    }

}

//int flag = 0;

void printUruyear(int year_begin, int year_end)
{

  //  if(flag == 1){
        std::cout << std::endl;
    //}
    flag = 1;

    int count_year = 0;

    // kono for loop no jyouken-siki ha "=" hituyou
    for (int i = year_begin; i <= year_end; i++) {
        
        if (judgeUruyear(i)) {

            count_year += 1;
            std::cout << i << std::endl;
        }    
    }

    if (count_year == 0) { 
        std::cout << "NA" << std::endl;
    }
    
}

int main()
{
    int year_begin, year_end;

    while (true) {

        std::cin >> year_begin >> year_end;

        if (year_begin == 0 && year_end == 0) {
            break;
        }

        printUruyear(year_begin, year_end);
    }
    
    return 0;
}

// http://judge.u-aizu.ac.jp/onlinejudge/review.jsp?rid=1877346#1

Compiler output:
a.cc: In function 'void printUruyear(int, int)':
a.cc:26:5: error: 'flag' was not declared in this scope
   26 |     flag = 1;
      |     ^~~~
Language: C++

include <iostream>

void leapYear(int, int);
int main()
{
    while (true) {
        int a, b;
        std::cin >> a >> b;
        if (a == 0 && b == 0) {
            break;
        }
        leapYear(a, b);
        std::cout << std::endl;
    }
    return 0;
}
void leapYear(int a, int b)
{
    int i = 0;
    for (int year = a; year <= b; ++year) {
        if ((year % 4 == 0 && year % 100 !=0) || (year % 400 == 0)) {
            std::cout << year <<std::endl;
            ++i;
        }
    }
    if (i == 0) {
        std::cout << "NA" <<std::endl;
    }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:14: error: 'cin' is not a member of 'std'
    8 |         std::cin >> a >> b;
      |              ^~~
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:12:9: error: 'leapYear' was not declared in this scope
   12 |         leapYear(a, b);
      |         ^~~~~~~~
a.cc:13:14: error: 'cout' is not a member of 'std'
   13 |         std::cout << std::endl;
      |              ^~~~
a.cc:13:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:27: error: 'endl' is not a member of 'std'
   13 |         std::cout << std::endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | include <iostream>
a.cc: In function 'void leapYear(int, int)':
a.cc:22:18: error: 'cout' is not a member of 'std'
   22 |             std::cout << year <<std::endl;
      |                  ^~~~
a.cc:22:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:38: error: 'endl' is not a member of 'std'
   22 |             std::cout << year <<std::endl;
      |                                      ^~~~
a.cc:22:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:27:14: error: 'cout' is not a member of 'std'
   27 |         std::cout << "NA" <<std::endl;
      |              ^~~~
a.cc:27:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:27:34: error: 'endl' is not a member of 'std'
   27 |         std::cout << "NA" <<std::endl;
      |                                  ^~~~
a.cc:27:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <cstdio>

using namespace std;

bool isLeap(int i);

int main()
{
    int a, b;
    bool flag = false;
    while (cin >> a >> b, a || b) {
        bool fl = false;
        if (flag) {
            puts("");
        } else {
            flag = true;
        }
        for (int i = a; i <= b; i++) {
            if (isLeap(i)) {
                fl = true;
                cout << i << '\n';
            }
        }
        if (!fl) {
            puts("NA");
        }
    }
    return 0;
}

bool isLeap(int i)
{
    if (!(i % 400) ) {
        return true;
    } else if (!(i % 100) ) {
        return false;
    } else if (!(i % 4) ) {
        return true;
    } else {
        return false;
    }

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

#include <iostream>

int main() {
    int a, b, n = 0;
    std::cin >> a >> b;
    while (a != 0 && b != 0) {
        for (int i = a; i <= b; ++i) {
            if (i % 400 == 0) {
                std::cout << i << std::endl;
                n += 1;
            } else if (i % 100 != 0 && i % 4 == 0) {
                std::cout << i << std::endl;
                n += 1;
            } else  {
                continue;
            }
        }
        if (n == 0) {
            std::cout << "NA" << std::endl;
        }
        std::endl;
        std::cin >> a >> b;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: statement cannot resolve address of overloaded function
   21 |         std::endl;
      |                  ^
Language: C++

#include <iostream>

using namespace std;

bool uru[3000];

void q93() {
	memset(uru, 0, sizeof(uru));
	for (int i = 0; i < 3000; i += 4) {
		uru[i] = true;
	}
	for (int i = 0; i < 3000; i += 100) {
		uru[i] = false;
	}
	for (int i = 0; i < 3000; i += 400) {
		uru[i] = true;
	}

	int a, b;
	for (; cin >> a >> b;) {
		if (!a) break;
		bool print_flag = false;
		for (int i = a; i < b; i++) {
			if (uru[i]) {
				cout << i << endl;
				print_flag = true;
			}
		}
		if (!print_flag) cout << "NA" << endl;
		cout << endl;
	}
}
int main() {
	q93();
	return 0;
}

Compiler output:
a.cc: In function 'void q93()':
a.cc:8:9: error: 'memset' was not declared in this scope
    8 |         memset(uru, 0, sizeof(uru));
      |         ^~~~~~
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 |
Language: C++

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

int main(){
    int a,b;
    con >>a>>b;
    for(int i=a;i<b+1;i++){
        if(i%4==0){
            ans += 1
        }
        if(i%100==0){
            ans -= 1
        }
        if(i%400==0){
            ans += 1
        }
    }
    if(ans == 0){
        cout <<"NA"<<endl;
    }else{
        cout <<ans<<endl;
    }

    
    
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'con' was not declared in this scope; did you mean 'cos'?
    6 |     con >>a>>b;
      |     ^~~
      |     cos
a.cc:9:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |             ans += 1
      |             ^~~
      |             abs
a.cc:12:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |             ans -= 1
      |             ^~~
      |             abs
a.cc:15:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |             ans += 1
      |             ^~~
      |             abs
a.cc:18:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     if(ans == 0){
      |        ^~~
      |        abs
Language: C++

int a, b;
while (cin >> a >> b && a != 0 && b != 0) {
  int p = 1;
  if (p) {
    cout << endl;
    p = 0;
  }
  int flag = 1;
  for (int i = a; i <= b; i++) {
    if (i % 100 == 0 && i % 400 != 0) {
      // continue;
    } else if (i % 4 == 0 && i % 100 != 0) {
      cout << i << endl;
      flag = 0;
    } else if (i % 400 == 0) {
      cout << i << endl;
      flag = 0;
    } else {
      // continue;
    }
  }
  if (flag) {
    cout << "NA" << endl;
  }
}
return 0;
}



Compiler output:
a.cc:2:1: error: expected unqualified-id before 'while'
    2 | while (cin >> a >> b && a != 0 && b != 0) {
      | ^~~~~
a.cc:26:1: error: expected unqualified-id before 'return'
   26 | return 0;
      | ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

#include <bits/stdc++.h>

#define stirng string
#define vvi vector<vector<int>>
#define vi vector<int>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;

const int inf = 1e9 + 7;

/*int main() {
  string a;
  cin >> a;
  string s = "";
  for (int i = 0; i < 10; i++) {
    s += a[i];
  }
  for (int i = 0; i < 44; i++) {
    int t = s[0 + i] - '0';
    int u = s[1 + i] - '0';
    s += (t + u) % 10 + '0';
  }
  cout << s[54] << endl;
  return 0;
}*/
int a, b;
while (cin >> a >> b && a != 0 && b != 0) {
  int p = 1;
  if (p) {
    cout << endl;
    p = 0;
  }
  int flag = 1;
  for (int i = a; i <= b; i++) {
    if (i % 100 == 0 && i % 400 != 0) {
      // continue;
    } else if (i % 4 == 0 && i % 100 != 0) {
      cout << i << endl;
      flag = 0;
    } else if (i % 400 == 0) {
      cout << i << endl;
      flag = 0;
    } else {
      // continue;
    }
  }
  if (flag) {
    cout << "NA" << endl;
  }
}
return 0;
}



Compiler output:
a.cc:27:1: error: expected unqualified-id before 'while'
   27 | while (cin >> a >> b && a != 0 && b != 0) {
      | ^~~~~
a.cc:51:1: error: expected unqualified-id before 'return'
   51 | return 0;
      | ^~~~~~
a.cc:52:1: error: expected declaration before '}' token
   52 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

bool isLeapYear(int y){
    return ( year%4 == 0 && year%100 != 0 || year%400 == 0 )? true : false ;
}

int main(){
	int a,b;
	bool flag, iniFlag = true;
	
	while( cin >> a >> b , a || b ){
		flag = true;
		if( iniFlag == false ){
			cout << endl;
		}else{
			iniFlag = false;
		}	

		for(int i=a ; i<=b ; i++){
			if( isLeapYear(i) ){
				flag = false;
				cout << i << endl;
			}
		}
		if( flag ) cout << "NA" << endl;		
	}
}

Compiler output:
a.cc: In function 'bool isLeapYear(int)':
a.cc:5:14: error: 'year' was not declared in this scope
    5 |     return ( year%4 == 0 && year%100 != 0 || year%400 == 0 )? true : false ;
      |              ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(void)
{
  int a, b;
  vector <int> hoge, leap;

  while (1) {
    cin  >> a >> b;
    if (a == 0 && b == 0)
      break;
    hoge.push_back(a);
    hoge.push_back(b);
  }
  for (int i = 0; i < hoge.size(); i += 2) {
    for (int j = hoge[i]; j <= hoge[i+1]; j++)
      if (j % 400 == 0 || (j % 100 && j % 4 == 0))
        leap.push_back(j);
    if (!leap.empty()) {
      for (int j = 0; j < leap.size(); j++)
        cout << leap[j] << endl;
      erase(leap.begin(), leap.end());
    } else {
      cout << "NA" << endl;
    }
    cout << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:7: error: 'erase' was not declared in this scope
   25 |       erase(leap.begin(), leap.end());
      |       ^~~~~
Language: C++

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

int main(){
  int a,b,k=0,i,j=0;
  
  while(1){
    cin>>a>>b;
    if(a==0&&b==0)break;
   
    if(j) cout<<endl;
    k=0;
    for(i=a;i<=b;i++){
      if(i%4==0&&i%100!=0){cout<<i<<endl;k++;}
      if(i%400==0){cout<<i<<endl;k++}
    }    
    if(k==0)cout<<"NA"<<endl;
    j=1;  
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:37: error: expected ';' before '}' token
   16 |       if(i%400==0){cout<<i<<endl;k++}
      |                                     ^
      |                                     ;
Language: C++

#include<iostream>
#include<vector>

using namespace std;

int main(){
  int i, a, b, leap, count=0;
  vector<int> leapyear;

  while(1){
    cin >> a >> b;
    if(a == 0 && b == 0) break;
    else if(count != 0) cout << endl;

    for(i=a; i<=b; ++i){
      if(i%400 == 0)
	leap = 1;
      else if(i%100 == 0)
	leap = 0;
      else if(i%4 == 0)
	leap = 1;
      else
	leap = 0;

      if(leap == 1)
	leapyear.push_back(i);
    }

    if(leapyear.size() == 0){
      cout << "NA" << endl;
    }else{
      for(vector<int>::size_type i=0; i != leapyear.size(); ++i)
	cout << leapyear[i] << endl;
    }

    leapyear.clear();
    ++count;
  }

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


import java.util.*;

import static java.lang.Math.*;
import static java.util.Arrays.*;

public class Main {

	int INF = 1 << 28;
	
	void run() {
		Scanner sc = new Scanner(System.in);
		while(true) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			if( a == 0 && b == 0) break;
			LinkedList<Integer> ans = new LinkedList<Integer>();
			for(int i=a;i<=b;i++) {
				if(i%400 == 0) ans.add(i);
				else if(i%100 != 0 && i%4 == 0) ans.add(i);
			}
			if(ans.isEmpty()) System.out.println("NA");
			else {
				for(int i:ans) {
					System.out.println(i);
				}
			}
			System.out.println();
		}
	}
	
	public static void main(String[] args) {
		new Main().run();
	}
}

Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import static java.lang.Math.*;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import static java.util.Arrays.*;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:25: error: 'a' was not declared in this scope
    3 |           scanf("%d%d",&a,&b);
      |                         ^
a.cc:3:28: error: 'b' was not declared in this scope
    3 |           scanf("%d%d",&a,&b);
      |                            ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	while(1){
	cin >> a >> b;&#160;
	if(a ==0 && b == 0) return 0;
	int k = 0;
	
	for(int i = a;;i++){
		if(i % 4 == 0){
		a = i; break;
		}
	}
	for(int i = a ;i<=b;){
		
		if(i % 100 == 0){
			if(i % 400 == 0){
			cout << i << endl; k++;
			}
		} else if(i % 4 == 0){
		cout << i << endl; k++;
		
		}
		i+=4;
		}
		if(k ==0) cout << "NA" << endl ;
		cout << endl;		
		}
	}

Compiler output:
a.cc:6:24: error: stray '#' in program
    6 |         cin >> a >> b;&#160;
      |                        ^
a.cc: In function 'int main()':
a.cc:6:25: error: lvalue required as unary '&' operand
    6 |         cin >> a >> b;&#160;
      |                         ^~~
Language: C++




#include<iostream>
using namespace std;
int main(){
	int a,b;
	while(1){
	cin >> a >> b; 
	if(a ==0 && b == 0) return 0;
	int k = 0;
	
	for(int i = a;;i++){
		if(i % 4 == 0){
		a = i; break;
		}
	}
	for(int i = a ;i<=b;){
		
		if(i % 100 == 0){
			if(i % 400 == 0){
			cout << i << endl; k++;
			}
		} else if(i % 4 == 0){
		cout << i << endl; k++;
		
		}
		i+=4;
		}
		if(k ==0) cout << "NA" << endl ;
		cout << endl;		
		}

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

#include<iostream>
using namespace std;
int main(){
	int a,b;
	while(1){
	cin >> a >> b;&#160;
	cout << endl;
	if(a ==0 && b == 0) return 0;
	int k = 0;
	
	for(int i = a ;i<=b;i++){
		if(i % 100 == 0){
			if(i % 400 == 0){
			cout << i << endl; k++;
			}
		} else if(i % 4 == 0){
		cout << i << endl; k++;
			}
		}
		
		if(k ==0) cout << "NA" << endl ;
				
		
		}
	
	}

Compiler output:
a.cc:6:24: error: stray '#' in program
    6 |         cin >> a >> b;&#160;
      |                        ^
a.cc: In function 'int main()':
a.cc:6:25: error: lvalue required as unary '&' operand
    6 |         cin >> a >> b;&#160;
      |                         ^~~
Language: Java


public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		double c = 3.305785;
		System.out.println(a * b / c);
	}

}

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

import java.util.Scanner;

//Calculation of Area
public class Main {

	void run(){
		Scanner sc = new Scanner(System.in);
		System.out.printf("%.8f\n", sc.nextInt()*sc.nextInt()/3.305785);
	}
	
	public static void main(String[] args) {
		new AOJ0094().run();
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		new AOJ0094().run();
		    ^
  symbol:   class AOJ0094
  location: class Main
1 error
Language: Java

import java.util.Scanner;

//Calculation of Area
public class Main {

	void run(){
		Scanner sc = new Scanner(System.in);
		System.out.printf("%.8f\n", sc.nextInt()*sc.nextInt()/3.305785);
	}
	
	public static void main(String[] args) {
		new Main.run();
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
		new Main.run();
		        ^
  symbol:   class run
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Main{
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		
		while ( sc.hasNext() ){
		
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		
		double x = a * b ;
		double S = x / 3.305785 ;
		
		BigDecimal bix = new BigDecimal (String.valueOf(S));
		S =bix.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
				
		System.out.println( S );
	
		}

	}

}

Compiler output:
Main.java:18: error: cannot find symbol
		BigDecimal bix = new BigDecimal (String.valueOf(S));
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:18: error: cannot find symbol
		BigDecimal bix = new BigDecimal (String.valueOf(S));
		                     ^
  symbol:   class BigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
		S =bix.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
		                   ^
  symbol:   variable BigDecimal
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main{
	static Scanner sc =  new java.util.Scanner(System.in);

	public static void main(String[] args) {
		
		
		while ( sc.hasNext() ){
		
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		
		double x = a * b ;
		double s = x / 3.305785 ;
		
		BigDecimal bix = new BigDecimal (String.valueOf(s));
		s =bix.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
				
		System.out.println( s );
	
		}

	}

}

Compiler output:
Main.java:18: error: cannot find symbol
		BigDecimal bix = new BigDecimal (String.valueOf(s));
		^
  symbol:   class BigDecimal
  location: class Main
Main.java:18: error: cannot find symbol
		BigDecimal bix = new BigDecimal (String.valueOf(s));
		                     ^
  symbol:   class BigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
		s =bix.setScale(6, BigDecimal.ROUND_HALF_UP).doubleValue();
		                   ^
  symbol:   variable BigDecimal
  location: class Main
3 errors
Language: Java

public class main {


	public static void main(String[] args) {

		double tsubo = 3.305785;

		int vertical  = Integer.parseInt(args[0]);

		int side  = Integer.parseInt(args[1]);

		double land = (vertical * side) / tsubo;

		System.out.println(land);

	}

}

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

#include <stdio.h>

int main(){
    int a, b;
	
	scanf("%d %d", &a, &b)
	
	printf("%lf\n", (a * b) / 3.305785);
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:31: error: expected ';' before 'printf'
    6 |         scanf("%d %d", &a, &b)
      |                               ^
      |                               ;
    7 | 
    8 |         printf("%lf\n", (a * b) / 3.305785);
      |         ~~~~~~
Language: C

#include <stdio.h>

int main(void)
{
    int a, b;

    while(~scanf("%d %d", &a, &b))
        printf("%f\n", a * b / 3.305785);

    0return ;
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: invalid suffix "return" on integer constant
   10 |     0return ;
      |     ^~~~~~~
Language: C

include <stdio.h>

int main(void)
{
	float a;
	float b;
	
	scanf("%f %f" ,&a ,&b);
	
	printf("%f" , ( a * b ) / 3.305785 );
	
	return (0);
}

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

#include <stdio.h>

int main(void)
{
	int a, b;
	double S;

	scanf_s("%d %d", &a, &b);

	S = (a * b) / 3.305785;

	printf("%.6f\n", S);

	return (0);
}

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

#include<stdio.h>
int main() {
int a, b;
double S;
scanf("%d %d , &a, &b)
S=(double)(a*b/ 3.305785);
printf("%lf" , S);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: warning: missing terminating " character
    5 | scanf("%d %d , &a, &b)
      |       ^
main.c:5:7: error: missing terminating " character
    5 | scanf("%d %d , &a, &b)
      |       ^~~~~~~~~~~~~~~~
main.c:6:26: error: expected ')' before ';' token
    6 | S=(double)(a*b/ 3.305785);
      |                          ^
      |                          )
main.c:5:6: note: to match this '('
    5 | scanf("%d %d , &a, &b)
      |      ^
main.c:6:2: error: incompatible type for argument 1 of 'scanf'
    6 | S=(double)(a*b/ 3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:11: error: expected ';' before '}' token
    8 |  return 0;
      |           ^
      |           ;
    9 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d , &a, &b)
S=(double)(a*b/ 3.305785);
printf("%lf", S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d , &a, &b)
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d , &a, &b)
      |       ^~~~~~~~~~~~~~~~
main.c:9:26: error: expected ')' before ';' token
    9 | S=(double)(a*b/ 3.305785);
      |                          ^
      |                          )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d , &a, &b)
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/ 3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include <stdio.h>

int main(void){


     int a,b;
     double S;
 
     scant("%d %d",&a,&b);
     S=(double)(a*b/3.305785);
     printf("%lf",S);
     
     return 0;

}

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

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d , &a, &b);
S=(double)(a*b/ 3.305785);
printf("%lf", S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d , &a, &b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d , &a, &b);
      |       ^~~~~~~~~~~~~~~~~
main.c:9:26: error: expected ')' before ';' token
    9 | S=(double)(a*b/ 3.305785);
      |                          ^
      |                          )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d , &a, &b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/ 3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d, &a, &b);
S=(double)(a*b/ 3.305785);
printf("%lf",S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^~~~~~~~~~~~~~~~
main.c:9:26: error: expected ')' before ';' token
    9 | S=(double)(a*b/ 3.305785);
      |                          ^
      |                          )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d, &a, &b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/ 3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d,&a,&b);
S=(double)(a*b/ 3.305785);
printf("%lf",S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d,&a,&b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d,&a,&b);
      |       ^~~~~~~~~~~~~~
main.c:9:26: error: expected ')' before ';' token
    9 | S=(double)(a*b/ 3.305785);
      |                          ^
      |                          )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d,&a,&b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/ 3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d,&a,&b);
S=(double)(a*b/3.305785);
printf("%lf",S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d,&a,&b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d,&a,&b);
      |       ^~~~~~~~~~~~~~
main.c:9:25: error: expected ')' before ';' token
    9 | S=(double)(a*b/3.305785);
      |                         ^
      |                         )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d,&a,&b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d, &a, &b);
S=(double)(a*b/3.305785);
printf("%lf",S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^~~~~~~~~~~~~~~~
main.c:9:25: error: expected ')' before ';' token
    9 | S=(double)(a*b/3.305785);
      |                         ^
      |                         )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d, &a, &b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main() {

int a, b;
double S;

scanf("%d %d, &a, &b);
S=(double)(a*b/3.305785);
printf("%lf", S);

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:7: warning: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^
main.c:8:7: error: missing terminating " character
    8 | scanf("%d %d, &a, &b);
      |       ^~~~~~~~~~~~~~~~
main.c:9:25: error: expected ')' before ';' token
    9 | S=(double)(a*b/3.305785);
      |                         ^
      |                         )
main.c:8:6: note: to match this '('
    8 | scanf("%d %d, &a, &b);
      |      ^
main.c:9:2: error: incompatible type for argument 1 of 'scanf'
    9 | S=(double)(a*b/3.305785);
      | ~^~~~~~~~~~~~~~~~~~~~~~~
      |  |
      |  double
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'double'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:11: error: expected ';' before '}' token
   12 |  return 0;
      |           ^
      |           ;
   13 | }
      | ~
Language: C

#include<stdio.h>

int main(void){
	int a,b;
	double s,t;
	
	scanf("%d %d",&a,&b);
	
	s=(double)(a*b)/3.305785;
	
	printf("%lf\n",s);
	
	retunr 0;
}
	
	
	
	
	

Compiler output:
main.c: In function 'main':
main.c:13:9: error: 'retunr' undeclared (first use in this function)
   13 |         retunr 0;
      |         ^~~~~~
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:15: error: expected ';' before numeric constant
   13 |         retunr 0;
      |               ^~
      |               ;
Language: C++

#include<stdio.h>
int main(){
int i,j;
int a = 15;
int b = 25;
i = a*b;
j = i/3.305785;
printf("j");
}
return 0;

Compiler output:
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
Language: C++

#include<stdio.h>

int main(){

   int a, b;
   double S;

   scanf("%d %d", &a, &b);
   S=(double)(a:b/3.305785);
   printf("%if, S");

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: found ':' in nested-name-specifier, expected '::'
    9 |    S=(double)(a:b/3.305785);
      |                ^
      |                ::
a.cc:9:15: error: 'a' is not a class, namespace, or enumeration
    9 |    S=(double)(a:b/3.305785);
      |               ^
Language: C++

#include<stdio.h>

int main(){

   int a, b;
   double S;

   scanf("%d %d", &a, &b);
   S=(double)(a:b/3.305785);
   printf("%lf, S");

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: found ':' in nested-name-specifier, expected '::'
    9 |    S=(double)(a:b/3.305785);
      |                ^
      |                ::
a.cc:9:15: error: 'a' is not a class, namespace, or enumeration
    9 |    S=(double)(a:b/3.305785);
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  double a, b;
  cin >> a >> b;
  double ans = (a * b) / 3.305785;
  cout << fixed << setprecision(6) << ans << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'setprecision' was not declared in this scope
    7 |   cout << fixed << setprecision(6) << ans << "\n";
      |                    ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;