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_37359767_11310.cpp: In function 'int main()':
0_0_37359767_11310.cpp:7:18: error: 'a' was not declared in this scope
             gets(a);
                  ^
0_0_37359767_11310.cpp:10:15: error: 'b' was not declared in this scope
               b[sum]=a[0];
               ^
0_0_37359767_11310.cpp:16:14: error: 'b' was not declared in this scope
              b[sum]=a[0];
              ^
0_0_37359767_11310.cpp:24:18: error: 'b' was not declared in this scope
                  b[sum]=a[i+1];
                  ^
0_0_37359767_11310.cpp:30:17: error: 'b' was not declared in this scope
                 b[sum]=a[i+1];
                 ^
0_0_37359767_11310.cpp:35:25: error: 'b' was not declared in this scope
             printf("%s",b);
                         ^
0_0_37359767_11310.cpp: At global scope:
0_0_37359767_11310.cpp:39:14: error: expected unqualified-id before 'return'
              return 0;
              ^
0_0_37359767_11310.cpp:40:14: error: expected declaration before '}' token
              }
              ^


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-26 08:30:33, Gzip enabled