Language: Java

#pragma GCC optimize(2)
#include<bits/stdc++.h>
#define ll long long
#define maxn 1005
#define inf 1e9
#define pb push_back
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define per(i,a,b) for(int i=a;i>=b;i--)
using namespace std;

inline ll read()
{
	ll x=0,w=1; char c=getchar();
	while(c<'0'||c>'9') {if(c=='-') w=-1; c=getchar();}
	while(c<='9'&&c>='0') {x=(x<<1)+(x<<3)+c-'0'; c=getchar();}
	return w==1?x:-x;
}


int main()
{
    ll n=read();
    int ans=0;
    for(ll i=2;i*i<=n;++i){
        if(n%i==0){
            int num=0;
            while(n%i==0) num++,n=n/i;

            int l=1,r=1000,t=0;
            //printf("i:%lld num:%d\n",i,num);

            while(l<=r){
                int mid=l+r>>1;
                int res=mid*(mid+1)/2;
                if(res>=num) t=mid,r=mid-1;
                else l=mid+1;
            }
            ans+=t;

        }
    }
    if(n!=1) ans++;

    printf("%d\n",ans);
}


Compiler output:
Main.java:1: error: illegal character: '#'
#pragma GCC optimize(2)
^
Main.java:2: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
#pragma GCC optimize(2)
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:3: error: illegal character: '#'
#define ll long long
^
Main.java:4: error: illegal character: '#'
#define maxn 1005
^
Main.java:5: error: illegal character: '#'
#define inf 1e9
^
Main.java:6: error: illegal character: '#'
#define pb push_back
^
Main.java:7: error: illegal character: '#'
#define rep(i,a,b) for(int i=a;i<=b;i++)
^
Main.java:7: error: class, interface, enum, or record expected
#define rep(i,a,b) for(int i=a;i<=b;i++)
                               ^
Main.java:7: error: class, interface, enum, or record expected
#define rep(i,a,b) for(int i=a;i<=b;i++)
                                    ^
Main.java:8: error: illegal character: '#'
#define per(i,a,b) for(int i=a;i>=b;i--)
^
Main.java:8: error: class, interface, enum, or record expected
#define per(i,a,b) for(int i=a;i>=b;i--)
                               ^
Main.java:8: error: class, interface, enum, or record expected
#define per(i,a,b) for(int i=a;i>=b;i--)
                                    ^
Main.java:11: error: class, interface, enum, or record expected
inline ll read()
^
Main.java:14: error: class, interface, enum, or record expected
	while(c<'0'||c>'9') {if(c=='-') w=-1; c=getchar();}
	^
Main.java:14: error: class, interface, enum, or record expected
	while(c<'0'||c>'9') {if(c=='-') w=-1; c=getchar();}
	                                      ^
Main.java:14: error: class, interface, enum, or record expected
	while(c<'0'||c>'9') {if(c=='-') w=-1; c=getchar();}
	                                                  ^
Main.java:15: error: class, interface, enum, or record expected
	while(c<='9'&&c>='0') {x=(x<<1)+(x<<3)+c-'0'; c=getchar();}
	                                              ^
Main.java:15: error: class, interface, enum, or record expected
	while(c<='9'&&c>='0') {x=(x<<1)+(x<<3)+c-'0'; c=getchar();}
	                                                          ^
Main.java:17: error: class, interface, enum, or record expected
}
^
Main.java:24: error: class, interface, enum, or record expected
    for(ll i=2;i*i<=n;++i){
    ^
Main.java:24: error: class, interface, enum, or record expected
    for(ll i=2;i*i<=n;++i){
               ^
Main.java:24: error: class, interface, enum, or record expected
    for(ll i=2;i*i<=n;++i){
                      ^
Main.java:27: error: class, interface, enum, or record expected
            while(n%i==0) num++,n=n/i;
            ^
Main.java:32: error: class, interface, enum, or record expected
            while(l<=r){
            ^
Main.java:35: error: class, interface, enum, or record expected
                if(res>=num) t=mid,r=mid-1;
                ^
Main.java:36: error: class, interface, enum, or record expected
                else l=mid+1;
                ^
Main.java:37: error: class, interface, enum, or record expected
            }
            ^
Main.java:40: error: class, interface, enum, or record expected
        }
        ^
Main.java:44: error: class, interface, enum, or record expected
    printf("%d\n",ans);
    ^
Main.java:45: error: class, interface, enum, or record expected
}
^
32 errors