Record Detail

Compile Error

In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:14:31: error: 'vector' was not declared in this scope
         dist.resize(Vertices, vector<int>(Vertices, INF));
                               ^~~~~~
/in/shortestP2P.hpp:14:31: note: suggested alternative:
In file included from /usr/include/c++/7/vector:64:0,
                 from /in/shortestP2P.hpp:3,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_vector.h:216:11: note:   'std::vector'
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^~~~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:14:38: error: expected primary-expression before 'int'
         dist.resize(Vertices, vector<int>(Vertices, INF));
                                      ^~~
/in/shortestP2P.hpp:23:13: error: 'cin' was not declared in this scope
             cin >> start_node >> end_node >> Weight;
             ^~~
/in/shortestP2P.hpp:23:13: note: suggested alternative:
In file included from /in/shortestP2P.hpp:1:0,
                 from /in/driver/main.cpp:1:
/usr/include/c++/7/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-14 22:48:34
Judged At
2024-12-14 22:48:34
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes