criyle/codenet-compile-errors huggingface dataset:
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int q = sc.nextInt();
		TreeMap<Integer, Integer> map = new TreeMap<Integer, Integer>();  //キーに対応する値にはキーの要素数を入れる
		int mapSize = 0;

		for(int i = 0; i < q; i++) {
			int query = sc.nextInt();

			switch(query) {
			case 0:
				int x = sc.nextInt();
				if(map.get(x) == null) {
					map.put(x, 1);
				}
				else map.replace(x, map.get(x) + 1);
				mapSize++;
				System.out.println(mapSize);
				break;

			case 1:
				x = sc.nextInt();
				if(map.get(x) == null) 	System.out.println(0);
				else System.out.println(map.get(x));
				break;

			case 2:
				x = sc.nextInt();
				if(map.get(x) != null) {
					mapSize -= map.get(x);
					map.remove(x);
				}
				break;

			case 3:
				int l = sc.nextInt();
				int r = sc.nextInt();

				for(int n : map.subMap(l, true, r, true).keySet()) {
					for(int j = 0; j < map.get(n); j++) {
						System.out.println(n);
					}
				}
				break;
			}
		}
	}

}



Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		TreeMap<Integer, Integer> map = new TreeMap<Integer, Integer>();  //????????????????????
		^
  symbol:   class TreeMap
  location: class Main
Main.java:7: error: cannot find symbol
		TreeMap<Integer, Integer> map = new TreeMap<Integer, Integer>();  //????????????????????
		                                    ^
  symbol:   class TreeMap
  location: class Main
4 errors
Language: C++

#include <stdio.h>
#include <set>
#include <iterator>
using namespace std;
int main(){
    int n,temp,k;
    multiset<int> s;
    multiset<int>::iterator u;
    scanf("%d",&n);
    while(n--){
        scanf("%d%d",&k,&temp);
        if(k==0){
            s.insert(temp);
            printf("%ld\n",s.size());
        }
        else if(k==1)printf("%ld\n"s.count(temp));
        else if(k==2)s.erase(temp);   
        else{
            u=s.lower_bound(temp);
            scanf("%d",&temp);
            while(u!=s.end()){
                if(*u>temp)break;
                printf("%d\n",*u);
                u++;
            }
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:38: error: 'class std::__cxx11::basic_string<char>' has no member named 'count'
   16 |         else if(k==1)printf("%ld\n"s.count(temp));
      |                                      ^~~~~
Language: Java

public class Main {
		public static void main(String[] args) {

			Map<String, Integer> sales = new HashMap<>();
			Scanner sc = new Scanner(System.in);

			int n = sc.nextInt();
			System.out.println("n="+ n);

			for(int i=0;i < n;i++){
				String key = sc.toString();
				int x = sc.nextInt();
				sales.put(key,x);
			}

			/*sales.put("tom", 10);
			sales.put("bob", 20);
			sales.put("steve", 30);
			*/

			for (Map.Entry<String, Integer> sale : sales.entrySet()) {
				System.out.println(sale.getKey() + ":" + sale.getValue());
			}

			for (Map.Entry<String, Integer> sale : sales.entrySet()) {
				System.out.println(sale.getKey() + ":" + sale.getValue());
			}
		}
	}


Compiler output:
Main.java:4: error: cannot find symbol
			Map<String, Integer> sales = new HashMap<>();
			^
  symbol:   class Map
  location: class Main
Main.java:4: error: cannot find symbol
			Map<String, Integer> sales = new HashMap<>();
			                                 ^
  symbol:   class HashMap
  location: class Main
Main.java:5: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
			Scanner sc = new Scanner(System.in);
			                 ^
  symbol:   class Scanner
  location: class Main
Main.java:21: error: package Map does not exist
			for (Map.Entry<String, Integer> sale : sales.entrySet()) {
			        ^
Main.java:25: error: package Map does not exist
			for (Map.Entry<String, Integer> sale : sales.entrySet()) {
			        ^
6 errors
Language: Java

import java.util.Iterator;
import java.util.Scanner;
import java.util.TreeMap;

public class ITP2_8_C {
	public static void main(String[] args){
		int i, q, order;
		String key, key2, str = "a";
		TreeMap<String, Integer> tm = new TreeMap<String, Integer>();
		try (Scanner sc = new Scanner(System.in)) {
			q = sc.nextInt();
			for(i = 0; i < q; i++) {
				order = sc.nextInt();
				key = sc.next();
				if(order == 0) {
					tm.put(key, sc.nextInt());
				}else if(order == 1) {
					if(tm.get(key) == null) {
						System.out.println(0);
					}else {
						System.out.println(tm.get(key));
					}
				}else if(order == 2){
					tm.remove(key);
				}else {
					key2 = sc.next();
					Iterator<String> it = tm.keySet().iterator();
					while (it.hasNext()) {
						str = it.next();
						if(str.compareTo(key2) <= 0 && str.compareTo(key) >= 0) {
							System.out.println(str + " " + tm.get(str));
						}else if(str.compareTo(key2) > 0) {
							break;
						}
					}
				}
			}
		}
	}
}



Compiler output:
Main.java:5: error: class ITP2_8_C is public, should be declared in a file named ITP2_8_C.java
public class ITP2_8_C {
       ^
1 error
Language: C++

#include<iostream>
#include<map>
using namespace std;
int main(){
	multimap<string, int>m;
	int q;
	cin>>q;
	while(q--){
		int c;
		string k;
		cin>>c>>k;
		if(c==0){
			int x;
			cin>>x;
			m[k]=x;
		}
		else if(c==1){
			if(m.find(k)==m.end())
				cout<<0<<endl;
			else
				cout<<m[k]<<endl;
		}
		else if(c==2){
			m.erase(k);
		}
		else if(c==3){
			string y;
			cin>>y;
			map<string, int>::iterator i;
			for(i=m.lower_bound(k); i!=m.upper_bound(y); i++)
				cout<<(*i).first<<" "<<(*i).second<<endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: no match for 'operator[]' (operand types are 'std::multimap<std::__cxx11::basic_string<char>, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   15 |                         m[k]=x;
      |                          ^
a.cc:21:40: error: no match for 'operator[]' (operand types are 'std::multimap<std::__cxx11::basic_string<char>, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   21 |                                 cout<<m[k]<<endl;
      |                                        ^
Language: C++

#include<iostream>
#include<map>
using namespace std;
int main(){
	multimap<string, int>m;
	int q;
	cin>>q;
	while(q--){
		int c;
		string k;
		cin>>c>>k;
		if(c==0){
			int x;
			cin>>x;
			m.insert(make_pair(k,x));
		}
		else if(c==1){
			if(m.find(k)==m.end())
				cout<<0<<endl;
			else
				cout<<m[k]<<endl;
		}
		else if(c==2){
			m.erase(k);
		}
		else if(c==3){
			string y;
			cin>>y;
			map<string, int>::iterator i;
			for(i=m.lower_bound(k); i!=m.upper_bound(y); i++)
				cout<<(*i).first<<" "<<(*i).second<<endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:40: error: no match for 'operator[]' (operand types are 'std::multimap<std::__cxx11::basic_string<char>, int>' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   21 |                                 cout<<m[k]<<endl;
      |                                        ^
Language: C++

#include<iostream>
#include<map>
using namespace std;
int main(){
	multimap<string, int>m;
	int q;
	cin>>q;
	while(q--){
		int c;
		string k;
		cin>>c>>k;
		if(c==0){
			int x;
			cin>>x;
			m.insert(make_pair(k,x));
		}
		else if(c==1){
			if(m.find(k)==m.end())
				cout<<0<<endl;
			else
				cout<<m->second<<endl;
		}
		else if(c==2){
			m.erase(k);
		}
		else if(c==3){
			string y;
			cin>>y;
			map<string, int>::iterator i;
			for(i=m.lower_bound(k); i!=m.upper_bound(y); i++)
				cout<<(*i).first<<" "<<(*i).second<<endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:40: error: base operand of '->' has non-pointer type 'std::multimap<std::__cxx11::basic_string<char>, int>'
   21 |                                 cout<<m->second<<endl;
      |                                        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
multimap<string,int>mp;
int main() {
	int q;
	cin >> q;
	while (q--) {
		int Q;
		cin >> Q;
		string s, l, r;
		int x;
		switch (Q) {
		case 0:
			cin >> s >> x;
			mp.insert(make_pair(s, x));
			break;
		case 1:
			cin >> s;
			auto now = mp.lower_bound(s);
			while (now == mp.lower_bound(s)) {
				if (now->second)cout << now->second << endl;
				++now;
			}
			break;
		case 2:
			cin >> s;
			mp.erase(s);
			break;
		case 3:
			cin >> l >> r;
			auto now = mp.lower_bound(l);
			auto end = mp.upper_bound(r);
			while (now != end) {
				if (now->second)cout << now->first << " " << now->second << endl;
				++now;
			}
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: jump to case label
   26 |                 case 2:
      |                      ^
a.cc:20:30: note:   crosses initialization of 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
a.cc:30:22: error: jump to case label
   30 |                 case 3:
      |                      ^
a.cc:20:30: note:   crosses initialization of 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
a.cc:32:30: error: conflicting declaration 'auto now'
   32 |                         auto now = mp.lower_bound(l);
      |                              ^~~
a.cc:20:30: note: previous declaration as 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
multimap<string,int>mp;
int main() {
	int q;
	cin >> q;
	while (q--) {
		int Q;
		cin >> Q;
		string s, l, r;
		int x;
		switch (Q) {
		case 0:
			cin >> s >> x;
			mp.insert(make_pair(s, x));
			break;
		case 1:
			cin >> s;
			auto now = mp.lower_bound(s);
			while (now == mp.lower_bound(s)) {
				if (now->second)cout << now->second << endl;
				++now;
			}
			break;
		case 2:
			cin >> s;
			mp.erase(s);
			break;
		case 3:
			cin >> l >> r;
			auto now = mp.lower_bound(l);
			auto end = mp.upper_bound(r);
			while (now != end) {
				if (now->second)cout << now->first << " " << now->second << endl;
				++now;
			}
			break;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: jump to case label
   26 |                 case 2:
      |                      ^
a.cc:20:30: note:   crosses initialization of 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
a.cc:30:22: error: jump to case label
   30 |                 case 3:
      |                      ^
a.cc:20:30: note:   crosses initialization of 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
a.cc:32:30: error: conflicting declaration 'auto now'
   32 |                         auto now = mp.lower_bound(l);
      |                              ^~~
a.cc:20:30: note: previous declaration as 'std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string<char>, int> > now'
   20 |                         auto now = mp.lower_bound(s);
      |                              ^~~
Language: Java

mport java.util.ArrayList;
import java.util.Scanner;

public class Main {
	private static int nowSosuu = 1;
	private static ArrayList<Integer> array = new ArrayList<Integer>();

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();

		System.out.printf(n + ":");

		if(checkSosuu(n)) {
			System.out.printf(" " + n);
		}
		else {
			while(n != 1) {
				setNextSosuu();
				while(n % nowSosuu == 0) {
					System.out.printf(" %d", nowSosuu);

					n /= nowSosuu;
				}
			}
		}
		System.out.println("");

		scan.close();
	}

	private static void setNextSosuu() {
		while(true) {
			nowSosuu++;
			if(checkNotMultiple(nowSosuu)) {
				array.add(nowSosuu);
				return;
			}
		}
	}

	private static boolean checkNotMultiple(int num) {
		for(int i = 0; i < array.size(); i++) {
			if(num % array.get(i) == 0) {
				return false;
			}
		}
		return true;
	}

	private static boolean checkSosuu(int n) {
		for(int i = 2; i < n; i++) {
			if(n % i == 0) {
				return false;
			}
		}
		return true;
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.ArrayList;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class PrimeFactorize {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		long n = Long.parseLong(str);
		System.out.print(n + ":");
		long div = n;
		long i;
		Boolean isBig = true;
		for (i = 2; isBig; i++) {
			if (div % i == 0) {
				div = div / i;
				System.out.print(" " + i);
				i--;
				isBig = i <= Math.pow(div, 0.5);
			}
		}
		if (div != 1) {
			System.out.println(" " + div);
		} else {
			System.out.println();
		}
	}
}

Compiler output:
Main.java:5: error: class PrimeFactorize is public, should be declared in a file named PrimeFactorize.java
public class PrimeFactorize {
       ^
1 error
Language: Java

public class Factorization{
     public static void main(String[] args){
          int i,j;
   
          int val = new java.util.Scanner(System.in).nextInt();
  
          int a=2;
          System.out.print(val + ":");
   
          while(val>=a*a){
                if(val%a==0){
                      System.out.print(" " + a);
                    val/=a;
                 }else{
                     a++;
                }
  
         }
          System.out.println(" " +  val);
     }
 }

Compiler output:
Main.java:1: error: class Factorization is public, should be declared in a file named Factorization.java
public class Factorization{
       ^
1 error
Language: Java


     public static void main(String[] args){
          int i,j;
   
          int val = new java.util.Scanner(System.in).nextInt();
  
          int a=2;
          System.out.print(val + ":");
   
          while(val>=a*a){
                if(val%a==0){
                      System.out.print(" " + a);
                    val/=a;
                 }else{
                     a++;
                }
  
         }
          System.out.println(" " +  val);
     }
 

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
     public static void main(String[] args){
                   ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class a{
     public static void main(String[] args){
          int i,j;
   
          int val = new java.util.Scanner(System.in).nextInt();
  
          int a=2;
          System.out.print(val + ":");
   
          while(val>=a*a){
                if(val%a==0){
                      System.out.print(" " + a);
                    val/=a;
                 }else{
                     a++;
                }
  
         }
          System.out.println(" " +  val);
     }
 }

Compiler output:
Main.java:1: error: class a is public, should be declared in a file named a.java
public class a{
       ^
1 error
Language: Java

Public Static void main(String[] args) {
int n;
     System.out.print(n + ":");
  while(n%2 ==0){
     System.out.print(" " + 2);
     n /=2;     
                }
  for(int i=3; i*i<=n; i+=2;){
    while(n%i ==0){
       System.out.print(" " + i);
        m /= i;
      }
   }
    if (m > 1) {
       System.out.print(" " + m);
      }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public Static void main(String[] args) {
^
Main.java:3: error: class, interface, enum, or record expected
     System.out.print(n + ":");
     ^
Main.java:4: error: class, interface, enum, or record expected
  while(n%2 ==0){
  ^
Main.java:6: error: class, interface, enum, or record expected
     n /=2;     
     ^
Main.java:7: error: class, interface, enum, or record expected
                }
                ^
Main.java:8: error: class, interface, enum, or record expected
  for(int i=3; i*i<=n; i+=2;){
               ^
Main.java:8: error: class, interface, enum, or record expected
  for(int i=3; i*i<=n; i+=2;){
                       ^
Main.java:8: error: class, interface, enum, or record expected
  for(int i=3; i*i<=n; i+=2;){
                            ^
Main.java:11: error: class, interface, enum, or record expected
        m /= i;
        ^
Main.java:12: error: class, interface, enum, or record expected
      }
      ^
Main.java:16: error: class, interface, enum, or record expected
      }
      ^
11 errors
Language: Java

Public Static void main(String[] args) {
int n;
??????????System.out.print(n + ":");
????while(n%2 == 0){
??????????System.out.print(" " + 2);
??????????n /= 2;???????? 
????????????????????????????????}
????for(int i = 3; i*i <= n; i += 2;){
????????while(n%i ==0){
??????????????System.out.print(" " + i);
????????????????n /= i;
????????????}
??????}
????????if (n > 1) {
??????????????System.out.print(" " + n);
????????????}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public Static void main(String[] args) {
^
Main.java:3: error: class, interface, enum, or record expected
??????????System.out.print(n + ":");
^
Main.java:4: error: class, interface, enum, or record expected
????while(n%2 == 0){
^
Main.java:6: error: class, interface, enum, or record expected
??????????n /= 2;???????? 
^
Main.java:6: error: class, interface, enum, or record expected
??????????n /= 2;???????? 
                 ^
Main.java:8: error: class, interface, enum, or record expected
????for(int i = 3; i*i <= n; i += 2;){
                   ^
Main.java:8: error: class, interface, enum, or record expected
????for(int i = 3; i*i <= n; i += 2;){
                             ^
Main.java:8: error: class, interface, enum, or record expected
????for(int i = 3; i*i <= n; i += 2;){
                                    ^
Main.java:11: error: class, interface, enum, or record expected
????????????????n /= i;
^
Main.java:12: error: class, interface, enum, or record expected
????????????}
^
Main.java:16: error: class, interface, enum, or record expected
????????????}
^
11 errors
Language: Java

Public Static void main(String[] args) {
int n;
System.out.print(n + ":");
??while(n%2 ==0){
System.out.print(" " + 2);
n /=2;???????? 
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public Static void main(String[] args) {
^
Main.java:3: error: class, interface, enum, or record expected
System.out.print(n + ":");
^
Main.java:4: error: class, interface, enum, or record expected
??while(n%2 ==0){
^
Main.java:6: error: class, interface, enum, or record expected
n /=2;???????? 
^
Main.java:6: error: class, interface, enum, or record expected
n /=2;???????? 
      ^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
             ^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                     ^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                          ^
Main.java:11: error: class, interface, enum, or record expected
n /= i;
^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:16: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

Public Static void main(String[] args) {
int n;
System.out.print(n + ":");
??while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Public Static void main(String[] args) {
^
Main.java:3: error: class, interface, enum, or record expected
System.out.print(n + ":");
^
Main.java:4: error: class, interface, enum, or record expected
??while(n%2 ==0){
^
Main.java:6: error: class, interface, enum, or record expected
n /=2;
^
Main.java:7: error: class, interface, enum, or record expected
}
^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
             ^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                     ^
Main.java:8: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                          ^
Main.java:11: error: class, interface, enum, or record expected
n /= i;
^
Main.java:12: error: class, interface, enum, or record expected
}
^
Main.java:16: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

int n;
System.out.print(n + ":");
??while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int n;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
System.out.print(n + ":");
^
Main.java:3: error: class, interface, enum, or record expected
??while(n%2 ==0){
^
Main.java:5: error: class, interface, enum, or record expected
n /=2;
^
Main.java:6: error: class, interface, enum, or record expected
}
^
Main.java:7: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
             ^
Main.java:7: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                     ^
Main.java:7: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                          ^
Main.java:10: error: class, interface, enum, or record expected
n /= i;
^
Main.java:11: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

Class ntl{
Public Static void main(String[] args) {
int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;???????? 
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Class ntl{
^
Main.java:4: error: class, interface, enum, or record expected
System.out.print(n + ":");
^
Main.java:5: error: class, interface, enum, or record expected
while(n%2 ==0){
^
Main.java:7: error: class, interface, enum, or record expected
n /=2;???????? 
^
Main.java:7: error: class, interface, enum, or record expected
n /=2;???????? 
      ^
Main.java:9: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
             ^
Main.java:9: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                     ^
Main.java:9: error: class, interface, enum, or record expected
for(int i=3; i*i<=n; i+=2;){
                          ^
Main.java:12: error: class, interface, enum, or record expected
n /= i;
^
Main.java:13: error: class, interface, enum, or record expected
}
^
Main.java:17: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

public class Test{
Public Static void main(String[] args){

int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:2: error: ';' expected
Public Static void main(String[] args){
             ^
Main.java:10: error: ')' expected
for(int i=3; i*i<=n; i+=2;){
                         ^
Main.java:10: error: illegal start of expression
for(int i=3; i*i<=n; i+=2;){
                          ^
3 errors
Language: Java

public class Test{
public static void main(String[] args){
int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test{
       ^
1 error
Language: Java

public class Main{
public static void main(String[] args){
int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:4: error: variable n might not have been initialized
System.out.print(n + ":");
                 ^
1 error
Language: Java

import java.util.Scanner;

public class Test{
     public static void main(String[] args){
     	int MAX = 10*10*10*10*10*10*10*10*10;
     	Scanner scan = new Scanner(System.in);
     	int n = Integer.parseInt(scan.next());
     	
     	System.out.print(n + ":");
     	for (int i = 2; i <= MAX; i++) {
     		if (n == 1) {
     			break;
     		}
     		if (n%i == 0) {
     			System.out.print(" " + i);
     			n = n/i;
     			i = 1;
     		}
     	}
     }
}

Compiler output:
Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test{
       ^
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args){

File file = new File("");
BufferedReader br = new BufferedReader(new FileReader(file));
String str = br.readLine();

int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2;){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}

Compiler output:
Main.java:16: error: ')' expected
for(int i=3; i*i<=n; i+=2;){
                         ^
Main.java:16: error: illegal start of expression
for(int i=3; i*i<=n; i+=2;){
                          ^
Main.java:25: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.*;
 
class Main{
public static void main(String[] args){
 
File file = new File("");
BufferedReader br = new BufferedReader(new FileReader(file));
String str = br.readLine();
 
int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}

Compiler output:
Main.java:25: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.io.*;
  
class Main{
public static void main(String[] args){
  
File file = new File("");
BufferedReader br = new BufferedReader(new FileReader(file));
String str = br.readLine();
  
int n;
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:11: error: variable n might not have been initialized
System.out.print(n + ":");
                 ^
Main.java:7: error: unreported exception FileNotFoundException; must be caught or declared to be thrown
BufferedReader br = new BufferedReader(new FileReader(file));
                                       ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
String str = br.readLine();
                        ^
3 errors
Language: Java

import java.io.*;
   
public class Main{
   public static void main(String[] args){
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int n = Intenger.parseint(br.readLine());
   
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
   int n = Intenger.parseint(br.readLine());
           ^
  symbol:   variable Intenger
  location: class Main
1 error
Language: Java

import java.io.*;
   
public class Main{
   public static void main(String[] args){
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   int n = Intenger.parseint(br.readLine());   
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
   int n = Intenger.parseint(br.readLine());   
           ^
  symbol:   variable Intenger
  location: class Main
1 error
Language: Java

import java.io.*;
   
public class Main{
   public static void main(String[] args){
   BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
   String str = br.readLine();
   long n = Long.parseLong(str);
System.out.print(n + ":");
while(n%2 ==0){
System.out.print(" " + 2);
n /=2;
}
for(int i=3; i*i<=n; i+=2){
while(n%i ==0){
System.out.print(" " + i);
n /= i;
}
}
if (n > 1) {
System.out.print(" " + n);
}
}
}

Compiler output:
Main.java:6: error: unreported exception IOException; must be caught or declared to be thrown
   String str = br.readLine();
                           ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
  
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        int k = 2;
         System.out.print(t+":");
          
    while (t % 2 == 0) {
      System.out.print(" "+ k);
      t /= 2;
    }
    for (int i = 3; i * i <= t; i += 2) {
      while (t % i == 0) {
        System.out.print(" " + i);
        t /= i;
      }
    }
    if (t > 1) System.out.println(" "+t);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

package p;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PrimeFactorize {
	public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(br.readLine());
        int m = n;
        List<Integer> prime = new ArrayList<>(Arrays.asList(2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 
        											47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 
        											113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 
        											191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 
        											263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 
        											347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 
        											421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 
        											499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 
        											593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 
        											661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 
        											757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 
        											853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 
        											941, 947, 953, 967, 971, 977, 983, 991, 997));
        int i = 0;
        System.out.print(m+":");
        while (n!=1){
        	while (n%prime.get(i)==0) {
        		n=n/prime.get(i);
        		System.out.print(" "+ prime.get(i));
        	}
        	i++;
        }
	}
}

Compiler output:
Main.java:8: error: class PrimeFactorize is public, should be declared in a file named PrimeFactorize.java
public class PrimeFactorize {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class A {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Integer inputNum = Integer.valueOf(br.toString());
		System.out.print(inputNum + " :");
		List<Integer> list = new ArrayList<>();

		for (int i = 2; i * i <= inputNum; i++) {
			while (inputNum % i == 0) {
				inputNum = inputNum / i;
				list.add(i);
			}
		}
		if (inputNum > 1) {
			list.add(inputNum);
		}
		Collections.sort(list);

		for (int prime : list) {
			System.out.print(" " + prime);
		}
	}
}

Compiler output:
Main.java:7: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

import java.util.*;

class Main{

public static int bunkai(int n){
    int r = 0;
    int x = Math.sqrt(n);
    for(int i=2; i<=x; i++){
        if(n % i == 0){
            r = i;
            break;
        }
    }
    if(x== 0){
       r = n;
     }

    return r;
}    

public static void main(String args[]){

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int n = Integer.parseInt(line);
    ArrayList<Integer> kotae = new ArrayList<>();

    int m = n;

    while(n != 1){
        kotae.add(bunkai(n));
        n = n / bunkai(n);
    }




    System.out.print(m + ": ");
    for(int i=0; i<kotae.size()-1; i++){
        System.out.print(kotae.get(i) + " ");

    }

    System.out.print(kotae.get(kotae.size()-1));
    System.out.println();
}

}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
    int x = Math.sqrt(n);
                     ^
1 error
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
	new Main().run();
    }
    Scanner sc = new Scanner(System.in);

    int n;
    boolean[] p;

    void run(){
	p = new boolean[100000000];
	setP();
	while(sc.hasNext()){
	    int n = sc.nextInt();
	    if(n>=2){
		System.out.print(n+":");
		solve(n);
	    }
	}
    }

    void solve(int n){
	int i=2;
	while(n>1){
	    // ??????????????????????卒???属??????
	    if((n<p.length && p[n]){
		System.out.print(" "+n);
		n = n/n;
		continue;
	    }
	    // ??????????其????????卒???属??????????????????????????????
	    if(i>=p.length){
		System.out.print(" "+n);
		n = 1;
		continue;
	    }
	    // ?卒???属??則????????????
	    while(p[i] && n%i==0){
		n = n/i;
		System.out.print(" "+i);
	    }
	    if(i>2) i+= 2;
	    else i++;
	}
	System.out.println();
    }

    void setP(){
	Arrays.fill(p, true);
	p[0] = p[1] = false;
	for(int i=2; i<p.length; i++){
	    if(p[i])
		for(int j=i*2; j<p.length; j+=i)
		    if(p[j]) p[j] = false;
	}
    }
}
	    

Compiler output:
Main.java:27: error: ')' expected
	    if((n<p.length && p[n]){
	                           ^
1 error
Language: C

#include<iostream>
#include <cstring>
int prime[1100000],primesize,phi[11000000];
bool isprime[11000000];
const int listsize=1e5;
void getlist()
{
    memset(isprime,1,sizeof(isprime));
    isprime[1]=false;
    for(int i=2;i<=listsize;i++)
    {
        if(isprime[i])prime[++primesize]=i;
         for(int j=1;j<=primesize&&i*prime[j]<=listsize;j++)
         {
            isprime[i*prime[j]]=false;
            if(i%prime[j]==0)break;
        }
    }
}
void factor(long long i)
{
    int curr=2;
    while(i!=1){
        if(i%curr==0&&isprime[curr]){
            std::cout<<" "<<curr;
            i/=curr;
            curr=2;
        }else{
            curr++;
            while(!isprime[curr]&&curr<=1e5){
                curr++;
            }
        }
    }
}
int main()
{
    getlist();
    long long n;
    std::cin>>n;
    // n=1e9;
    std::cout<<n<<":";
    factor(n);
    std::cout<<std::endl;
    return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |   ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:26: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |                          ^~~~~~
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:26: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:26: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |                                                          ^~~~
main.c:1:58: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:56: error: lvalue required as left operand of assignment
    1 | i;main(n){scanf("%d",&n);printf("%d:",n);for(i=2;n/i||i=!puts("");i++)for(;n/i;n/=i)printf(" %d",i);}
      |                                                        ^
Language: C

#include <stdio.h>


int main(void)
{
	int flag;
	
	long long int n,a,b;
	
	scanf("%lld",&n);
	
	printf("%lld:",n);
	
	while(n!=1){
		flag=0;
		printf(" ");
		
		for(a=2;a<=n;a++){
			flag=0;
			if(n%a==0){
				for(b=2;b<a;b++){
					if(a%b==0 && a!=b) flag=1;
				}
			}
			else flag=1;
			
			if(flag==0){
				printf("%lld",a);
				n/=a;
				break;
				}
			}
		}
	}
	
	printf("\n");
	
	return 0;
}

Compiler output:
main.c:36:16: error: expected declaration specifiers or '...' before string constant
   36 |         printf("\n");
      |                ^~~~
main.c:38:9: error: expected identifier or '(' before 'return'
   38 |         return 0;
      |         ^~~~~~
main.c:39:1: error: expected identifier or '(' before '}' token
   39 | }
      | ^
Language: C

#include <stdio.h>

int main(){

int n,m;

printf("%d",n);

for(m=2,m<n,m++){

if(n%m==0){
printf(" %d",m);

}


}





return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before ')' token
    9 | for(m=2,m<n,m++){
      |                ^
      |                ;
main.c:9:16: error: expected expression before ')' token
Language: C

#include <stdio.h>

int main(){

int n,m;

printf("%d",n);

for(m=2,m<n,m++){

if(n%m==0){
printf(" %d",m);

}

}


return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:16: error: expected ';' before ')' token
    9 | for(m=2,m<n,m++){
      |                ^
      |                ;
main.c:9:16: error: expected expression before ')' token
Language: C

#include <stdio.h>

int main(){

int n,m;

printf("%d",n);

for(m=2,m<n,m++;){

if(n%m==0){
printf(" %d",m);

}

}


return 0;}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: expected expression before ')' token
    9 | for(m=2,m<n,m++;){
      |                 ^
Language: C

#include<stdio.h>

int main()
{
	int a,i,num;
    scanf("%d",&a);
    printf("%d:",a);
    for(i=2;i<=a;i++){
    	if(i>1000){
    		printf("%d ",a);
    		return 0;
    	if(a%i==0){
    		printf("%d ",i);
    		a /= i;
    		i = 1;
    	}
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
    int a,i,num;
    scanf("%d",&a);
    printf("%d:",a);
    for(i=2;i<=a;i++){
    	if(i>1000){
    		printf("%d ",a);
    		return 0;
    	if(a%i==0){
    		printf("%d ",i);
    		a /= i;
    		i = 1;
    	}
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
    int a,i;
    scanf("%d",&a);
    printf("%d:",a);
    for(i=2;i<=a;i++){
    	if(i>1000){
    		printf(" %d",a);
    	if(a%i==0){
    		printf(" %d",i);
    		a /= i;
    		i = 1;
    	}
    }
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>
int main()
{
    int n,i,j;
    scanf("%d",&n);
    printf("%d:",n);
    while(n%2==0&&n!=0){
        printf(" 2");
        n=n/2;
    }
    for(i=3;i*i<=n;i=i+2)
    {
        while(n%i==0&&n!=0)
        {
            printf(" %d",i);
            n=n/i;
        }
        
    }
    if(n>2) printf(" %d",)
    printf("\n");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:26: error: expected expression before ')' token
   20 |     if(n>2) printf(" %d",)
      |                          ^
Language: C

#include<bits/stdc++.h>
#define N 1000000001
using namespace std;
int a[N+9];
void sieve()
{
  int i,j,s=sqrt(N);
  for(i=4;i<=N;i+=2) a[i]=1;
  for(i=3;i<=s;i+=2){
    if(a[i]==0){
      for(j=i*i;j<=N;j+=2*i) a[j]=1;
    }
  }
}
int main()
{
  sieve();
 int n,i,j,f,g,k,tc=1,t;
 
 
 while(scanf("%d",&n)!=EOF)
 {
  printf("%d :",n);
    for(i=2;i<=n;i++)
    {
      if(a[i]==0){
        while(n%i==0){n=n/i;
        if(n%i==0){
  printf(" ");
        printf("%d",i);
      }
        }
      }
    }
    printf("\n");
  }
  return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

import java.util.*;

class Main{

public static int bunkai(int n){
    int r = 0;
    int x = (int)Math.sqrt(n);
    for(int i=2; i<=x; i++){
        if(n % i == 0){
            r = i;
            break;
        }
    }

    if(r == 0){
        r = n;
    }

    return r;
}    

public static void main(String args[]){

    Scanner sc = new Scanner(System.in);
    String line = sc.nextLine();
    int n = Integer.parseInt(line);
    ArrayList<Integer> kotae = new ArrayList<>();

    int m = n;

    while(n != 1){
        kotae.add(bunkai(n));
        n = n / bunkai(n);
    }




    System.out.print(m + ": ");
    for(int i=0; i<kotae.size()-1; i++){
        System.out.print(kotae.get(i) + " ");

    }

    System.out.print(kotae.get(kotae.size()-1));
   System.out.println();
}

}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define L long long

void U_n_f(L n)
{
    L i;

    while(n%2==0)
    {
        printf(" 2");
        n/=2;

    }
    for( i=3; i<20000000 ; i+=2)
    {
        while(n%i==0)
        {
            printf(" %lld",i);
            n/=i;
        }
    }




    if(n>1)printf(" %lld",n);
    printf("\n");

}


int main()
{

    L n;

    scanf("%lld",&n);
    printf("%lld:",n);

    U_n_f(n);

    return 0;
}




Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<math.h>

getPrime(int n)
{
    int i;
    if (i == 2) return 1;
    for (i = 3; i < n; i += 2)
        if (n % i == 0) return 1;
    return 0;
}

int main(void)
{
    int n, max, i;
    scanf("%d", &d);
    max = sqrt(n);
    printf("%d:");
    while (n % 2 == 0) {
        printf(" 2");
        n %= 2;
    }
    for (i = 3; i <= max; i += 2) {
        if (isPrime(i)) {
            while (n % i == 0) {
                printf(" %d", i);
                n %= i;
            }
        }
    }
    printf("\n");
}
            



Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | getPrime(int n)
      | ^~~~~~~~
main.c: In function 'main':
main.c:16:18: error: 'd' undeclared (first use in this function)
   16 |     scanf("%d", &d);
      |                  ^
main.c:16:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:13: error: implicit declaration of function 'isPrime' [-Wimplicit-function-declaration]
   24 |         if (isPrime(i)) {
      |             ^~~~~~~
Language: C

#include<stdio.h>
#include<math.h>

getPrime(int n)
{
    int i;
    if (i == 2) return 1;
    for (i = 3; i < n; i += 2)
        if (n % i == 0) return 1;
    return 0;
}

int main(void)
{
    int n, max, i;
    scanf("%d", &n);
    max = sqrt(n);
    printf("%d:");
    while (n % 2 == 0) {
        printf(" 2");
        n %= 2;
    }
    for (i = 3; i <= max; i += 2) {
        if (isPrime(i)) {
            while (n % i == 0) {
                printf(" %d", i);
                n %= i;
            }
        }
    }
    printf("\n");
}
            



Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | getPrime(int n)
      | ^~~~~~~~
main.c: In function 'main':
main.c:24:13: error: implicit declaration of function 'isPrime' [-Wimplicit-function-declaration]
   24 |         if (isPrime(i)) {
      |             ^~~~~~~