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_39691857_10813.cpp:4:9: error: expected identifier before numeric constant
    4 | int a= [1000] [1000];
      |         ^~~~
0_0_39691857_10813.cpp: In lambda function:
0_0_39691857_10813.cpp:4:15: error: expected '{' before '[' token
    4 | int a= [1000] [1000];
      |               ^
0_0_39691857_10813.cpp: At global scope:
0_0_39691857_10813.cpp:4:15: error: no match for 'operator[]' (operand types are '<lambda()>' and 'int')
0_0_39691857_10813.cpp: In function 'int main()':
0_0_39691857_10813.cpp:12:31: error: invalid types 'int[int]' for array subscript
   12 |                         cin>>a[i][j];
      |                               ^
0_0_39691857_10813.cpp:18:31: error: invalid types 'int[int]' for array subscript
   18 |                 int x = abs (a[i][j]);
      |                               ^
0_0_39691857_10813.cpp:27:39: error: invalid types 'int[int]' for array subscript
   27 | cout << (r+1) <<' ' << (c+1) <<' '<< a[r][c] <<endl;
      |                                       ^


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-16 11:39:24, Gzip enabled