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

#include <stdio.h>

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

  while(scanf("%d",&num) != EOF){
    int d = num % 39;
    if(d == 0){
      d = 39;
    }
    
    printf("3C%02d\n",d);
  }
  
  return 0;
  
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:7: error: class, interface, enum, or record expected
  while(scanf("%d",&num) != EOF){
  ^
Main.java:9: error: class, interface, enum, or record expected
    if(d == 0){
    ^
Main.java:11: error: class, interface, enum, or record expected
    }
    ^
Main.java:14: error: class, interface, enum, or record expected
  }
  ^
Main.java:18: error: class, interface, enum, or record expected
}
^
7 errors
Language: C

main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
      |                                ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:61: error: expected ':' before ')' token
    1 | main(c){for(;~scanf("%d",&c)*c;printf("3C%02d\n",c%39?c%39+1));}
      |                                                             ^
      |                                                             :
Language: C

main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:26: error: expected expression before '%' token
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
      |                          ^
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(c){for(;~scanf("%d",%c)*c;printf("3C%02d\n",c%39?:39));}
      |                                ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void)
{
    int n;

    while(scanf("%d",&n)!=EOF){
        if((n-1)%38<10){
            printf("3C0%d\n",(n-1)%38+1);
        } else {
            printf("3C%d\n",(n-1)%38+1);
        }
    return 0;
}

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

#include <stdio.h>

int main(void)
{
	int n;
	
	while (scanf("%d", &n) != EOF){
		if (n > 39){
			while (1){
				n = n - 39;
				if (n < 39){
					if (n > 9){
						if (n == 0){
							n = 39;
							printf("3C%d\n", n);
							break;
						}
						else {
							printf("3C%d\n", n);
					}
					else {
						printf("3C0%d\n", n);
						break;
					}
				}
			}
		}
		else if (n < 9){
			printf("3C0%d\n", n);
		}
		else {
			printf("3C%d\n", n);
		}
	}
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:21:41: error: expected '}' before 'else'
   21 |                                         else {
      |                                         ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	int can;
	
	while (scanf("%d", &can) != EOF){
		if (can % 39 == 0){
			printf(("3C39\n");
		}
		else if (can % 39 < 10){
			printf("3C0%d\n", can % 39);
		}
		else {
			printf("3C%d\n", can % 39);
		}
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:9:42: error: expected ')' before ';' token
    9 |                         printf(("3C39\n");
      |                               ~          ^
      |                                          )
main.c:9:43: error: expected ';' before '}' token
    9 |                         printf(("3C39\n");
      |                                           ^
      |                                           ;
   10 |                 }
      |                 ~
Language: C

main(n){for(;~scanf("%d",&n);)printf("3C%02d
",~-n%39+1);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:15: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      |               ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
main.c:1:15: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      |               ^~~~~
main.c:1:15: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      |                               ^~~~~~
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:38: warning: missing terminating " character
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      |                                      ^
main.c:1:38: error: missing terminating " character
    1 | main(n){for(;~scanf("%d",&n);)printf("3C%02d
      |                                      ^~~~~~~
main.c:2:1: warning: missing terminating " character
    2 | ",~-n%39+1);}
      | ^
main.c:2:1: error: missing terminating " character
    2 | ",~-n%39+1);}
      | ^~~~~~~~~~~~~
main.c:2:1: error: expected expression at end of input
main.c:2:1: error: expected declaration or statement at end of input
Language: C

z=main(a){for(;z=~scanf("%d",&a);printf("3C%02d\n",(a-1)%39+1));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | z=main(a){for(;z=~scanf("%d",&a);printf("3C%02d\n",(a-1)%39+1));}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'z' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'main' [-Wimplicit-function-declaration]
    1 | z=main(a){for(;z=~scanf("%d",&a);printf("3C%02d\n",(a-1)%39+1));}
      |   ^~~~
main.c:1:8: error: 'a' undeclared here (not in a function)
    1 | z=main(a){for(;z=~scanf("%d",&a);printf("3C%02d\n",(a-1)%39+1));}
      |        ^
main.c:1:10: error: expected ',' or ';' before '{' token
    1 | z=main(a){for(;z=~scanf("%d",&a);printf("3C%02d\n",(a-1)%39+1));}
      |          ^
Language: C++

include <iostream>

using namespace std;

int main() {
   int candy = 0;
    
    while (true){
    cin >> candy;
    if (candy == EOF) {
        break;
    }
    
    cout << candy % 39 << 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:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> candy;
      |     ^~~
a.cc:10:18: error: 'EOF' was not declared in this scope
   10 |     if (candy == EOF) {
      |                  ^~~
a.cc:1:1: note: 'EOF' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <iostream>
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << candy % 39 << endl;
      |     ^~~~
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |     cout << candy % 39 << endl;
      |                           ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int n,count;
	while(1){
		cin>>n;
		if(n==char_traits<char>::eof)break;
		count=n%39;
		if(count==0)count=39;
		cout<<"3C"<<count<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |                 if(n==char_traits<char>::eof)break;
      |                    ~^~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int n,count;
	while(cin>>n){
		count=n%39;
		if(count==0)count=39;
		cout<<"3C"<<(count/10==0)?"0"+count:count<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:58: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |                 cout<<"3C"<<(count/10==0)?"0"+count:count<<endl;
      |                                                     ~~~~~^~~~~~
Language: C++

#include using namespace std;
int main() {
	int n;
	while (cin >> n) {
		int s = n % 39;
		if (s == 0) {
			cout << "3C39" << endl;
		} else if (s < 10) {
			cout << "3C0" << s << endl;
		} else {
			cout << "3C" << s << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include using namespace std;
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:4:16: error: 'cin' was not declared in this scope
    4 |         while (cin >> n) {
      |                ^~~
a.cc:7:25: error: 'cout' was not declared in this scope
    7 |                         cout << "3C39" << endl;
      |                         ^~~~
a.cc:7:43: error: 'endl' was not declared in this scope
    7 |                         cout << "3C39" << endl;
      |                                           ^~~~
a.cc:9:25: error: 'cout' was not declared in this scope
    9 |                         cout << "3C0" << s << endl;
      |                         ^~~~
a.cc:9:47: error: 'endl' was not declared in this scope
    9 |                         cout << "3C0" << s << endl;
      |                                               ^~~~
a.cc:11:25: error: 'cout' was not declared in this scope
   11 |                         cout << "3C" << s << endl;
      |                         ^~~~
a.cc:11:46: error: 'endl' was not declared in this scope
   11 |                         cout << "3C" << s << endl;
      |                                              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
???int n;
???cout.fill('0');
???while(cin>>n){
??????if(n%39==0)cout<<"3C39"<<endl;
??????else cout<<"3C"<<setw(2)<<n%39<<endl;
???}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: expected primary-expression before '?' token
    5 | ???int n;
      | ^
a.cc:5:2: error: expected primary-expression before '?' token
    5 | ???int n;
      |  ^
a.cc:5:3: error: expected primary-expression before '?' token
    5 | ???int n;
      |   ^
a.cc:5:4: error: expected primary-expression before 'int'
    5 | ???int n;
      |    ^~~
a.cc:5:4: error: expected ':' before 'int'
    5 | ???int n;
      |    ^~~
      |    :
a.cc:5:4: error: expected primary-expression before 'int'
    5 | ???int n;
      |    ^~~
a.cc:5:4: error: expected ':' before 'int'
    5 | ???int n;
      |    ^~~
      |    :
a.cc:5:4: error: expected primary-expression before 'int'
    5 | ???int n;
      |    ^~~
a.cc:5:4: error: expected ':' before 'int'
    5 | ???int n;
      |    ^~~
      |    :
a.cc:5:4: error: expected primary-expression before 'int'
    5 | ???int n;
      |    ^~~
a.cc:6:1: error: expected primary-expression before '?' token
    6 | ???cout.fill('0');
      | ^
a.cc:6:2: error: expected primary-expression before '?' token
    6 | ???cout.fill('0');
      |  ^
a.cc:6:3: error: expected primary-expression before '?' token
    6 | ???cout.fill('0');
      |   ^
a.cc:6:18: error: expected ':' before ';' token
    6 | ???cout.fill('0');
      |                  ^
      |                  :
a.cc:6:18: error: expected primary-expression before ';' token
a.cc:6:18: error: expected ':' before ';' token
    6 | ???cout.fill('0');
      |                  ^
      |                  :
a.cc:6:18: error: expected primary-expression before ';' token
a.cc:6:18: error: expected ':' before ';' token
    6 | ???cout.fill('0');
      |                  ^
      |                  :
a.cc:6:18: error: expected primary-expression before ';' token
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ???while(cin>>n){
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ???while(cin>>n){
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ???while(cin>>n){
      |   ^
a.cc:7:4: error: expected primary-expression before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
a.cc:7:4: error: expected ':' before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
      |    :
a.cc:7:4: error: expected primary-expression before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
a.cc:7:4: error: expected ':' before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
      |    :
a.cc:7:4: error: expected primary-expression before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
a.cc:7:4: error: expected ':' before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
      |    :
a.cc:7:4: error: expected primary-expression before 'while'
    7 | ???while(cin>>n){
      |    ^~~~~
Language: C++

using System;

class myclass
{
    public static void Main()
    {
        string s;
        int g,x=0;
        int[] k=new int[20];
        for (int i = 0; i < 20; i++){
            s = Console.ReadLine();
            if (s == "EOF"){
                x = i;
                break;
            }
            g = Int32.Parse(s);
            k[i] = g % 39;
        }
        for (int i = 0; i < x; i++){
            if (k[i] == 0)
            {
                Console.WriteLine("3C39");
            }
            else if (k[i] < 10)
            {
                Console.WriteLine("3C0" + k[i]);
            }
            else Console.WriteLine("3C" + k[i]);

        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void Main()
      |           ^~~~~~~
      |           :
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In static member function 'static void myclass::Main()':
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string s;
      |         ^~~~~~
a.cc:9:12: error: structured binding declaration cannot have type 'int'
    9 |         int[] k=new int[20];
      |            ^~
a.cc:9:12: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:12: error: empty structured binding declaration
a.cc:9:15: error: expected initializer before 'k'
    9 |         int[] k=new int[20];
      |               ^
a.cc:11:13: error: 's' was not declared in this scope
   11 |             s = Console.ReadLine();
      |             ^
a.cc:11:17: error: 'Console' was not declared in this scope
   11 |             s = Console.ReadLine();
      |                 ^~~~~~~
a.cc:16:17: error: 'Int32' was not declared in this scope
   16 |             g = Int32.Parse(s);
      |                 ^~~~~
a.cc:17:13: error: 'k' was not declared in this scope
   17 |             k[i] = g % 39;
      |             ^
a.cc:20:17: error: 'k' was not declared in this scope
   20 |             if (k[i] == 0)
      |                 ^
a.cc:22:17: error: 'Console' was not declared in this scope
   22 |                 Console.WriteLine("3C39");
      |                 ^~~~~~~
a.cc:26:17: error: 'Console' was not declared in this scope
   26 |                 Console.WriteLine("3C0" + k[i]);
      |                 ^~~~~~~
a.cc:28:18: error: 'Console' was not declared in this scope
   28 |             else Console.WriteLine("3C" + k[i]);
      |                  ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define r(i,a,n) for(int i=a;i<n;i++)
using namespace std;
int main(){
	int a;
	while(cin>>a){
		(a-1)%=39;
		a++;
		cout<<3<<'c';
		if(a<10)cout<<0;
		cout<<a<<endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: lvalue required as left operand of assignment
    7 |                 (a-1)%=39;
      |                 ~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a;
int main(){
 while(scanf("%d",&a)!=EOF){
     if(a%39!=0)printf("3C%02d\n",a%39);A
     else cout<<"3C39"<<endl;
 }   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:41: error: 'A' was not declared in this scope
    6 |      if(a%39!=0)printf("3C%02d\n",a%39);A
      |                                         ^
Language: C++

#include<stdio.h>
int main(void)
{
	int a;
	while(scanf("%d",&a)!=EOF){
		if(a%39==0) printf("3c39\n");
		else{
			if(a%39>=10) printf("3C%d",a%39);
			else printf("3C0%d",a%39);
	}
	return 0;
}

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

#include<stdio.h>
int main(void)
{
	int x;
	scanf("%d",&x);
	while(1){
		a=a-39;
		if(a<=39) break;
	}
	if(a<10){
		printf("3C0%d\n",a);
	}
	else {
		printf("3C%d\n",a);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'a' was not declared in this scope
    7 |                 a=a-39;
      |                 ^
a.cc:10:12: error: 'a' was not declared in this scope
   10 |         if(a<10){
      |            ^
Language: C++

#include<stdio.h>
int main(void)
{
	int a,b;
	while(scanf("%d",&a)!=EOF) {
	    b=a%39
	if(b==0) b=39;	
	printf("3C%02d\n",a);
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected ';' before 'if'
    6 |             b=a%39
      |                   ^
      |                   ;
    7 |         if(b==0) b=39;
      |         ~~
Language: C++

int main(){
 while(!std::cin.eof()){
 int in;  
std::cin >> in;
std::cout << "3C" << 1+(in%39)<<std::endl; 
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:14: error: 'cin' is not a member of 'std'
    2 |  while(!std::cin.eof()){
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:4:6: error: 'cin' is not a member of 'std'
    4 | std::cin >> in;
      |      ^~~
a.cc:4:6: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:6: error: 'cout' is not a member of 'std'
    5 | std::cout << "3C" << 1+(in%39)<<std::endl;
      |      ^~~~
a.cc:5:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:38: error: 'endl' is not a member of 'std'
    5 | std::cout << "3C" << 1+(in%39)<<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 | int main(){
Language: C++

#include<iostream>
int main(){
 while(!std::cin.eof()){
 int in;  
 std::cin >> in;
 if(!in%=39) in =39;
 std::printf("3C%02d\n",in);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: lvalue required as left operand of assignment
    6 |  if(!in%=39) in =39;
      |     ^~~
Language: C++

#include<iostream>
int main(){
 while(!std::cin.eof()){
 int in;  
 std::cin >> in;
 if(!in=in%39) in =39;
 std::printf("3C%02d\n",in);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: lvalue required as left operand of assignment
    6 |  if(!in=in%39) in =39;
      |     ^~~
Language: C++

#include<iostream>
main()for(int n;std::cin>>n;)printf("3C%02d\n",--n%39+1);

Compiler output:
a.cc:2:7: error: expected constructor, destructor, or type conversion before 'for'
    2 | main()for(int n;std::cin>>n;)printf("3C%02d\n",--n%39+1);
      |       ^~~
a.cc:2:22: error: 'cin' in namespace 'std' does not name a type
    2 | main()for(int n;std::cin>>n;)printf("3C%02d\n",--n%39+1);
      |                      ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:2:29: error: expected unqualified-id before ')' token
    2 | main()for(int n;std::cin>>n;)printf("3C%02d\n",--n%39+1);
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    while( cin >> n ){
        int x = n%39 + 1;
        cout << "3C";
        if( x < 10 ) cout << 0;
        cout << x << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'n' was not declared in this scope
    5 |     while( cin >> n ){
      |                   ^
Language: C++

main(n){
    for(;~scanf("%d",&n);printf(n<10?"3C0%d\n":"3C%d\n",n))
        n=(n-1)%39+1;
}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(n){
      |     ^
Language: C++

i;main(n){for(;i=~scanf("%d",&n);printf("3C%02d\n",n))n=(n%39)?n%39:39;}

Compiler output:
a.cc:1:1: error: 'i' does not name a type
    1 | i;main(n){for(;i=~scanf("%d",&n);printf("3C%02d\n",n))n=(n%39)?n%39:39;}
      | ^
a.cc:1:7: error: expected constructor, destructor, or type conversion before '(' token
    1 | i;main(n){for(;i=~scanf("%d",&n);printf("3C%02d\n",n))n=(n%39)?n%39:39;}
      |       ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  while(true)
  {
    int candy;
    cin >> candy;
    if ( cin.eof() ) break;
    cout << "3C" << candy&39 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout << "3C" << candy&39 << endl;
      |                           ~~~^~~~~~~
Language: C++

#include<stdio.h>
int main(void)
{
	int n;
	while(1){
		if(scanf("%d",&n)==EOF){
		        break;
                }
                while(n>=39){
                        n=n-39
               }
		if(n<10){
			printf("3C0%d",n);
		}
		else{
			printf("3C%d\n",n);
		}	
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ';' before '}' token
   10 |                         n=n-39
      |                               ^
      |                               ;
   11 |                }
      |                ~
Language: C++

#include<stdio.h>
int main(void)
{
	int x,ama;
	
	while(1) {
		if(scanf("%d",&x)==EOF){
			break;
		}
		while(n>=39){
			n=n-39;
		}
		if(ama==0) {
			ama=39;
		}
		if(ama<10) {
				printf("3C0%d\n",ama);
		}
		else {
			printf("3C%d\n",ama);
		}
	}	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'n' was not declared in this scope
   10 |                 while(n>=39){
      |                       ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int n;
	while (cin>>n)
		cout << "3C" << setw(2) << setfill('0') << (n%39==0?39:n%39) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: 'setw' was not declared in this scope
    7 |                 cout << "3C" << setw(2) << setfill('0') << (n%39==0?39:n%39) << endl;
      |                                 ^~~~
a.cc:2:1: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
a.cc:7:44: error: 'setfill' was not declared in this scope
    7 |                 cout << "3C" << setw(2) << setfill('0') << (n%39==0?39:n%39) << endl;
      |                                            ^~~~~~~
a.cc:7:44: note: 'std::setfill' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include<iostream>
using namespace std;
int main(){
int in;
while(cin>>in){
cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
}
}

Compiler output:
a.cc:6:20: error: extended character ’ is not valid in an identifier
    6 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |                    ^
a.cc:6:20: error: extended character ′ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:20: error: '\U000020190\U00002032' was not declared in this scope
    6 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |                    ^~~
a.cc:6:13: error: 'etfill' was not declared in this scope
    6 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |             ^~~~~~
a.cc:6:28: error: 'setw' was not declared in this scope
    6 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |                            ^~~~
a.cc:2:1: note: 'std::setw' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include<iostream>
  +++ |+#include <iomanip>
    2 | using namespace std;
Language: C++

#include<iostream>
#include<iomanip>
using namespace std;
int main(){
int in;
while(cin>>in){
cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
}
}

Compiler output:
a.cc:7:20: error: extended character ’ is not valid in an identifier
    7 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |                    ^
a.cc:7:20: error: extended character ′ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:20: error: '\U000020190\U00002032' was not declared in this scope
    7 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |                    ^~~
a.cc:7:13: error: 'etfill' was not declared in this scope
    7 | cout<<"3C"<<etfill(’0′) << setw(2) << right<<(in-1)%39+1<<endl;
      |             ^~~~~~
Language: C

#include<stdio.h>

int main(void){

double l,r;
int countla=0;
int countra=0;
int countlb=0;
int countrb=0;
int countlc=0;
int countrc=0;
int countld=0;
int countrd=0;

while(scanf("%lf %lf",&l,&r) != EOF){

if(l>=1.1){
countla++;
}
else if(l<1.1&&l>=0.6){
countlb++;
}
else if(l<0.6&&l>=0.2){
countlc++;
}
else if(l<0.2){
countld++;
}

if(r>=1.1){
countra++;
}
else if(r<1.1&&r>=0.6){
countrb++;
}
else if(r<0.6&&r>=0.2){
countrc++;
}
else if(r<0.2){
countrd++;
}

printf("%d %d\n",countla++,countra++);
printf("%d %d\n",countlb++,countrb++);
printf("%d %d\n",countlc++,countrc++);
printf("%d %d\n",countld++,countrd++);

return 0;
}



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

#include <stdio.h>

int main(void)
{
	float judge[4] = {1.1, 0.6, 0.2, 0.0};
	float f, i;
	int eye[4][2] = {0};
	
	while (scanf("%f", &f) != EOF){
		i = 0;
		while (1){
			if (f >= judge[i]){
				eye[i][0]++;
				break;
			}
			i++;
		}	
		
		scanf("%f", &f);
		i = 0;
		while (1){
			if (f >= judge[i]){
				eye[i][1]++;
				break;
			}
			i++;
		}
	}
	
	for (i = 0; i < 4; i++){
		printf("%d %d\n", eye[i][0], eye[i][1]);
	}
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:12:39: error: array subscript is not an integer
   12 |                         if (f >= judge[i]){
      |                                       ^
main.c:13:36: error: array subscript is not an integer
   13 |                                 eye[i][0]++;
      |                                    ^
main.c:22:39: error: array subscript is not an integer
   22 |                         if (f >= judge[i]){
      |                                       ^
main.c:23:36: error: array subscript is not an integer
   23 |                                 eye[i][1]++;
      |                                    ^
main.c:31:38: error: array subscript is not an integer
   31 |                 printf("%d %d\n", eye[i][0], eye[i][1]);
      |                                      ^
main.c:31:49: error: array subscript is not an integer
   31 |                 printf("%d %d\n", eye[i][0], eye[i][1]);
      |                                                 ^
Language: C

#include <stdio.h>

void check(double eye, int table[4]);

int main(void)
{
	int right[4] = {0};
	int left[4] = {0};
	double r, l;
	
	while (scanf("%lf %lf", &r, &l) != EOF){
		check(r, right);
		check(l, lef);
	}
	for (i = 0; i < 4; i++){
		printf("%d %d\n", left[i], right[i]);
	}
	
	return 0;
}

void check(double eye, int table[4])
{
	if (eye >= 1.1){
		table[0]++;
	}
	else if (eye >= 0.6){
		table[1]++;
	}
	else if (eye >= 0.2){
		table[2]++;
	}
	else {
		table[3]++;
	}
}

Compiler output:
main.c: In function 'main':
main.c:13:26: error: 'lef' undeclared (first use in this function); did you mean 'left'?
   13 |                 check(l, lef);
      |                          ^~~
      |                          left
main.c:13:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:14: error: 'i' undeclared (first use in this function)
   15 |         for (i = 0; i < 4; i++){
      |              ^
Language: C

main(l[4],r[4],i){float a,b;for(;~scanf("%f%f",&a,&b);){l[a<0.2?3:a<0.6?2:a<1.1?1:0]++;r[b<0.2?3:b<0.6?2:b<1.1?1:0]++;}for(i=0;i<4;i++){printf("%d %d\n",l[i],r[i]);}}

Compiler output:
main.c:1:6: error: unknown type name 'l'
    1 | main(l[4],r[4],i){float a,b;for(;~scanf("%f%f",&a,&b);){l[a<0.2?3:a<0.6?2:a<1.1?1:0]++;r[b<0.2?3:b<0.6?2:b<1.1?1:0]++;}for(i=0;i<4;i++){printf("%d %d\n",l[i],r[i]);}}
      |      ^
main.c:1:11: error: unknown type name 'r'
    1 | main(l[4],r[4],i){float a,b;for(;~scanf("%f%f",&a,&b);){l[a<0.2?3:a<0.6?2:a<1.1?1:0]++;r[b<0.2?3:b<0.6?2:b<1.1?1:0]++;}for(i=0;i<4;i++){printf("%d %d\n",l[i],r[i]);}}
      |           ^
main.c:1:16: error: unknown type name 'i'
    1 | main(l[4],r[4],i){float a,b;for(;~scanf("%f%f",&a,&b);){l[a<0.2?3:a<0.6?2:a<1.1?1:0]++;r[b<0.2?3:b<0.6?2:b<1.1?1:0]++;}for(i=0;i<4;i++){printf("%d %d\n",l[i],r[i]);}}
      |                ^
Language: C

/* https://tausiq.wordpress.com/2008/12/09/uva-100-the-3n-1-problem/ */
#include <cstdio>
#include <algorithm>
#define long 

long LL
 
using namespace std;
 
int main ()
{
    int i, j;
 
    while ( scanf ("%d %d", &i, &j) != EOF ) {
 
        int temp_i = 

i;
        int temp_j = j;
 
        if ( i > j ) swap (i, j);
 
        int max_cycle_length = 0;
        int cycle_length;
 
    

    while ( i <= j ) {
            unsigned int n = i;
            cycle_length = 1;
 
            while ( n != 1 ) {
          

      if ( n % 2 == 1 ) n = 3 * n + 1;
                else n /= 2;
                cycle_length++;
            }
 
            

if ( cycle_length > max_cycle_length )
                max_cycle_length = cycle_length;
 
            i++;
        }
 
        

printf ("%d %d %d\n", temp_i, temp_j, max_cycle_length);
    }
 
    return 0;
}

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

#include <stdio.h>
int main(void){
  int ans[4][2]={0},i,j;
  double l,r;
  while(scanf("%lf %lf",&l,&r)!=EOF){
    if(l>1.1)ans[0][0]++;
    else if(l>0.6)ans[1][0]++;
    else if(l>0.2)ans[2][0]++;
    else ans[3][0]++;
    if(r>1.1)ans[0][1]++;
    else if(r>0.6)ans[1][1]++;
    else if(r>0.2)ans[2][1]++;
    else ans[3][1]++;
  }
  for(i=0;i<4;i++)
    printf("%d %d\n",a[i][0],a[i][1]);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:22: error: 'a' undeclared (first use in this function)
   16 |     printf("%d %d\n",a[i][0],a[i][1]);
      |                      ^
main.c:16:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

	int main(){
		int s[4][2]={0,0,0,0,0,0,0,0};
double b[2];
while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
for(j=0;j<2;j++){
if(b[j]>=1.1)
s[0][j]++;
else if(b[j]>=0.6)
s[1][j]++;
else if(b[j]>=0.2)
s[2][j]++;
else s[3][j]++;
}
for(j=0;j<4;j++)
printf("%lf %lf\n",s[i][0],s[i][1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |       ^~~~~
main.c:1:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 |         int main(){
main.c:4:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |       ^~~~~
main.c:4:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:37: error: 'EOF' undeclared (first use in this function)
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |                                     ^~~
main.c:4:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:4:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'j' undeclared (first use in this function)
    5 | for(j=0;j<2;j++){
      |     ^
main.c:15:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 | printf("%lf %lf\n",s[i][0],s[i][1]);
      | ^~~~~~
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:22: error: 'i' undeclared (first use in this function)
   15 | printf("%lf %lf\n",s[i][0],s[i][1]);
      |                      ^
Language: C

	int main(){
		int s[4][2]={0,0,0,0,0,0,0,0};
double b[2];
while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
for(j=0;j<2;j++){
if(b[j]>=1.1)
s[0][j]++;
else if(b[j]>=0.6)
s[1][j]++;
else if(b[j]>=0.2)
s[2][j]++;
else s[3][j]++;
}
for(j=0;j<4;j++)
printf("%d %d\n",s[i][0],s[i][1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |       ^~~~~
main.c:1:8: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 |         int main(){
main.c:4:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |       ^~~~~
main.c:4:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:37: error: 'EOF' undeclared (first use in this function)
    4 | while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
      |                                     ^~~
main.c:4:37: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:4:37: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'j' undeclared (first use in this function)
    5 | for(j=0;j<2;j++){
      |     ^
main.c:15:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 | printf("%d %d\n",s[i][0],s[i][1]);
      | ^~~~~~
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:20: error: 'i' undeclared (first use in this function)
   15 | printf("%d %d\n",s[i][0],s[i][1]);
      |                    ^
Language: C

#include<stdio.h>	
int main(){
		int s[4][2]={0,0,0,0,0,0,0,0};
double b[2];
while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
for(j=0;j<2;j++){
if(b[j]>=1.1)
s[0][j]++;
else if(b[j]>=0.6)
s[1][j]++;
else if(b[j]>=0.2)
s[2][j]++;
else s[3][j]++;
}
for(j=0;j<4;j++)
printf("%d %d\n",s[i][0],s[i][1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'j' undeclared (first use in this function)
    6 | for(j=0;j<2;j++){
      |     ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:20: error: 'i' undeclared (first use in this function)
   16 | printf("%d %d\n",s[i][0],s[i][1]);
      |                    ^
Language: C

#include<stdio.h>	
int main(){
		int s[4][2]={0,0,0,0,0,0,0,0},j;
double b[2];
while(scanf("%lf %lf",&b[0],&b[1])!=EOF){
for(j=0;j<2;j++){
if(b[j]>=1.1)
s[0][j]++;
else if(b[j]>=0.6)
s[1][j]++;
else if(b[j]>=0.2)
s[2][j]++;
else s[3][j]++;
}
for(j=0;j<4;j++)
printf("%d %d\n",s[i][0],s[i][1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:20: error: 'i' undeclared (first use in this function)
   16 | printf("%d %d\n",s[i][0],s[i][1]);
      |                    ^
main.c:16:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int a,b,i;
	float x,y;
	a=0;b=0;
	scanf("%d %d",&x,&y);
	while(x!=0 && y!=0) {
		if(x>=1.1) {
			printf("A\n");
		}
		if(0.6<=x && x<1.1) {
			printf("B\n");
		}
		if(0.2<=x && x<0.6) {
			printf("C\n");
		}
		if(x<0.2) {
			printf("D\n");
		}
		if(y>=1.1) {
			printf("A\n");
		}
		if(0.6<=y && y<1.1) {
			printf("B\n");
		}
		if(0.2<=y && y<0.6) {
			printf("C\n");
		}
		if(y<0.2) {
			printf("D\n");
		}
		a+=X;
		b+=Y;
	scanf("%d %d",&a,&b);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:33:20: error: 'X' undeclared (first use in this function)
   33 |                 a+=X;
      |                    ^
main.c:33:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:34:20: error: 'Y' undeclared (first use in this function)
   34 |                 b+=Y;
      |                    ^
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^
Language: C++

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

const double eps = 0.001;

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

int main(){
    int eye[4][2]={};
    while(1){
        rep(i,2){
            if(a[i]+eps>1.1){
                eye[0][i]++;
            } else if(a[i]+eps>0.6){
                eye[1][i]++;
            } else if(a[i]+eps>0.2){
                eye[2][i]++;
            } else{
                eye[3][i]++;
            }
        }
    }
    rep(i,4){
        cout<<eye[i][0]<<" "<<eye[i][1]<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: 'a' was not declared in this scope
   14 |             if(a[i]+eps>1.1){
      |                ^
Language: C++

#include<stdio.h>

int main(){
int x1,x2,y1,y2;
int A[5]={},B[5]={};

while(scanf("%d.%d %d.%d",x1,x2,y1,y2)!=EOF)
{
if(x1>=2)A[0]++;
else if(x1==1&&x2>=1)A[0]++;
else if(x1==0&&x2>=6)A[1]++;
else if(x1==0&&x2>=2)A[2]++;
else if(x1==0&&x2<2)A[3]++;

if(Y1>=2)B[0]++;
else if(y1==1&&y2>=1)B[0]++;
else if(y1==0&&y2>=6)B[1]++;
else if(y1==0&&y2>=2)B[2]++;
else if(y1==0&&y2<2)B[3]++;
}
for(int i=0;i<3;i++)
printf("%d %d\n"A[i],B[i]);


return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: 'Y1' was not declared in this scope; did you mean 'y1'?
   15 | if(Y1>=2)B[0]++;
      |    ^~
      |    y1
a.cc:22:8: error: unable to find string literal operator 'operator""A' with 'const char [7]', 'long unsigned int' arguments
   22 | printf("%d %d\n"A[i],B[i]);
      |        ^~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	
	double a[2];
	int b[4][2]={0};
	cin>>n;
	while(cin>>a[0]>>a[1]){
	for(int i=0;i<2;i++){
	if(a[i]<0.2)
		b[3][i]++;
	else if(a[i]<0.6)
		b[2][i]++;
	else if(a[i]<1.1)
		b[1][i]++;
	else
		b[0][i]++;
	}
	}
	for(int i=0;i<4;i++)
		cout<<b[i][0]<<" "<<b[i][1]<<endl;
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'n' was not declared in this scope
    8 |         cin>>n;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int leye[4]={0,0,0,0},reye[4]={0,0,0,0};
    double lef,righ;
    while(cin>>lef>>righ){
        if(lef==0.1)leye[0]++;
?????? else if(lef<0.6)leye[1]++;
 else if(lef<1.1)leye[2]++;
 else leye[3]++;
        if(righ==0.1)reye[0]++;
 else if(righ<0.6)reye[1]++;
 else if(righ<1.1)reye[2]++;
 else reye[3]++;
    }
    for(int i=3;i>-1;i--)cout<<leye[i]<<" "<<reye[i]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      |   ^
a.cc:9:4: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      |     ^
a.cc:9:6: error: expected primary-expression before '?' token
    9 | ?????? else if(lef<0.6)leye[1]++;
      |      ^
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:9:7: error: expected ':' before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |       ^~~~~
      |       :
a.cc:9:8: error: expected primary-expression before 'else'
    9 | ?????? else if(lef<0.6)leye[1]++;
      |        ^~~~
a.cc:10:2: error: 'else' without a previous 'if'
   10 |  else if(lef<1.1)leye[2]++;
      |  ^~~~
Language: C++

#include<iostream>
using namespace std;

void main() {
	int right_a = 0, right_b = 0, right_c = 0, right_d = 0;
	int left_a = 0, left_b = 0, left_c = 0, left_d = 0;
	double right_eye, left_eye;
	while (cin >> left_eye >> right_eye) {
		if (left_eye >= 1.1)left_a++;
		else if (left_eye >= 0.6&&left_eye < 1.1)left_b++;
		else if (left_eye >= 0.2&&left_eye < 0.6)left_c++;
		else if (left_eye < 0.2)left_d++;
		if (right_eye >= 1.1)right_a++;
		else if (right_eye >= 0.6&&right_eye < 1.1)right_b++;
		else if (right_eye >= 0.2&&right_eye < 0.6)right_c++;
		else if (right_eye < 0.2)right_d++;
	}
	cout << left_a << ' ' << right_a << endl;
	cout << left_b << ' ' << right_b << endl;
	cout << left_c << ' ' << right_c << endl;
	cout << left_d << ' ' << right_d << endl;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main() {
      | ^~~~
Language: C++

#include<iostream>

using namespace std;

int main(){
	 
	double left, right;
	
	while( cin >> left >> right ) {
		
	int A[2] = {};
	int B[2] = {};
	int C[2] = {};
	int D[2] = {};
	
	if( left >= 1.1) A[0] ++;
	if( 0.6 <= left && left < 1.1) B[0] ++;
	if( 0.2 <= left && left < 0.6) C[0] ++;
	if( left < 0.2) D[0] ++;
	
	if( right >= 1.1) A[1] ++;
	if( 0.6 <= right && right < 1.1) B[1] ++;
	if( 0.2 <= right && right < 0.6) C[1] ++;
	if( right < 0.2) D[1] ++;
	
	
}
	cout << A[0] << " " << A[1] << "\n";
	cout << B[0] << " " << B[1] << "\n";
	cout << C[0] << " " << C[1] << "\n";
	cout << D[0] << " " << D[1] << "\n";
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:17: error: 'A' was not declared in this scope
   28 |         cout << A[0] << " " << A[1] << "\n";
      |                 ^
a.cc:29:17: error: 'B' was not declared in this scope
   29 |         cout << B[0] << " " << B[1] << "\n";
      |                 ^
a.cc:30:17: error: 'C' was not declared in this scope
   30 |         cout << C[0] << " " << C[1] << "\n";
      |                 ^
a.cc:31:17: error: 'D' was not declared in this scope
   31 |         cout << D[0] << " " << D[1] << "\n";
      |                 ^
Language: C++

#include<bits/c++.h>

using namespace std;

int main(){

  double l;
  double r;

  int l_a=0;
  int l_b=0;
  int l_c=0;
  int l_d=0;
  int r_a=0;
  int r_b=0;
  int r_c=0;
  int r_d=0;
  
  while(cin>>l>>r){

	if(l>=1.1)
	  l_a++;
	else if(l>=0.6 && l<1.1)
	  l_b++;
	else if(l>=0.2 && l<0.6)
	  l_c++;
	else if(l<0.2)
	  l_d++;

	if(r>=1.1)
	  r_a++;
	else if(r>=0.6 && r<1.1)
	  r_b++;
	else if(r>=0.2 && r<0.6)
	  r_c++;
	else if(r<0.2)
	  r_d++;
	
  }

  cout<<l_a<<" "<<r_a<<endl;
  cout<<l_b<<" "<<r_b<<endl;
  cout<<l_c<<" "<<r_c<<endl;
  cout<<l_d<<" "<<r_d<<endl;
  
}



Compiler output:
a.cc:1:9: fatal error: bits/c++.h: No such file or directory
    1 | #include<bits/c++.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

main(i){int l[4][2]={0};float a;for(i=0;scanf("%f",&a)+1;i++)a<0.2?l[3][i%2]++:(a<0.6?l[2][i%2]++:(a<1.1?l[1][i%2]++:l[0][i%2]++));for(i=0;i<4;)printf("%d %d\n",l[i++][0],l[i][1]);}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before '(' token
    1 | main(i){int l[4][2]={0};float a;for(i=0;scanf("%f",&a)+1;i++)a<0.2?l[3][i%2]++:(a<0.6?l[2][i%2]++:(a<1.1?l[1][i%2]++:l[0][i%2]++));for(i=0;i<4;)printf("%d %d\n",l[i++][0],l[i][1]);}
      |     ^