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_34382054_25051.c: In function 'main':
0_0_34382054_25051.c:12:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i = 0 ; i<n;i++){
   ^
0_0_34382054_25051.c:12:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_34382054_25051.c:16:17: error: expected expression before '/' token
   maxsum=arr[0];//默认为0 
                 ^
0_0_34382054_25051.c:16:17: error: stray '\304' in program
0_0_34382054_25051.c:16:17: error: stray '\254' in program
0_0_34382054_25051.c:16:17: error: stray '\310' in program
0_0_34382054_25051.c:16:17: error: stray '\317' in program
0_0_34382054_25051.c:16:17: error: stray '\316' in program
0_0_34382054_25051.c:16:17: error: stray '\252' in program
0_0_34382054_25051.c:19:11: error: redefinition of 'i'
   for(int i=0;i<n;i++){
           ^
0_0_34382054_25051.c:12:11: note: previous definition of 'i' was here
   for(int i = 0 ; i<n;i++){
           ^
0_0_34382054_25051.c:19:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<n;i++){
   ^
0_0_34382054_25051.c:20:1: error: expected expression before '/' token
 //   if(arr[i-1]>=0){//看前面几个加起来的值是不是小于0 
 ^
0_0_34382054_25051.c:20:1: error: stray '\277' in program
0_0_34382054_25051.c:20:1: error: stray '\264' in program
0_0_34382054_25051.c:20:1: error: stray '\307' in program
0_0_34382054_25051.c:20:1: error: stray '\260' in program
0_0_34382054_25051.c:20:1: error: stray '\303' in program
0_0_34382054_25051.c:20:1: error: stray '\346' in program
0_0_34382054_25051.c:20:1: error: stray '\274' in program
0_0_34382054_25051.c:20:1: error: stray '\270' in program
0_0_34382054_25051.c:20:1: error: stray '\270' in program
0_0_34382054_25051.c:20:1: error: stray '\366' in program
0_0_34382054_25051.c:20:1: error: stray '\274' in program
0_0_34382054_25051.c:20:1: error: stray '\323' in program
0_0_34382054_25051.c:20:1: error: stray '\306' in program
0_0_34382054_25051.c:20:1: error: stray '\360' in program
0_0_34382054_25051.c:20:1: error: stray '\300' in program
0_0_34382054_25051.c:20:1: error: stray '\264' in program
0_0_34382054_25051.c:20:1: error: stray '\265' in program
0_0_34382054_25051.c:20:1: error: stray '\304' in program
0_0_34382054_25051.c:20:1: error: stray '\326' in program
0_0_34382054_25051.c:20:1: error: stray '\265' in program
0_0_34382054_25051.c:20:1: error: stray '\312' in program
0_0_34382054_25051.c:20:1: error: stray '\307' in program
0_0_34382054_25051.c:20:1: error: stray '\262' in program
0_0_34382054_25051.c:20:1: error: stray '\273' in program
0_0_34382054_25051.c:20:1: error: stray '\312' in program
0_0_34382054_25051.c:20:1: error: stray '\307' in program
0_0_34382054_25051.c:20:1: error: stray '\320' in program
0_0_34382054_25051.c:20:1: error: stray '\241' in program
0_0_34382054_25051.c:20:1: error: stray '\323' in program
0_0_34382054_25051.c:20:1: error: stray '\332' in program
0_0_34382054_25051.c:31:7: error: 'sum' undeclared (first use in this function)
    if(sum>maxsum){
       ^
0_0_34382054_25051.c:31:7: note: each undeclared identifier is reported only once for each function it appears in


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 17:58:52, Gzip enabled