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--;
^
|