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
}
^
|