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_35817428_20435.c:8:35: error: expected identifier or '(' before '/' token
 int minMonthWorker[13],maxWorker; //姣忎釜鏈堜唤闆囦剑鐨勬渶灏忎汉鏁
                                   ^
0_0_35817428_20435.c:8:35: error: stray '\346' in program
0_0_35817428_20435.c:8:35: error: stray '\257' in program
0_0_35817428_20435.c:8:35: error: stray '\217' in program
0_0_35817428_20435.c:8:35: error: stray '\344' in program
0_0_35817428_20435.c:8:35: error: stray '\270' in program
0_0_35817428_20435.c:8:35: error: stray '\252' in program
0_0_35817428_20435.c:8:35: error: stray '\346' in program
0_0_35817428_20435.c:8:35: error: stray '\234' in program
0_0_35817428_20435.c:8:35: error: stray '\210' in program
0_0_35817428_20435.c:8:35: error: stray '\344' in program
0_0_35817428_20435.c:8:35: error: stray '\273' in program
0_0_35817428_20435.c:8:35: error: stray '\275' in program
0_0_35817428_20435.c:8:35: error: stray '\351' in program
0_0_35817428_20435.c:8:35: error: stray '\233' in program
0_0_35817428_20435.c:8:35: error: stray '\207' in program
0_0_35817428_20435.c:8:35: error: stray '\344' in program
0_0_35817428_20435.c:8:35: error: stray '\275' in program
0_0_35817428_20435.c:8:35: error: stray '\243' in program
0_0_35817428_20435.c:8:35: error: stray '\347' in program
0_0_35817428_20435.c:8:35: error: stray '\232' in program
0_0_35817428_20435.c:8:35: error: stray '\204' in program
0_0_35817428_20435.c:8:35: error: stray '\346' in program
0_0_35817428_20435.c:8:35: error: stray '\234' in program
0_0_35817428_20435.c:8:35: error: stray '\200' in program
0_0_35817428_20435.c:8:35: error: stray '\345' in program
0_0_35817428_20435.c:8:35: error: stray '\260' in program
0_0_35817428_20435.c:8:35: error: stray '\217' in program
0_0_35817428_20435.c:8:35: error: stray '\344' in program
0_0_35817428_20435.c:8:35: error: stray '\272' in program
0_0_35817428_20435.c:8:35: error: stray '\272' in program
0_0_35817428_20435.c:8:35: error: stray '\346' in program
0_0_35817428_20435.c:8:35: error: stray '\225' in program
0_0_35817428_20435.c:8:35: error: stray '\260' in program
0_0_35817428_20435.c:9:28: error: expected identifier or '(' before '/' token
 int cost[13][MAX_WORKER];  //   鏈堜唤 & 宸ヤ汉鏁
                            ^
0_0_35817428_20435.c:9:28: error: stray '\346' in program
0_0_35817428_20435.c:9:28: error: stray '\234' in program
0_0_35817428_20435.c:9:28: error: stray '\210' in program
0_0_35817428_20435.c:9:28: error: stray '\344' in program
0_0_35817428_20435.c:9:28: error: stray '\273' in program
0_0_35817428_20435.c:9:28: error: stray '\275' in program
0_0_35817428_20435.c:9:28: error: stray '\345' in program
0_0_35817428_20435.c:9:28: error: stray '\267' in program
0_0_35817428_20435.c:9:28: error: stray '\245' in program
0_0_35817428_20435.c:9:28: error: stray '\344' in program
0_0_35817428_20435.c:9:28: error: stray '\272' in program
0_0_35817428_20435.c:9:28: error: stray '\272' in program
0_0_35817428_20435.c:9:28: error: stray '\346' in program
0_0_35817428_20435.c:9:28: error: stray '\225' in program
0_0_35817428_20435.c:9:28: error: stray '\260' in program
0_0_35817428_20435.c: In function 'input':
0_0_35817428_20435.c:26:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 1;i <= months;i ++){
     ^
0_0_35817428_20435.c:26:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35817428_20435.c: In function 'initCostArray':
0_0_35817428_20435.c:35:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = minMonthWorker[1];i <= maxWorker;i ++){
     ^
0_0_35817428_20435.c:36:9: error: 'cost' undeclared (first use in this function)
         cost[1][i]  =  hireCost*i +   salary*i;
         ^
0_0_35817428_20435.c:36:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_35817428_20435.c: In function 'calculateCostArray':
0_0_35817428_20435.c:41:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 2; i <= months; i ++){
     ^
0_0_35817428_20435.c:42:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int j = minMonthWorker[i];  j <= maxWorker; j ++){
         ^
0_0_35817428_20435.c:45:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for(int k = minMonthWorker[i-1]; k <= maxWorker ;k ++){
             ^
0_0_35817428_20435.c:47:28: error: 'cost' undeclared (first use in this function)
                     temp = cost[i-1][k]   + fireCost*(k-j) + salary*j;
                            ^
0_0_35817428_20435.c: In function 'out':
0_0_35817428_20435.c:60:7: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
       for(int i = minMonthWorker[months] ; i <= maxWorker; i ++)
       ^
0_0_35817428_20435.c:61:16: error: 'cost' undeclared (first use in this function)
             if(cost[months][i] < tempMin)
                ^


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