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_38495871_21786.cpp: In function 'int main()':
0_0_38495871_21786.cpp:29:15: error: 't' was not declared in this scope
  scanf("%d", &t);
               ^
0_0_38495871_21786.cpp:31:6: error: invalid types 'int[int]' for array subscript
   a[0] = b[0] = c[0] = 0;
      ^
0_0_38495871_21786.cpp:34:20: error: invalid conversion from 'int' to 'll* {aka long long unsigned int*}' [-fpermissive]
   dfs(n, m, a, b, c);
                    ^
0_0_38495871_21786.cpp:7:6: note: initializing argument 3 of 'void dfs(int, ll, ll*, ll*, ll*)'
 void dfs(int n, ll m, ll a[], ll b[], ll c[]) {
      ^
0_0_38495871_21786.cpp:35:21: error: invalid types 'int[int]' for array subscript
   printf("%llu", a[0]);
                     ^
0_0_38495871_21786.cpp:36:27: error: invalid types 'int[int]' for array subscript
   for (int i = 1; i <= a[0]; i++) {
                           ^
0_0_38495871_21786.cpp:37:23: error: invalid types 'int[int]' for array subscript
    printf(" %llu", a[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 06:17:15, Gzip enabled