F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_27762602_13308\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_27762602_13308\Main.java:2: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_27762602_13308\Main.java:8: 错误: 需要class, interface或enum
int main(){
^
0_0_27762602_13308\Main.java:12: 错误: 需要class, interface或enum
    cin>>n;
    ^
0_0_27762602_13308\Main.java:14: 错误: 需要class, interface或enum
    while(n--){
    ^
0_0_27762602_13308\Main.java:18: 错误: 需要class, interface或enum
    string s1,s2,s3="" , s4 = "0";
    ^
0_0_27762602_13308\Main.java:20: 错误: 需要class, interface或enum
    cin >> s1 >> s2;
    ^
0_0_27762602_13308\Main.java:22: 错误: 需要class, interface或enum
    if(j!=0)      //这里注意格式,否则会报Presentation Error的
    ^
0_0_27762602_13308\Main.java:26: 错误: 需要class, interface或enum
    cout<<"Case "<<++j<<":"<<endl;
    ^
0_0_27762602_13308\Main.java:28: 错误: 需要class, interface或enum
    cout<<s1<<" + "<<s2<<" = ";
    ^
0_0_27762602_13308\Main.java:30: 错误: 需要class, interface或enum
    int h1 , h2 , h , hmax , hh;
    ^
0_0_27762602_13308\Main.java:32: 错误: 需要class, interface或enum
    h1 = s1.length();
    ^
0_0_27762602_13308\Main.java:34: 错误: 需要class, interface或enum
    h2 = s2.length();
    ^
0_0_27762602_13308\Main.java:36: 错误: 需要class, interface或enum
    hmax = max(h1,h2);
    ^
0_0_27762602_13308\Main.java:38: 错误: 需要class, interface或enum
    hh = hmax;
    ^
0_0_27762602_13308\Main.java:40: 错误: 需要class, interface或enum
    if(h1>h2){
    ^
0_0_27762602_13308\Main.java:44: 错误: 需要class, interface或enum
        for(int i=0;i<h;i++){
        ^
0_0_27762602_13308\Main.java:44: 错误: 需要class, interface或enum
        for(int i=0;i<h;i++){
                    ^
0_0_27762602_13308\Main.java:44: 错误: 需要class, interface或enum
        for(int i=0;i<h;i++){
                        ^
0_0_27762602_13308\Main.java:48: 错误: 需要class, interface或enum
        }
        ^
0_0_27762602_13308\Main.java:54: 错误: 需要class, interface或enum
        for(int i=0;i < h;i++){
        ^
0_0_27762602_13308\Main.java:54: 错误: 需要class, interface或enum
        for(int i=0;i < h;i++){
                    ^
0_0_27762602_13308\Main.java:54: 错误: 需要class, interface或enum
        for(int i=0;i < h;i++){
                          ^
0_0_27762602_13308\Main.java:58: 错误: 需要class, interface或enum
        }
        ^
0_0_27762602_13308\Main.java:64: 错误: 需要class, interface或enum
    while(hmax--){
    ^
0_0_27762602_13308\Main.java:68: 错误: 需要class, interface或enum
        a2 = s2[hmax] - '0';
        ^
0_0_27762602_13308\Main.java:70: 错误: 需要class, interface或enum
        down = a1+a2+up;
        ^
0_0_27762602_13308\Main.java:72: 错误: 需要class, interface或enum
        if( down > 9){
        ^
0_0_27762602_13308\Main.java:76: 错误: 需要class, interface或enum
            down = down%10;
            ^
0_0_27762602_13308\Main.java:78: 错误: 需要class, interface或enum
        }else{
        ^
0_0_27762602_13308\Main.java:82: 错误: 需要class, interface或enum
        }
        ^
0_0_27762602_13308\Main.java:86: 错误: 需要class, interface或enum
        s3 +=c;
        ^
0_0_27762602_13308\Main.java:88: 错误: 需要class, interface或enum
    }
    ^
0_0_27762602_13308\Main.java:94: 错误: 需要class, interface或enum
        s3 += c;
        ^
0_0_27762602_13308\Main.java:96: 错误: 需要class, interface或enum
        hh++;
        ^
0_0_27762602_13308\Main.java:98: 错误: 需要class, interface或enum
    }
    ^
0_0_27762602_13308\Main.java:100: 错误: 需要class, interface或enum
    for(int i=hh-1;i>=0;i--){
                   ^
0_0_27762602_13308\Main.java:100: 错误: 需要class, interface或enum
    for(int i=hh-1;i>=0;i--){
                        ^
0_0_27762602_13308\Main.java:104: 错误: 需要class, interface或enum
    }
    ^
0_0_27762602_13308\Main.java:108: 错误: 需要class, interface或enum
    }
    ^
40 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 00:12:24, Gzip enabled