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;
??????int x = i;
??????for(i = 1;i <= n;i++){
????????if (x%3 == 0) {
??????????System.out.printf(" " + i);
????????}else if(x%10 == 3){
??????????System.out.printf(" " + i);
????????}else if(i > 10){
     while(i > 10){
      i=i/10;
     }
     if(i == 3){
      System.out.printf(" " + i);
     }
    }
??????}
??????System.out.ptintln("");
????}
??}

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: : 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: '.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;
^
Main.java:7: error: illegal start of expression
??????int i;
 ^
Main.java:7: error: illegal start of expression
??????int i;
  ^
Main.java:7: error: illegal start of expression
??????int i;
   ^
Main.java:7: error: illegal start of expression
??????int i;
    ^
Main.java:7: error: illegal start of expression
??????int i;
     ^
Main.java:7: error: '.class' expected
??????int i;
          ^
Main.java:7: error: : expected
??????int i;
           ^
Main.java:8: error: illegal start of expression
??????int x = i;
^
Main.java:8: error: illegal start of expression
??????int x = i;
 ^
Main.java:8: error: illegal start of expression
??????int x = i;
  ^
Main.java:8: error: illegal start of expression
??????int x = i;
   ^
Main.java:8: error: illegal start of expression
??????int x = i;
    ^
Main.java:8: error: illegal start of expression
??????int x = i;
     ^
Main.java:8: error: '.class' expected
??????int x = i;
          ^
Main.java:8: error: : expected
??????int x = i;
               ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
 ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
  ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
   ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
    ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
     ^
Main.java:9: error: illegal start of expression
??????for(i = 1;i <= n;i++){
      ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
 ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
  ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
   ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
    ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
     ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
      ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
       ^
Main.java:10: error: illegal start of expression
????????if (x%3 == 0) {
        ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
 ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
  ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
   ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
    ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
     ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
      ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
       ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
        ^
Main.java:11: error: illegal start of expression
??????????System.out.printf(" " + i);
         ^
Main.java:11: error: : expected
??????????System.out.printf(" " + i);
                                    ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
 ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
  ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
   ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
    ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
     ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
      ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
       ^
Main.java:12: error: illegal start of expression
????????}else if(x%10 == 3){
        ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
 ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
  ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
   ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
    ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
     ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
      ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
       ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
        ^
Main.java:13: error: illegal start of expression
??????????System.out.printf(" " + i);
         ^
Main.java:13: error: : expected
??????????System.out.printf(" " + i);
                                    ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
 ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
  ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
   ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
    ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
     ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
      ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
       ^
Main.java:14: error: illegal start of expression
????????}else if(i > 10){
        ^
Main.java:22: error: illegal start of expression
??????}
^
Main.java:22: error: illegal start of expression
??????}
 ^
Main.java:22: error: illegal start of expression
??????}
  ^
Main.java:22: error: illegal start of expression
??????}
   ^
Main.java:22: error: illegal start of expression
??????}
    ^
Main.java:22: error: illegal start of expression
??????}
     ^
Main.java:22: error: illegal start of expression
??????}
      ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
 ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
  ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
   ^
Main.java:23: error: illegal start of expression
??????System.out.ptintln("");
    ^
100 errors
only showing the first 100 errors, of 108 total; use -Xmaxerrs if you would like to see more