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_38749565_23760.cpp:11:1: error: expected initializer before 'struct'
   11 | struct node
      | ^~~~~~
0_0_38749565_23760.cpp:14:2: error: 'g' does not name a type
   14 | }g[1000005],s[1000005],e[1000005];
      |  ^
0_0_38749565_23760.cpp: In function 'void addg(long long int, long long int)':
0_0_38749565_23760.cpp:19:5: error: 'g' was not declared in this scope
   19 |     g[cnt1].to=v;
      |     ^
0_0_38749565_23760.cpp: In function 'void adds(long long int, long long int)':
0_0_38749565_23760.cpp:25:5: error: 's' was not declared in this scope
   25 |     s[cnt2].to=v;
      |     ^
0_0_38749565_23760.cpp: In function 'void adde(long long int, long long int)':
0_0_38749565_23760.cpp:31:5: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
   31 |     e[cnt3].to=v;
      |     ^
      |     std::numbers::e
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/max_size_type.h:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
  122 |   inline constexpr double e = e_v<double>;
      |                           ^
0_0_38749565_23760.cpp: In function 'void dfs(long long int, long long int)':
0_0_38749565_23760.cpp:42:32: error: 's' was not declared in this scope
   42 |     for(int i=heads[x];i!=-1;i=s[i].next)
      |                                ^
0_0_38749565_23760.cpp:48:13: error: 'la' was not declared in this scope; did you mean 'fa'?
   48 |             la[cnt]=v;
      |             ^~
      |             fa
0_0_38749565_23760.cpp: In function 'void solve()':
0_0_38749565_23760.cpp:86:6: error: 'la' was not declared in this scope; did you mean 'fa'?
   86 |      la[0]=1;
      |      ^~
      |      fa
0_0_38749565_23760.cpp:93:32: error: 'g' was not declared in this scope
   93 |     for(int i=headg[0];i!=-1;i=g[i].next)
      |                                ^
0_0_38749565_23760.cpp:105:36: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
  105 |         for(int i=heade[x];i!=-1;i=e[i].next)
      |                                    ^
      |                                    std::numbers::e
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/numbers:122:27: note: 'std::numbers::e' declared here
  122 |   inline constexpr double e = e_v<double>;
      |                           ^
0_0_38749565_23760.cpp:112:44: error: 'g' was not declared in this scope
  112 |                 for(int j=headg[v];j!=-1;j=g[j].next)
      |                                            ^


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-07-03 06:58:55, Gzip enabled