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:6:13: error: 'INT_MAX' was not declared in this scope
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:16:35: note: in expansion of macro 'INF'
     dist.assign(V, vector<int>(V, INF));
                                   ^~~
/in/shortestP2P.hpp:6:13: note: suggested alternative: 'INT8_MAX'
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:16:35: note: in expansion of macro 'INF'
     dist.assign(V, vector<int>(V, INF));
                                   ^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(unsigned int, unsigned int)':
/in/shortestP2P.hpp:6:13: error: 'INT_MAX' was not declared in this scope
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:41:23: note: in expansion of macro 'INF'
     if (dist[A][B] == INF) {
                       ^~~
/in/shortestP2P.hpp:6:13: note: suggested alternative: 'INT8_MAX'
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:41:23: note: in expansion of macro 'INF'
     if (dist[A][B] == INF) {
                       ^~~
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::floydWarshall()':
/in/shortestP2P.hpp:6:13: error: 'INT_MAX' was not declared in this scope
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:57:29: note: in expansion of macro 'INF'
           if (dist[i][k] != INF && dist[k][j] != INF && dist[i][k] + dist[k][j] < dist[i][j]) {
                             ^~~
/in/shortestP2P.hpp:6:13: note: suggested alternative: 'INT8_MAX'
 #define INF INT_MAX
             ^
/in/shortestP2P.hpp:57:29: note: in expansion of macro 'INF'
           if (dist[i][k] != INF && dist[k][j] != INF && dist[i][k] + dist[k][j] < dist[i][j]) {
                             ^~~

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-08-08 23:06:32
Judged At
2024-08-08 23:06:32
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes