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:63:14: error: unused variable 'lol' [-Werror=unused-variable]
         bool lol = floydWarshall();
              ^~~
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::floydWarshall()':
/in/shortestP2P.hpp:128:39: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                     if (distances[i][k] != INF && distances[k][j] != INF && distances[i][k] + distances[k][j] < distances[i][j]) {
                                       ^
/in/shortestP2P.hpp:128:65: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                     if (distances[i][k] != INF && distances[k][j] != INF && distances[i][k] + distances[k][j] < distances[i][j]) {
                                                                 ^
/in/shortestP2P.hpp:128:91: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                     if (distances[i][k] != INF && distances[k][j] != INF && distances[i][k] + distances[k][j] < distances[i][j]) {
                                                                                           ^
/in/shortestP2P.hpp:128:109: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                     if (distances[i][k] != INF && distances[k][j] != INF && distances[i][k] + distances[k][j] < distances[i][j]) {
                                                                                                             ^
/in/shortestP2P.hpp:128:127: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                     if (distances[i][k] != INF && distances[k][j] != INF && distances[i][k] + distances[k][j] < distances[i][j]) {
                                                                                                                               ^
/in/shortestP2P.hpp:129:39: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                         distances[i][j] = distances[i][k] + distances[k][j];
                                       ^
/in/shortestP2P.hpp:129:57: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                         distances[i][j] = distances[i][k] + distances[k][j];
                                                         ^
/in/shortestP2P.hpp:129:75: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
                         distances[i][j] = distances[i][k] + distances[k][j];
                                                                           ^
/in/shortestP2P.hpp:136:31: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
             if (distances[i][i] < 0) {
                               ^
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-02 22:03:46
Judged At
2024-08-02 22:03:46
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes