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_37823196_30332.cpp:158:47: error: 'operator>>' function uses 'auto' type specifier without trailing return type
      friend auto &operator>> (istream &i, Z &j) { return i >> j.x; }
                                               ^
0_0_37823196_30332.cpp:158:47: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37823196_30332.cpp:158:47: error: non-static data member declared 'auto'
0_0_37823196_30332.cpp:159:53: error: 'operator<<' function uses 'auto' type specifier without trailing return type
      friend auto &operator<< (ostream &o, const Z &j) { return o << j.x; }
                                                     ^
0_0_37823196_30332.cpp:159:53: note: deduced return type only available with -std=c++1y or -std=gnu++1y
0_0_37823196_30332.cpp:159:53: error: non-static data member declared 'auto'
0_0_37823196_30332.cpp: In function 'void SP::add(long long int, long long int, long long int, long long int)':
0_0_37823196_30332.cpp:180:24: error: converting to 'std::vector<std::tuple<long long int, long long int, long long int> >::value_type {aka std::tuple<long long int, long long int, long long int>}' from initializer list would use explicit constructor 'constexpr std::tuple< <template-parameter-1-1> >::tuple(_UElements&& ...) [with _UElements = {long long int&, long long int&, long long int&}; <template-parameter-2-2> = void; _Elements = {long long int, long long int, long long int}]'
   ver[x].pb({y, w1, w2});
                        ^
0_0_37823196_30332.cpp: In function 'void SP::dijkstra(long long int)':
0_0_37823196_30332.cpp:188:20: error: expected unqualified-id before '[' token
          for (auto [y, w1, w2] : ver[x]) {
                    ^
0_0_37823196_30332.cpp:188:20: error: expected ';' before '[' token
0_0_37823196_30332.cpp:188:21: error: 'y' was not declared in this scope
          for (auto [y, w1, w2] : ver[x]) {
                     ^
0_0_37823196_30332.cpp:188:24: error: 'w1' was not declared in this scope
          for (auto [y, w1, w2] : ver[x]) {
                        ^
0_0_37823196_30332.cpp:188:28: error: 'w2' was not declared in this scope
          for (auto [y, w1, w2] : ver[x]) {
                            ^
0_0_37823196_30332.cpp: In lambda function:
0_0_37823196_30332.cpp:188:32: error: expected '{' before ':' token
          for (auto [y, w1, w2] : ver[x]) {
                                ^
0_0_37823196_30332.cpp: In function 'void SP::dijkstra(long long int)':
0_0_37823196_30332.cpp:188:32: error: expected ';' before ':' token
0_0_37823196_30332.cpp:188:32: error: expected primary-expression before ':' token
0_0_37823196_30332.cpp:188:32: error: expected ')' before ':' token
0_0_37823196_30332.cpp:188:32: error: expected primary-expression before ':' token
0_0_37823196_30332.cpp: At global scope:
0_0_37823196_30332.cpp:196:15: error: variable or field 'rebuild' declared void
  void rebuild(function<void(int, int, int, int)> add) { //基于最短路重建图
               ^
0_0_37823196_30332.cpp:196:15: error: 'function' was not declared in this scope
0_0_37823196_30332.cpp:196:47: error: expression list treated as compound expression in functional cast [-fpermissive]
  void rebuild(function<void(int, int, int, int)> add) { //基于最短路重建图
                                               ^
0_0_37823196_30332.cpp:196:24: error: expected primary-expression before 'void'
  void rebuild(function<void(int, int, int, int)> add) { //基于最短路重建图
                        ^
0_0_37823196_30332.cpp:331:1: error: expected '}' at end of input
 }
 ^


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-10-06 12:26:38, Gzip enabled