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_16148791_22561.cpp: In function 'bool cheak4()':
0_0_16148791_22561.cpp:77:25: error: request for member 'substr' in 'num', which is of non-class type 'char [99]'
     int year = atoi(num.substr(3, 4).c_str());
                         ^
0_0_16148791_22561.cpp:78:26: error: request for member 'substr' in 'num', which is of non-class type 'char [99]'
     int month = atoi(num.substr(7, 2).c_str());
                          ^
0_0_16148791_22561.cpp:79:24: error: request for member 'substr' in 'num', which is of non-class type 'char [99]'
     int day = atoi(num.substr(9, 2).c_str());
                        ^


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-07-08 20:28:27, Gzip enabled