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_26463234_1017.cpp:13:11: error: no matching function for call to 'Node::Node()'
 }node[maxn];
           ^
0_0_26463234_1017.cpp:13:11: note: candidates are:
0_0_26463234_1017.cpp:12:4: note: Node::Node(int, int)
    Node(int a,int b):id(a),num(b) {}
    ^
0_0_26463234_1017.cpp:12:4: note:   candidate expects 2 arguments, 0 provided
0_0_26463234_1017.cpp:10:8: note: constexpr Node::Node(const Node&)
 struct Node{
        ^
0_0_26463234_1017.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_26463234_1017.cpp:10:8: note: constexpr Node::Node(Node&&)
0_0_26463234_1017.cpp:10:8: note:   candidate expects 1 argument, 0 provided
0_0_26463234_1017.cpp: In function 'void Dijkstra()':
0_0_26463234_1017.cpp:29:27: error: 'Sum' was not declared in this scope
             int ans = Sum();
                           ^
0_0_26463234_1017.cpp:31:19: error: expected primary-expression before ']' token
                 w[] = ans;
                   ^
0_0_26463234_1017.cpp:32:26: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push()'
                 que.push();
                          ^
0_0_26463234_1017.cpp:32:26: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
                 from 0_0_26463234_1017.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = std::greater<std::pair<int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
       push(const value_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note:   candidate expects 1 argument, 0 provided
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = std::greater<std::pair<int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]
       push(value_type&& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note:   candidate expects 1 argument, 0 provided
0_0_26463234_1017.cpp: In function 'int main()':
0_0_26463234_1017.cpp:69:13: error: expected primary-expression before ')' token
         for(){
             ^
0_0_26463234_1017.cpp:74:16: error: too few arguments to function 'int printf(const char*, ...)'
         printf();
                ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/locale.h:12:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/clocale:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++locale.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/localefwd.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_26463234_1017.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:378:15: note: declared here
   int __cdecl printf(const char * __restrict__ _Format,...);
               ^
0_0_26463234_1017.cpp:75:5: error: expected primary-expression before '}' token
     }
     ^
0_0_26463234_1017.cpp:75:5: error: expected ')' before '}' token
0_0_26463234_1017.cpp:75:5: error: expected primary-expression before '}' token


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-04 16:43:33, Gzip enabled