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_38495923_17377.cpp: In function 'int main()':
0_0_38495923_17377.cpp:31:20: error: invalid types 'int[int]' for array subscript
   a[0] = b[0] = t[0] = 0;
                    ^
0_0_38495923_17377.cpp:34:20: error: invalid conversion from 'int' to 'll* {aka long long unsigned int*}' [-fpermissive]
   dfs(n, m, a, b, t);
                    ^
0_0_38495923_17377.cpp:7:6: note: initializing argument 5 of 'void dfs(int, ll, ll*, ll*, ll*)'
 void dfs(int n, ll m, ll a[], ll b[], ll t[]) {
      ^
0_0_38495923_17377.cpp:43:23: error: invalid types 'int[int]' for array subscript
   printf("\n%llu", t[0]);
                       ^
0_0_38495923_17377.cpp:44:27: error: invalid types 'int[int]' for array subscript
   for (int i = 1; i <= t[0]; i++) {
                           ^
0_0_38495923_17377.cpp:45:23: error: invalid types 'int[int]' for array subscript
    printf(" %llu", t[i]);
                       ^


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