Language: Java

import java.util.*;
class Main {
     
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String tar = sc.next().toLowerCase();
        int count = 0;
        while(true) {
            String tmp = sc.next();
            if(tmp.equals("END_OF_TEXT")) break;
            if(tar.equals(tmp.toLowerCase())) {
                count++;
            }
        }
        System.out.println(count);
    }
}


Compiler output:
Main.java:3: error: illegal character: '\u00a0'
?????
^
Main.java:3: error: illegal character: '\u00a0'
?????
 ^
Main.java:3: error: illegal character: '\u00a0'
?????
  ^
Main.java:3: error: illegal character: '\u00a0'
?????
   ^
Main.java:3: error: illegal character: '\u00a0'
?????
    ^
Main.java:4: error: illegal character: '\u00a0'
?
^
Main.java:5: error: illegal character: '\u00a0'
????public static void main(String[] args) {
^
Main.java:5: error: illegal character: '\u00a0'
????public static void main(String[] args) {
 ^
Main.java:5: error: illegal character: '\u00a0'
????public static void main(String[] args) {
  ^
Main.java:5: error: illegal character: '\u00a0'
????public static void main(String[] args) {
   ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
 ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
  ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
   ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
    ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
     ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
      ^
Main.java:6: error: illegal character: '\u00a0'
????????Scanner sc = new Scanner(System.in);
       ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
 ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
  ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
   ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
    ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
     ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
      ^
Main.java:7: error: illegal character: '\u00a0'
????????String tar = sc.next().toLowerCase();
       ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
 ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
  ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
   ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
    ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
     ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
      ^
Main.java:8: error: illegal character: '\u00a0'
????????int count = 0;
       ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
 ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
  ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
   ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
    ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
     ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
      ^
Main.java:9: error: illegal character: '\u00a0'
????????while(true) {
       ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
 ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
  ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
   ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
    ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
     ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
      ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
       ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
        ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
         ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
          ^
Main.java:10: error: illegal character: '\u00a0'
????????????String tmp = sc.next();
           ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
 ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
  ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
   ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
    ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
     ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
      ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
       ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
        ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
         ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
          ^
Main.java:11: error: illegal character: '\u00a0'
????????????if(tmp.equals("END_OF_TEXT")) break;
           ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
 ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
  ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
   ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
    ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
     ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
      ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
       ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
        ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
         ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
          ^
Main.java:12: error: illegal character: '\u00a0'
????????????if(tar.equals(tmp.toLowerCase())) {
           ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
 ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
  ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
   ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
    ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
     ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
      ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
       ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
        ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
         ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
          ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
           ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
            ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
             ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
              ^
Main.java:13: error: illegal character: '\u00a0'
????????????????count++;
               ^
Main.java:14: error: illegal character: '\u00a0'
????????????}
^
Main.java:14: error: illegal character: '\u00a0'
????????????}
 ^
Main.java:14: error: illegal character: '\u00a0'
????????????}
  ^
Main.java:14: error: illegal character: '\u00a0'
????????????}
   ^
Main.java:14: error: illegal character: '\u00a0'
????????????}
    ^
Main.java:14: error: illegal character: '\u00a0'
????????????}
     ^
100 errors
only showing the first 100 errors, of 126 total; use -Xmaxerrs if you would like to see more