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_36276413_2554.cpp:16:11: error: expected unqualified-id before '[' token
 long long [N][K], g[N][K], sum[N][K]; 
           ^
0_0_36276413_2554.cpp: In function 'void dfs1(int, int)':
0_0_36276413_2554.cpp:18:1: error: 'f' was not declared in this scope
 f[u][0] = 1; 
 ^
0_0_36276413_2554.cpp: In function 'void dfs2(int, int)':
0_0_36276413_2554.cpp:33:1: error: 'g' was not declared in this scope
 g[v][j] = f[u][j - 1] - f[v][j - 2] + g[u][j - 1]; 
 ^
0_0_36276413_2554.cpp:33:11: error: 'f' was not declared in this scope
 g[v][j] = f[u][j - 1] - f[v][j - 2] + g[u][j - 1]; 
           ^
0_0_36276413_2554.cpp:35:1: error: 'f' was not declared in this scope
 f[v][1] = f[u][0]; 
 ^
0_0_36276413_2554.cpp: In function 'int main()':
0_0_36276413_2554.cpp:44:8: error: 'f' was not declared in this scope
 memset(f, 0, sizeof(f)); 
        ^
0_0_36276413_2554.cpp:45:8: error: 'g' was not declared in this scope
 memset(g, 0, sizeof(g)); 
        ^
0_0_36276413_2554.cpp:46:8: error: 'sum' was not declared in this scope
 memset(sum, 0, sizeof(sum)); 
        ^


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-29 21:08:00, Gzip enabled