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;
????????????????do{
????????????????????????int x = i;
????????????????
??????????????????????????if ( x % 3 == 0 ){
????????????????????????????????System.out.print(" "+ i);?? 
????????????????????????????????continue;
????????????????????????}
????????????????????????????????while(true){
????????????????????????if ( x % 10 == 3 ){
????????????????????????????????System.out.print(" "+ i); 
????????????????????????????????break;
????????????????????????}
??
????????????????????????x /= 10;
??
????????????????????????if (x!=0) {
????????????????????????????????continue;
????????????????????????}else{
????????????????????????????????break;
????????????????????????} 
????????????????}
??????????????????
????????????????}while(++i<=n);
??????????????????
????????????????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
????????????????do{
^
Main.java:8: error: illegal start of expression
????????????????do{
 ^
Main.java:8: error: illegal start of expression
????????????????do{
  ^
Main.java:8: error: illegal start of expression
????????????????do{
   ^
Main.java:8: error: illegal start of expression
????????????????do{
    ^
Main.java:8: error: illegal start of expression
????????????????do{
     ^
Main.java:8: error: illegal start of expression
????????????????do{
      ^
Main.java:8: error: illegal start of expression
????????????????do{
       ^
Main.java:8: error: illegal start of expression
????????????????do{
        ^
Main.java:8: error: illegal start of expression
????????????????do{
         ^
Main.java:8: error: illegal start of expression
????????????????do{
          ^
Main.java:8: error: illegal start of expression
????????????????do{
           ^
Main.java:8: error: illegal start of expression
????????????????do{
            ^
Main.java:8: error: illegal start of expression
????????????????do{
             ^
Main.java:8: error: illegal start of expression
????????????????do{
              ^
Main.java:8: error: illegal start of expression
????????????????do{
               ^
Main.java:8: error: illegal start of expression
????????????????do{
                ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
 ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
  ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
   ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
    ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
     ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
      ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
       ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
        ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
         ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
          ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
           ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
            ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
             ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
              ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
               ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                 ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                  ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                   ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                    ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                     ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                      ^
Main.java:9: error: illegal start of expression
????????????????????????int x = i;
                       ^
Main.java:9: error: '.class' expected
????????????????????????int x = i;
                            ^
Main.java:9: error: : expected
????????????????????????int x = i;
                                 ^
Main.java:10: error: illegal start of expression
????????????????
^
100 errors
only showing the first 100 errors, of 142 total; use -Xmaxerrs if you would like to see more
printing javac parameters to: /w/javac.20260128_043404.args