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_26540890_6387.cpp: In function 'int main()':
0_0_26540890_6387.cpp:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   for(i=0;i<b-1;i++)
               ^
0_0_26540890_6387.cpp:15:50: error: expected '}' before ';' token
    int sum=0,b[12]={31,29,31,30,31,31,30,31,30,31;
                                                  ^
0_0_26540890_6387.cpp:16:20: error: expected ';' before ')' token
   for(i=0;i<b-1,i++)
                    ^
0_0_26540890_6387.cpp:17:11: error: invalid types 'int[int]' for array subscript
   sum+=a[i];
           ^
0_0_26540890_6387.cpp:19:10: error: unable to find string literal operator 'operator""sum'
   printf("%d\n"sum);
          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-02 07:35:42, Gzip enabled