prog.cpp:1:1: error: 'import' does not name a type
import java.until.Scanner;
^
prog.cpp:2:1: error: 'import' does not name a type
import java.math.BigInteger;
^
prog.cpp:5:10: error: expected ':' before 'static'
public static void main(String[] args) {
^
prog.cpp:5:27: error: 'String' has not been declared
public static void main(String[] args) {
^
prog.cpp:5:36: error: expected ',' or '...' before 'args'
public static void main(String[] args) {
^
prog.cpp:13:5: error: expected ';' after class definition
} } }
^
prog.cpp: In static member function 'static void Main::main(int*)':
prog.cpp:6:5: error: 'Scanner' was not declared in this scope
Scanner sc = new Scanner(System.in);
^
prog.cpp:7:13: error: 'sc' was not declared in this scope
int c = sc.nextInt();
^
prog.cpp:9:7: error: 'BigInteger' was not declared in this scope
BigInteger x = BigInteger.valueOf(sc.nextInt()); // valueOf converts
^
prog.cpp:10:18: error: expected ';' before 'y'
BigInteger y = BigInteger.valueOf(sc.nextInt()); // simple integer
^
prog.cpp:11:18: error: expected ';' before 'n'
BigInteger n = BigInteger.valueOf(sc.nextInt()); // into BigInteger
^
prog.cpp:12:7: error: 'System' was not declared in this scope
System.out.println(x.modPow(y, n)); // look ma, it's in the library ;)
^
prog.cpp:12:26: error: 'x' was not declared in this scope
System.out.println(x.modPow(y, n)); // look ma, it's in the library ;)
^
prog.cpp:12:35: error: 'y' was not declared in this scope
System.out.println(x.modPow(y, n)); // look ma, it's in the library ;)
^
prog.cpp:12:38: error: 'n' was not declared in this scope
System.out.println(x.modPow(y, n)); // look ma, it's in the library ;)
^