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_34368504_25262.cpp: In function 'int main()':
0_0_34368504_25262.cpp:21:31: error: expected ';' before 'sumtime'
    if(flag==false) continue   sumtime=sumtime+(h-'0')*3600+((m1-'0')*10+(m2-'0'))*60+(s1-'0')*10+s2-'0';
                               ^
0_0_34368504_25262.cpp:27:30: error: expected ',' or ';' before 'if'
    int t2=sumtime/d+0.5      if(t2-t2/60*60<10)
                              ^
0_0_34368504_25262.cpp:29:4: error: expected '}' before 'else'
    else
    ^
0_0_34368504_25262.cpp:30:37: error: 't2' was not declared in this scope
             printf("%d:%d min/km\n",t2/60,t2-t2/60*60);
                                     ^
0_0_34368504_25262.cpp:32:3: error: 'else' without a previous 'if'
   else
   ^
0_0_34368504_25262.cpp: At global scope:
0_0_34368504_25262.cpp:35:2: error: expected unqualified-id before 'return'
  return 0;
  ^
0_0_34368504_25262.cpp:36:1: 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-10-06 15:27:55, Gzip enabled