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_36713572_9183.cpp: In function 'int main()':
0_0_36713572_9183.cpp:5:12: error: expected identifier before numeric constant
 int a[] = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
            ^
0_0_36713572_9183.cpp:5:13: error: expected ']' before ',' token
 int a[] = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
             ^
0_0_36713572_9183.cpp: In lambda function:
0_0_36713572_9183.cpp:5:13: error: expected '{' before ',' token
0_0_36713572_9183.cpp: In function 'int main()':
0_0_36713572_9183.cpp:5:13: error: initializer fails to determine size of 'a'
0_0_36713572_9183.cpp:5:13: error: array must be initialized with a brace-enclosed initializer
0_0_36713572_9183.cpp:5:15: error: expected unqualified-id before numeric constant
 int a[] = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
               ^
0_0_36713572_9183.cpp:8:36: error: expected ')' before '{' token
 while(scanf("%d/%d/%d", &y, &m, &d){ 
                                    ^
0_0_36713572_9183.cpp:19:14: error: 'print' was not declared in this scope
 print("%d", t)
              ^
0_0_36713572_9183.cpp:25:1: error: expected '}' at end of input
 }
 ^


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-17 04:25:21, Gzip enabled