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_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:8:7: note: in expansion of macro 'int'
    8 | const int N = 6e5 + 10 ;
      |       ^~~
0_0_39023770_27279.cpp:8:11: error: 'N' does not name a type
    8 | const int N = 6e5 + 10 ;
      |           ^
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:9:1: note: in expansion of macro 'int'
    9 | int siz[ N ] , dp[ N ] ;
      | ^~~
0_0_39023770_27279.cpp:9:5: error: 'siz' does not name a type
    9 | int siz[ N ] , dp[ N ] ;
      |     ^~~
0_0_39023770_27279.cpp:3:13: error: template argument 1 is invalid
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:10:9: note: in expansion of macro 'int'
   10 | vector< int > g[ N ] ;
      |         ^~~
0_0_39023770_27279.cpp:3:13: error: template argument 2 is invalid
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:10:9: note: in expansion of macro 'int'
   10 | vector< int > g[ N ] ;
      |         ^~~
0_0_39023770_27279.cpp:10:13: error: expected unqualified-id before '>' token
   10 | vector< int > g[ N ] ;
      |             ^
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:12:1: note: in expansion of macro 'int'
   12 | int n;
      | ^~~
0_0_39023770_27279.cpp:12:5: error: 'n' does not name a type
   12 | int n;
      |     ^
0_0_39023770_27279.cpp:3:16: error: expected ')' before ';' token
    3 | #define int ll ;
      |                ^
0_0_39023770_27279.cpp:14:11: note: in expansion of macro 'int'
   14 | void dfs( int u , int fa ){
      |           ^~~
0_0_39023770_27279.cpp:14:9: note: to match this '('
   14 | void dfs( int u , int fa ){
      |         ^
0_0_39023770_27279.cpp:14:15: error: 'u' does not name a type
   14 | void dfs( int u , int fa ){
      |               ^
0_0_39023770_27279.cpp:14:23: error: 'fa' does not name a type
   14 | void dfs( int u , int fa ){
      |                       ^~
0_0_39023770_27279.cpp: In function 'void AC()':
0_0_39023770_27279.cpp:27:12: error: 'n' was not declared in this scope
   27 |     cin >> n;
      |            ^
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:28:9: note: in expansion of macro 'int'
   28 |     for(int i = 1 ; i <= n ; i++){
      |         ^~~
0_0_39023770_27279.cpp:28:13: error: 'i' was not declared in this scope
   28 |     for(int i = 1 ; i <= n ; i++){
      |             ^
0_0_39023770_27279.cpp:28:27: error: expected ')' before ';' token
   28 |     for(int i = 1 ; i <= n ; i++){
      |        ~                  ^~
      |                           )
0_0_39023770_27279.cpp:28:30: error: 'i' was not declared in this scope
   28 |     for(int i = 1 ; i <= n ; i++){
      |                              ^
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:31:9: note: in expansion of macro 'int'
   31 |     for(int i = 1; i < n ;i++){
      |         ^~~
0_0_39023770_27279.cpp:31:25: error: expected ')' before ';' token
   31 |     for(int i = 1; i < n ;i++){
      |        ~                ^~
      |                         )
0_0_39023770_27279.cpp:36:8: error: too many arguments to function 'void dfs(ll)'
   36 |     dfs( 1 , 0 );
      |     ~~~^~~~~~~~~
0_0_39023770_27279.cpp:14:6: note: declared here
   14 | void dfs( int u , int fa ){
      |      ^~~
0_0_39023770_27279.cpp:37:13: error: 'dp' was not declared in this scope
   37 |     cout << dp[ 1 ] << endl;;
      |             ^~
0_0_39023770_27279.cpp: At global scope:
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:40:1: note: in expansion of macro 'int'
   40 | int main(){
      | ^~~
0_0_39023770_27279.cpp: In function 'int main()':
0_0_39023770_27279.cpp:3:13: error: declaration does not declare anything [-fpermissive]
    3 | #define int ll ;
      |             ^~
0_0_39023770_27279.cpp:44:5: note: in expansion of macro 'int'
   44 |     int t;
      |     ^~~
0_0_39023770_27279.cpp:44:9: error: 't' was not declared in this scope; did you mean 'tm'?
   44 |     int t;
      |         ^
      |         tm


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 09:23:54, Gzip enabled