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_22464345_20824.cpp: In function 'void add()':
0_0_22464345_20824.cpp:12:19: error: 'a' was not declared in this scope
     int la=strlen(a);
                   ^
0_0_22464345_20824.cpp:13:19: error: 'b' was not declared in this scope
     int lb=strlen(b);
                   ^
0_0_22464345_20824.cpp: In function 'void sub(char*, char*)':
0_0_22464345_20824.cpp:63:31: error: 's' was not declared in this scope
         for(int i=j;i>=0;i--) s[++cnt] = c[i];
                               ^
0_0_22464345_20824.cpp: At global scope:
0_0_22464345_20824.cpp:67:8: error: 'maxn' was not declared in this scope
 char s[maxn];
        ^
0_0_22464345_20824.cpp:68:14: error: 'maxn' was not declared in this scope
 char ans[55][maxn];
              ^
0_0_22464345_20824.cpp: In function 'int main()':
0_0_22464345_20824.cpp:77:11: error: 's' was not declared in this scope
      cin>>s;
           ^
0_0_22464345_20824.cpp:90:19: error: 'maxn' was not declared in this scope
            char a[maxn],b[maxn];
                   ^
0_0_22464345_20824.cpp:92:13: error: 'a' was not declared in this scope
             a[++cnt] = s[i];
             ^
0_0_22464345_20824.cpp:95:13: error: 'b' was not declared in this scope
             b[++cnt] = s[i];
             ^
0_0_22464345_20824.cpp:100:13: error: 'ans' was not declared in this scope
             ans[tt][++tmp] = s[i];
             ^
0_0_22464345_20824.cpp:101:12: error: 'ans' was not declared in this scope
            ans[tt][len/2] = s[len/2];
            ^
0_0_22464345_20824.cpp:106:16: error: 'a' was not declared in this scope
            sub(a,b,s);
                ^
0_0_22464345_20824.cpp:106:18: error: 'b' was not declared in this scope
            sub(a,b,s);
                  ^
0_0_22464345_20824.cpp:122:19: error: 'maxn' was not declared in this scope
            char a[maxn],b[maxn];
                   ^
0_0_22464345_20824.cpp:124:13: error: 'a' was not declared in this scope
             a[++cnt] = s[i];
             ^
0_0_22464345_20824.cpp:127:13: error: 'b' was not declared in this scope
             b[++cnt] = s[i];
             ^
0_0_22464345_20824.cpp:132:13: error: 'ans' was not declared in this scope
             ans[tt][++tmp] = s[i];
             ^
0_0_22464345_20824.cpp:133:12: error: 'ans' was not declared in this scope
            ans[tt][len/2] = s[len/2];
            ^
0_0_22464345_20824.cpp:138:16: error: 'a' was not declared in this scope
            sub(a,b,s);
                ^
0_0_22464345_20824.cpp:138:18: error: 'b' was not declared in this scope
            sub(a,b,s);
                  ^
0_0_22464345_20824.cpp:148:13: error: too few arguments to function 'void sub(char*, char*)'
         sub();
             ^
0_0_22464345_20824.cpp:36:6: note: declared here
 void sub(char *a,char *b)
      ^


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-09-20 19:23:06, Gzip enabled