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_38906926_29472.cpp:4:10: error: expected initializer before '-' token
    4 | int n,ans-INT_MAX,a[N][N],b[N][N];
      |          ^
0_0_38906926_29472.cpp: In function 'int main()':
0_0_38906926_29472.cpp:9:30: error: 'a' was not declared in this scope
    9 |                         cin>>a[i][j];
      |                              ^
0_0_38906926_29472.cpp:10:25: error: 'b' was not declared in this scope
   10 |                         b[i][j]=b[i][j-1]+b[i-1][j]-b[i-1][j-1]+a[i][j];
      |                         ^
0_0_38906926_29472.cpp:17:41: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |                                         ans=max(ans,b[i][j]+b[p][q]-b[i][q]-b[p][j]);
      |                                         ^~~
      |                                         abs
0_0_38906926_29472.cpp:17:53: error: 'b' was not declared in this scope
   17 |                                         ans=max(ans,b[i][j]+b[p][q]-b[i][q]-b[p][j]);
      |                                                     ^
0_0_38906926_29472.cpp:22:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         cout<<ans;
      |               ^~~
      |               abs


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 06:08:06, Gzip enabled