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_16218447_21491.cpp: In function 'void solve()':
0_0_16218447_21491.cpp:17:30: error: 'strlen' was not declared in this scope
     int lenNum1 = strlen(num1), lenNum2 = strlen(num2), min = 0, c = 0, count = 0;
                              ^
0_0_16218447_21491.cpp:18:20: error: 'lenNum2' was not declared in this scope
     if (lenNum1 >= lenNum2) {
                    ^
0_0_16218447_21491.cpp:21:13: error: overloaded function with no contextual type information
         min = lenNum1;
             ^
0_0_16218447_21491.cpp:24:12: error: cannot resolve overloaded function 'min' based on conversion to type 'bool'
     while (min) {
            ^
0_0_16218447_21491.cpp:26:41: error: 'lenNum2' was not declared in this scope
         temp = num1[lenNum1 - 1] + num2[lenNum2 - 1] - 96;
                                         ^
0_0_16218447_21491.cpp:27:12: error: no post-decrement operator for type
         min--;
            ^
0_0_16218447_21491.cpp:30:13: error: 'count' was not declared in this scope
         sum[count] = (temp % 10 + c) % 10 + 48;
             ^
0_0_16218447_21491.cpp:30:35: error: 'c' was not declared in this scope
         sum[count] = (temp % 10 + c) % 10 + 48;
                                   ^
0_0_16218447_21491.cpp:44:13: error: 'count' was not declared in this scope
         sum[count] = (num1[lenNum1 - 1] - 48 + c) % 10 + 48;
             ^
0_0_16218447_21491.cpp:44:48: error: 'c' was not declared in this scope
         sum[count] = (num1[lenNum1 - 1] - 48 + c) % 10 + 48;
                                                ^
0_0_16218447_21491.cpp:54:12: error: 'lenNum2' was not declared in this scope
     while (lenNum2) {
            ^
0_0_16218447_21491.cpp:55:13: error: 'count' was not declared in this scope
         sum[count] = (num2[lenNum2 - 1] - 48 + c) % 10 + 48;
             ^
0_0_16218447_21491.cpp:55:48: error: 'c' was not declared in this scope
         sum[count] = (num2[lenNum2 - 1] - 48 + c) % 10 + 48;
                                                ^
0_0_16218447_21491.cpp:65:9: error: 'c' was not declared in this scope
     if (c) {
         ^
0_0_16218447_21491.cpp:66:13: error: 'count' was not declared in this scope
         sum[count] = '1';
             ^
0_0_16218447_21491.cpp:70:5: error: 'count' was not declared in this scope
     count--;
     ^


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-25 04:39:01, Gzip enabled