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_26278450_18542.cpp:52:16: error: enclosing class of constexpr non-static member function 'int Graph::__foo(int) const' is not a literal type
  constexpr int __foo(int v){
                ^
0_0_26278450_18542.cpp:6:7: note: 'Graph' is not literal because:
 class Graph{
       ^
0_0_26278450_18542.cpp:6:7: note:   'Graph' has a non-trivial destructor
0_0_26278450_18542.cpp: In constructor 'Graph::Graph(int)':
0_0_26278450_18542.cpp:14:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   for(auto i = 0; i < foo.size(); ++i) foo[i] = __foo[i];
                                                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 20:37:03, Gzip enabled