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_22573948_1077.cpp: In function 'std::string add(std::string, std::string)':
0_0_22573948_1077.cpp:7:12: error: 'L' was not declared in this scope
     int na[L]={0},nb[L]={0};
            ^
0_0_22573948_1077.cpp:9:27: error: 'na' was not declared in this scope
     for(int i=0;i<la;i++) na[la-1-i]=a[i]-'0';
                           ^
0_0_22573948_1077.cpp:10:27: error: 'nb' was not declared in this scope
     for(int i=0;i<lb;i++) nb[lb-1-i]=b[i]-'0';
                           ^
0_0_22573948_1077.cpp:14:9: error: 'na' was not declared in this scope
         na[i]+=nb[i];
         ^
0_0_22573948_1077.cpp:14:16: error: 'nb' was not declared in this scope
         na[i]+=nb[i];
                ^
0_0_22573948_1077.cpp:18:8: error: 'na' was not declared in this scope
     if(na[lmax]) lmax++;
        ^
0_0_22573948_1077.cpp:19:37: error: 'na' was not declared in this scope
     for(int i=lmax-1;i>=0;i--) ans+=na[i]+'0';
                                     ^


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-17 20:34:05, Gzip enabled