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_20695300_14939.cpp: In function 'int maxsubsum(int, int, int*)':
0_0_20695300_14939.cpp:13:7: error: 'i' was not declared in this scope
  for( i=0;i<=m;i++){b[i][0]=0;}
       ^
0_0_20695300_14939.cpp:16:7: error: 'i' was not declared in this scope
  for( i=1;i<=m;i++)
       ^
0_0_20695300_14939.cpp:18:8: error: 'j' was not declared in this scope
   for( j=i;j<=n-m+i;j++)
        ^
0_0_20695300_14939.cpp:36:7: error: 'j' was not declared in this scope
  for( j=m;j<=n;j++)
       ^
0_0_20695300_14939.cpp: At global scope:
0_0_20695300_14939.cpp:44:11: error: '::main' must return 'int'
 void main()
           ^
0_0_20695300_14939.cpp: In function 'int main()':
0_0_20695300_14939.cpp:55:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
  return ;
  ^


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-26 14:36:16, Gzip enabled