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_34384326_31892.c: In function 'main':
0_0_34384326_31892.c:7:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for (int i = 1; i <= n; i++) {
         ^
0_0_34384326_31892.c:7:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_34384326_31892.c:13:43: error: expected expression before '/' token
                 m = max(b[i], b[i - 1]);  //每输入一个数,计算最小公倍数。
                                           ^
0_0_34384326_31892.c:13:43: error: stray '\303' in program
0_0_34384326_31892.c:13:43: error: stray '\277' in program
0_0_34384326_31892.c:13:43: error: stray '\312' in program
0_0_34384326_31892.c:13:43: error: stray '\344' in program
0_0_34384326_31892.c:13:43: error: stray '\310' in program
0_0_34384326_31892.c:13:43: error: stray '\353' in program
0_0_34384326_31892.c:13:43: error: stray '\322' in program
0_0_34384326_31892.c:13:43: error: stray '\273' in program
0_0_34384326_31892.c:13:43: error: stray '\270' in program
0_0_34384326_31892.c:13:43: error: stray '\366' in program
0_0_34384326_31892.c:13:43: error: stray '\312' in program
0_0_34384326_31892.c:13:43: error: stray '\375' in program
0_0_34384326_31892.c:13:43: error: stray '\243' in program
0_0_34384326_31892.c:13:43: error: stray '\254' in program
0_0_34384326_31892.c:13:43: error: stray '\274' in program
0_0_34384326_31892.c:13:43: error: stray '\306' in program
0_0_34384326_31892.c:13:43: error: stray '\313' in program
0_0_34384326_31892.c:13:43: error: stray '\343' in program
0_0_34384326_31892.c:13:43: error: stray '\327' in program
0_0_34384326_31892.c:13:43: error: stray '\356' in program
0_0_34384326_31892.c:13:43: error: stray '\320' in program
0_0_34384326_31892.c:13:43: error: stray '\241' in program
0_0_34384326_31892.c:13:43: error: stray '\271' in program
0_0_34384326_31892.c:13:43: error: stray '\253' in program
0_0_34384326_31892.c:13:43: error: stray '\261' in program
0_0_34384326_31892.c:13:43: error: stray '\266' in program
0_0_34384326_31892.c:13:43: error: stray '\312' in program
0_0_34384326_31892.c:13:43: error: stray '\375' in program
0_0_34384326_31892.c:13:43: error: stray '\241' in program
0_0_34384326_31892.c:13:43: error: stray '\243' in program
0_0_34384326_31892.c: In function 'max':
0_0_34384326_31892.c:20:26: error: expected expression before '/' token
 int max(int a, int b) {  //定义最小公倍数函数。
                          ^
0_0_34384326_31892.c:20:26: error: stray '\266' in program
0_0_34384326_31892.c:20:26: error: stray '\250' in program
0_0_34384326_31892.c:20:26: error: stray '\322' in program
0_0_34384326_31892.c:20:26: error: stray '\345' in program
0_0_34384326_31892.c:20:26: error: stray '\327' in program
0_0_34384326_31892.c:20:26: error: stray '\356' in program
0_0_34384326_31892.c:20:26: error: stray '\320' in program
0_0_34384326_31892.c:20:26: error: stray '\241' in program
0_0_34384326_31892.c:20:26: error: stray '\271' in program
0_0_34384326_31892.c:20:26: error: stray '\253' in program
0_0_34384326_31892.c:20:26: error: stray '\261' in program
0_0_34384326_31892.c:20:26: error: stray '\266' in program
0_0_34384326_31892.c:20:26: error: stray '\312' in program
0_0_34384326_31892.c:20:26: error: stray '\375' in program
0_0_34384326_31892.c:20:26: error: stray '\272' in program
0_0_34384326_31892.c:20:26: error: stray '\257' in program
0_0_34384326_31892.c:20:26: error: stray '\312' in program
0_0_34384326_31892.c:20:26: error: stray '\375' in program
0_0_34384326_31892.c:20:26: error: stray '\241' in program
0_0_34384326_31892.c:20:26: error: stray '\243' in program
0_0_34384326_31892.c:23:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; i <= a && i <= b; i++) {
     ^
0_0_34384326_31892.c:25:13: error: 'm' undeclared (first use in this function)
             m = a * b / i;
             ^
0_0_34384326_31892.c:25:13: note: each undeclared identifier is reported only once for each function it appears in


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-02 20:24:43, Gzip enabled