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_39197808_30422.cpp: In function 'void solve()':
0_0_39197808_30422.cpp:6:16: error: invalid types 'int[int]' for array subscript
    6 |     int sum[102[102];
      |                ^
0_0_39197808_30422.cpp:6:21: error: expected ']' before ';' token
    6 |     int sum[102[102];
      |                     ^
      |                     ]
0_0_39197808_30422.cpp:10:26: error: 'sum' was not declared in this scope
   10 |             scanf("%d", &sum[i][j]);
      |                          ^~~
0_0_39197808_30422.cpp:15:17: error: 'sum' was not declared in this scope
   15 |             if (sum[i][j] <= sum[i][j + 1]) sum[i - 1][j] += sum[i][j + 1];
      |                 ^~~
0_0_39197808_30422.cpp:20:20: error: 'sum' was not declared in this scope
   20 |     printf("%d\n", sum[1][1]);
      |                    ^~~


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.001001(s) query 1, Server time : 2025-02-18 17:21:10, Gzip enabled