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_23199619_17882.cpp:11:1: error: expected initializer before '?' token
 ????int i,d,p;
 ^
0_0_23199619_17882.cpp:12:1: error: expected unqualified-id before '?' token
 ????if (s <= 0)return ;
 ^
0_0_23199619_17882.cpp:13:1: error: expected unqualified-id before '?' token
 ????d = s % 10;
 ^
0_0_23199619_17882.cpp:14:1: error: expected unqualified-id before '?' token
 ????p = s / 10;
 ^
0_0_23199619_17882.cpp:15:1: error: expected unqualified-id before '?' token
 ????for (i = 1;i <= d;i ++)ans[i] += times;
 ^
0_0_23199619_17882.cpp:15:16: error: 'i' does not name a type
 ????for (i = 1;i <= d;i ++)ans[i] += times;
                ^
0_0_23199619_17882.cpp:15:23: error: 'i' does not name a type
 ????for (i = 1;i <= d;i ++)ans[i] += times;
                       ^
0_0_23199619_17882.cpp:16:1: error: expected unqualified-id before '?' token
 ????while(p > 0)
 ^
0_0_23199619_17882.cpp:22:1: error: expected unqualified-id before '?' token
 ????for (i = 0;i <= 9;i ++)ans[i] += times * (s / 10);
 ^
0_0_23199619_17882.cpp:22:16: error: 'i' does not name a type
 ????for (i = 0;i <= 9;i ++)ans[i] += times * (s / 10);
                ^
0_0_23199619_17882.cpp:22:23: error: 'i' does not name a type
 ????for (i = 0;i <= 9;i ++)ans[i] += times * (s / 10);
                       ^
0_0_23199619_17882.cpp:24:1: error: expected unqualified-id before '?' token
 ????times *= 10;
 ^
0_0_23199619_17882.cpp:25:1: error: expected unqualified-id before '?' token
 ????count_digits((s / 10)-1,ans,times);
 ^
0_0_23199619_17882.cpp:26:1: error: expected unqualified-id before '?' token
 ????return ;
 ^
0_0_23199619_17882.cpp:27: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-11-13 09:36:05, Gzip enabled