Language: Java

import java.util.Scanner;
??
public class Main{
????????public static void main(String[] args){
????????????????Scanner sc = new Scanner(System.in);
????????????????int n = sc.nextInt();
????????????????int i = 1;
????????????????int x;
????????????????while(i <= n){
????????????????????????x = i;
????????????????????????if(x % 3 == 0){
????????????????????????????????System.out.print(" " + i);
????????????????????????????????i++;
????????????????????????????????continue;
????????????????????????}
????????????????????????do{
????????????????????????????????if(x % 10 == 3){
????????????????????????????????System.out.print(" " + i);
????????????????????????????????break;
????????????????????????????????}
????????????????????????}while((x /= 10) != 0);
????????????????????????i++;
????????????????}
????????????????System.out.println("");
????????}
}

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
??
^
Main.java:4: error: illegal start of type
????????public static void main(String[] args){
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
 ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
  ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
   ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
    ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
     ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
      ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
       ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
        ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
         ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
          ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
           ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
            ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
             ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
              ^
Main.java:5: error: illegal start of expression
????????????????Scanner sc = new Scanner(System.in);
               ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                       ^
Main.java:5: error: : expected
????????????????Scanner sc = new Scanner(System.in);
                                                   ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
 ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
  ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
   ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
    ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
     ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
      ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
       ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
        ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
         ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
          ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
           ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
            ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
             ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
              ^
Main.java:6: error: illegal start of expression
????????????????int n = sc.nextInt();
               ^
Main.java:6: error: '.class' expected
????????????????int n = sc.nextInt();
                    ^
Main.java:6: error: : expected
????????????????int n = sc.nextInt();
                                    ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
 ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
  ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
   ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
    ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
     ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
      ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
       ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
        ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
         ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
          ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
           ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
            ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
             ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
              ^
Main.java:7: error: illegal start of expression
????????????????int i = 1;
               ^
Main.java:7: error: '.class' expected
????????????????int i = 1;
                    ^
Main.java:7: error: : expected
????????????????int i = 1;
                         ^
Main.java:8: error: illegal start of expression
????????????????int x;
^
Main.java:8: error: illegal start of expression
????????????????int x;
 ^
Main.java:8: error: illegal start of expression
????????????????int x;
  ^
Main.java:8: error: illegal start of expression
????????????????int x;
   ^
Main.java:8: error: illegal start of expression
????????????????int x;
    ^
Main.java:8: error: illegal start of expression
????????????????int x;
     ^
Main.java:8: error: illegal start of expression
????????????????int x;
      ^
Main.java:8: error: illegal start of expression
????????????????int x;
       ^
Main.java:8: error: illegal start of expression
????????????????int x;
        ^
Main.java:8: error: illegal start of expression
????????????????int x;
         ^
Main.java:8: error: illegal start of expression
????????????????int x;
          ^
Main.java:8: error: illegal start of expression
????????????????int x;
           ^
Main.java:8: error: illegal start of expression
????????????????int x;
            ^
Main.java:8: error: illegal start of expression
????????????????int x;
             ^
Main.java:8: error: illegal start of expression
????????????????int x;
              ^
Main.java:8: error: illegal start of expression
????????????????int x;
               ^
Main.java:8: error: '.class' expected
????????????????int x;
                    ^
Main.java:8: error: : expected
????????????????int x;
                     ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
 ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
  ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
   ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
    ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
     ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
      ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
       ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
        ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
         ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
          ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
           ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
            ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
             ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
              ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
               ^
Main.java:9: error: illegal start of expression
????????????????while(i <= n){
                ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
 ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
  ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
   ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
    ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
     ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
      ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
       ^
Main.java:10: error: illegal start of expression
????????????????????????x = i;
        ^
100 errors
only showing the first 100 errors, of 174 total; use -Xmaxerrs if you would like to see more
printing javac parameters to: /w/javac.20260128_043403.args