0_0_22338250_3146.cpp:1:1: error: 'import' does not name a type
import java.util.*;
^
0_0_22338250_3146.cpp:2:1: error: 'import' does not name a type
import java.io.*;
^
0_0_22338250_3146.cpp:3:1: error: 'import' does not name a type
import java.lang.*;
^
0_0_22338250_3146.cpp:4:1: error: 'import' does not name a type
import java.math.*;
^
0_0_22338250_3146.cpp:8:12: error: expected ':' before 'static'
public static boolean check(String a){
^
0_0_22338250_3146.cpp:8:19: error: 'boolean' does not name a type
public static boolean check(String a){
^
0_0_22338250_3146.cpp:14:12: error: expected ':' before 'static'
public static String reverse(String a){
^
0_0_22338250_3146.cpp:14:19: error: 'String' does not name a type
public static String reverse(String a){
^
0_0_22338250_3146.cpp:23:12: error: expected ':' before 'static'
public static void main(String [] args) {
^
0_0_22338250_3146.cpp:23:29: error: 'String' has not been declared
public static void main(String [] args) {
^
0_0_22338250_3146.cpp:23:39: error: expected ',' or '...' before 'args'
public static void main(String [] args) {
^
0_0_22338250_3146.cpp:83:1: error: expected ';' after class definition
}
^
0_0_22338250_3146.cpp: In static member function 'static void Main::main(int*)':
0_0_22338250_3146.cpp:24:9: error: 'Scanner' was not declared in this scope
Scanner cin = new Scanner (new BufferedInputStream(System.in));
^
0_0_22338250_3146.cpp:25:17: error: 'cin' was not declared in this scope
int t = cin.nextInt();
^
0_0_22338250_3146.cpp:26:9: error: 'String' was not declared in this scope
String []ans = new String[60];
^
0_0_22338250_3146.cpp:26:17: error: expected primary-expression before ']' token
String []ans = new String[60];
^
0_0_22338250_3146.cpp:29:13: error: 'BigInteger' was not declared in this scope
BigInteger n = cin.nextBigInteger();
^
0_0_22338250_3146.cpp:32:24: error: expected ';' before 'tmp'
String tmp = n.toString();
^
0_0_22338250_3146.cpp:33:24: error: expected ';' before 'ms'
String ms = n.subtract(BigInteger.ONE).toString();
^
0_0_22338250_3146.cpp:34:26: error: 'tmp' was not declared in this scope
if(check(tmp)){
^
0_0_22338250_3146.cpp:34:29: error: 'check' was not declared in this scope
if(check(tmp)){
^
0_0_22338250_3146.cpp:35:21: error: 'ans' was not declared in this scope
ans[tot]=tmp;
^
0_0_22338250_3146.cpp:39:26: error: 'ms' was not declared in this scope
if(check(ms)){
^
0_0_22338250_3146.cpp:39:28: error: 'check' was not declared in this scope
if(check(ms)){
^
0_0_22338250_3146.cpp:40:21: error: 'ans' was not declared in this scope
ans[tot] = ms;
^
0_0_22338250_3146.cpp:47:28: error: expected ';' before 'qq'
BigInteger qq;
^
0_0_22338250_3146.cpp:48:20: error: 'tmp' was not declared in this scope
if(tmp.length()%2==0){
^
0_0_22338250_3146.cpp:49:28: error: expected ';' before 'tp'
String tp = tmp.substring(0,tmp.length()/2);
^
0_0_22338250_3146.cpp:50:32: error: expected ';' before 'p'
BigInteger p = new BigInteger(tp);
^
0_0_22338250_3146.cpp:51:28: error: expected ';' before 'tt'
String tt = tp;
^
0_0_22338250_3146.cpp:52:21: error: 'tt' was not declared in this scope
tt = reverse(tt);
^
0_0_22338250_3146.cpp:52:36: error: 'reverse' was not declared in this scope
tt = reverse(tt);
^
0_0_22338250_3146.cpp:53:21: error: 'qq' was not declared in this scope
qq = new BigInteger(tp+tt);
^
0_0_22338250_3146.cpp:53:30: error: expected type-specifier before 'BigInteger'
qq = new BigInteger(tp+tt);
^
0_0_22338250_3146.cpp:54:37: error: 'n' was not declared in this scope
if(qq.compareTo(n)>0){
^
0_0_22338250_3146.cpp:55:25: error: 'p' was not declared in this scope
p = p.subtract(BigInteger.ONE);
^
0_0_22338250_3146.cpp:56:25: error: 'tp' was not declared in this scope
tp = p.toString();
^
0_0_22338250_3146.cpp:59:34: error: expected type-specifier before 'BigInteger'
qq = new BigInteger(tp+tt);
^
0_0_22338250_3146.cpp:63:32: error: expected ';' before 'p'
BigInteger p = new BigInteger(tmp.substring(0,tmp.length()/2+1));
^
0_0_22338250_3146.cpp:64:21: error: 'p' was not declared in this scope
p = p.subtract(BigInteger.ONE);
^
0_0_22338250_3146.cpp:65:28: error: expected ';' before 'tp'
String tp = p.toString();
^
0_0_22338250_3146.cpp:66:28: error: expected ';' before 'f'
String f = tp.substring(0,tp.length()-1);
^
0_0_22338250_3146.cpp:67:21: error: 'f' was not declared in this scope
f = reverse(f);
^
0_0_22338250_3146.cpp:67:34: error: 'reverse' was not declared in this scope
f = reverse(f);
^
0_0_22338250_3146.cpp:68:21: error: 'qq' was not declared in this scope
qq = new BigInteger(tp+f);
^
0_0_22338250_3146.cpp:68:30: error: expected type-specifier before 'BigInteger'
qq = new BigInteger(tp+f);
^
0_0_22338250_3146.cpp:70:17: error: 'ans' was not declared in this scope
ans[tot]=qq.toString();
^
0_0_22338250_3146.cpp:70:26: error: 'qq' was not declared in this scope
ans[tot]=qq.toString();
^
0_0_22338250_3146.cpp:72:17: error: 'n' was not declared in this scope
n=n.subtract(qq);
^
0_0_22338250_3146.cpp:76:13: error: 'System' was not declared in this scope
System.out.println("Case #"+(kase)+":");
^
0_0_22338250_3146.cpp:76:48: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
System.out.println("Case #"+(kase)+":");
^
0_0_22338250_3146.cpp:79:36: error: 'ans' was not declared in this scope
System.out.println(ans[i]);
^
|