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_24559192_32513.cpp:8:9: error: 'MAX' was not declared in this scope
  int dp[MAX][MAX],vis[MAX],bug[MAX],p[MAX];
         ^
0_0_24559192_32513.cpp:8:14: error: 'MAX' was not declared in this scope
  int dp[MAX][MAX],vis[MAX],bug[MAX],p[MAX];
              ^
0_0_24559192_32513.cpp:8:23: error: 'MAX' was not declared in this scope
  int dp[MAX][MAX],vis[MAX],bug[MAX],p[MAX];
                       ^
0_0_24559192_32513.cpp:8:32: error: 'MAX' was not declared in this scope
  int dp[MAX][MAX],vis[MAX],bug[MAX],p[MAX];
                                ^
0_0_24559192_32513.cpp:8:39: error: 'MAX' was not declared in this scope
  int dp[MAX][MAX],vis[MAX],bug[MAX],p[MAX];
                                       ^
0_0_24559192_32513.cpp:9:18: error: 'MAX' was not declared in this scope
  vector<int> son[MAX];
                  ^
0_0_24559192_32513.cpp: In function 'void dfs(int)':
0_0_24559192_32513.cpp:13:6: error: 'vis' was not declared in this scope
      vis[u] = true;
      ^
0_0_24559192_32513.cpp:14:18: error: 'bug' was not declared in this scope
      for(int i = bug[u]; i <= m; i++)
                  ^
0_0_24559192_32513.cpp:15:10: error: 'dp' was not declared in this scope
          dp[u][i] = p[u];
          ^
0_0_24559192_32513.cpp:15:21: error: 'p' was not declared in this scope
          dp[u][i] = p[u];
                     ^
0_0_24559192_32513.cpp:16:22: error: 'son' was not declared in this scope
      int tot = (int) son[u].size();
                      ^
0_0_24559192_32513.cpp:17:8: error: 'i' was not declared in this scope
      ; i < tot; i++)
        ^
0_0_24559192_32513.cpp: In function 'int main()':
0_0_24559192_32513.cpp:37:20: error: expected primary-expression before ')' token
           && m == -)
                    ^
0_0_24559192_32513.cpp:39:12: error: 'i' was not declared in this scope
          ; i < n; i++)
            ^
0_0_24559192_32513.cpp:46:20: error: expected primary-expression before ';' token
          ; i < n - ; i++)
                    ^
0_0_24559192_32513.cpp:53:10: error: expected primary-expression before ')' token
          )
          ^
0_0_24559192_32513.cpp:55:10: error: 'else' without a previous 'if'
          else
          ^
0_0_24559192_32513.cpp:57:21: error: 'vis' was not declared in this scope
              memset(vis, false, sizeof(vis));
                     ^
0_0_24559192_32513.cpp:58:21: error: 'dp' was not declared in this scope
              memset(dp, , sizeof(dp));
                     ^
0_0_24559192_32513.cpp:58:25: error: expected primary-expression before ',' token
              memset(dp, , sizeof(dp));
                         ^
0_0_24559192_32513.cpp:59:18: error: too few arguments to function 'void dfs(int)'
              dfs();
                  ^
0_0_24559192_32513.cpp:11:7: note: declared here
  void dfs(int u)
       ^
0_0_24559192_32513.cpp:60:21: error: expected primary-expression before ']' token
              printf(][m]);
                     ^
0_0_24559192_32513.cpp:37:14: error: label 'm' used but not defined
           && m == -)
              ^


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-20 12:37:31, Gzip enabled