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_36707993_7008.cpp:20:1: error: 'clock_t' does not name a type
 clock_t __stt;
 ^
0_0_36707993_7008.cpp: In function 'void TStart()':
0_0_36707993_7008.cpp:21:22: error: '__stt' was not declared in this scope
 inline void TStart(){__stt=clock();}
                      ^
0_0_36707993_7008.cpp:21:34: error: 'clock' was not declared in this scope
 inline void TStart(){__stt=clock();}
                                  ^
0_0_36707993_7008.cpp: In function 'void TReport()':
0_0_36707993_7008.cpp:22:87: error: 'clock' was not declared in this scope
 inline void TReport(){printf("\nCurrent Case Taken Time : %.3lf sec\n",(double)(clock()-__stt)/CLOCKS_PER_SEC);}
                                                                                       ^
0_0_36707993_7008.cpp:22:89: error: '__stt' was not declared in this scope
 inline void TReport(){printf("\nCurrent Case Taken Time : %.3lf sec\n",(double)(clock()-__stt)/CLOCKS_PER_SEC);}
                                                                                         ^
0_0_36707993_7008.cpp:22:96: error: 'CLOCKS_PER_SEC' was not declared in this scope
 inline void TReport(){printf("\nCurrent Case Taken Time : %.3lf sec\n",(double)(clock()-__stt)/CLOCKS_PER_SEC);}
                                                                                                ^


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-05-20 02:36:42, Gzip enabled