/ Vijos /

记录详情

Compile Error

/in/Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
/in/Main.java:1: error: class, interface, or enum expected
#include<stdio.h>
        ^
/in/Main.java:2: error: illegal character: '#'
#include<algorithm>
^
/in/Main.java:3: error: illegal character: '#'
#include <iostream>
^
/in/Main.java:4: error: illegal character: '#'
#include <vector>
^
/in/Main.java:5: error: illegal character: '#'
#include <cstring>
^
/in/Main.java:8: error: illegal character: '#'
#define N 110
^
/in/Main.java:8: error: class, interface, or enum expected
#define N 110
        ^
/in/Main.java:11: error: illegal start of type
public:
      ^
/in/Main.java:11: error: ';' expected
public:
       ^
/in/Main.java:12: error: illegal start of type
    bignum(int m){
          ^
/in/Main.java:12: error: <identifier> expected
    bignum(int m){
           ^
/in/Main.java:12: error: ';' expected
    bignum(int m){
              ^
/in/Main.java:12: error: illegal start of type
    bignum(int m){
                ^
/in/Main.java:12: error: <identifier> expected
    bignum(int m){
                 ^
/in/Main.java:12: error: ';' expected
    bignum(int m){
                  ^
/in/Main.java:13: error: illegal start of type
        memset(num,0, sizeof(num));
              ^
/in/Main.java:13: error: <identifier> expected
        memset(num,0, sizeof(num));
                   ^
/in/Main.java:13: error: illegal start of type
        memset(num,0, sizeof(num));
                    ^
/in/Main.java:13: error: <identifier> expected
        memset(num,0, sizeof(num));
                                ^
/in/Main.java:13: error: ';' expected
        memset(num,0, sizeof(num));
                                 ^
/in/Main.java:14: error: <identifier> expected
        len = 0,fac = m;
           ^
/in/Main.java:16: error: class, interface, or enum expected
    void init(const string &X){
    ^
/in/Main.java:18: error: class, interface, or enum expected
        for(int i = 0, j = len - 1 ; j >=0 ;--j,++i){
        ^
/in/Main.java:18: error: class, interface, or enum expected
        for(int i = 0, j = len - 1 ; j >=0 ;--j,++i){
                                     ^
/in/Main.java:18: error: class, interface, or enum expected
        for(int i = 0, j = len - 1 ; j >=0 ;--j,++i){
                                            ^
/in/Main.java:20: error: class, interface, or enum expected
        }
        ^
/in/Main.java:24: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
        ^
/in/Main.java:24: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
             ^
/in/Main.java:24: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
                   ^
/in/Main.java:26: error: class, interface, or enum expected
        }
        ^
/in/Main.java:30: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
        ^
/in/Main.java:30: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
             ^
/in/Main.java:30: error: class, interface, or enum expected
        for(;i<j ; ++i,--j){
                   ^
/in/Main.java:32: error: class, interface, or enum expected
        }
        ^
/in/Main.java:34: error: class, interface, or enum expected
    }
    ^
/in/Main.java:37: error: class, interface, or enum expected
        for(int i = 0 ; i < X.len ; ++i){
        ^
/in/Main.java:37: error: class, interface, or enum expected
        for(int i = 0 ; i < X.len ; ++i){
                        ^
/in/Main.java:37: error: class, interface, or enum expected
        for(int i = 0 ; i < X.len ; ++i){
                                    ^
/in/Main.java:39: error: class, interface, or enum expected
            if(res.num[i]>fac){
            ^
/in/Main.java:41: error: class, interface, or enum expected
                res.num[i]%=fac;
                ^
/in/Main.java:42: error: class, interface, or enum expected
            }
            ^
/in/Main.java:46: error: class, interface, or enum expected
        }
        ^
/in/Main.java:48: error: class, interface, or enum expected
        return res;
        ^
/in/Main.java:49: error: class, interface, or enum expected
    }
    ^
/in/Main.java:51: error: class, interface, or enum expected
        for(int i = len-1 ; i >=0 ; --i){
                            ^
/in/Main.java:51: error: class, interface, or enum expected
        for(int i = len-1 ; i >=0 ; --i){
                                    ^
/in/Main.java:53: error: class, interface, or enum expected
        }
        ^
/in/Main.java:55: error: class, interface, or enum expected
    }
    ^
/in/Main.java:58: error: class, interface, or enum expected
    int len,fac;
    ^
/in/Main.java:59: error: class, interface, or enum expected
};
^
/in/Main.java:60: error: class, interface, or enum expected
string ss;
^
/in/Main.java:61: error: class, interface, or enum expected
int main(){
^
/in/Main.java:63: error: class, interface, or enum expected
    bignum a(n),b(n);
    ^
/in/Main.java:64: error: class, interface, or enum expected
    cin>>ss;
    ^
/in/Main.java:65: error: class, interface, or enum expected
    a.init(ss);
    ^
/in/Main.java:66: error: class, interface, or enum expected
    int step = 0;
    ^
/in/Main.java:67: error: class, interface, or enum expected
    while (!a.can() and step<=30){
    ^
/in/Main.java:69: error: class, interface, or enum expected
        b.reverse();
        ^
/in/Main.java:70: error: class, interface, or enum expected
        a = a+b;
        ^
/in/Main.java:71: error: class, interface, or enum expected
        ++step;
        ^
/in/Main.java:72: error: class, interface, or enum expected
    }
    ^
/in/Main.java:74: error: class, interface, or enum expected
    else puts("Impossible!");
    ^
/in/Main.java:75: error: class, interface, or enum expected
}
^
64 errors

信息

递交者
类型
递交
题目
P1304 回文数
语言
Java
递交时间
2018-09-13 17:49:11
评测时间
2018-09-13 17:49:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes