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:33:9: error: expected ',' or ';' before 'size_t'
         size_t E = static_cast<size_t>(E0)
         ^~~~~~
/in/shortestP2P.hpp:36:32: error: 'E' was not declared in this scope
         for (size_t i = 0; i < E; i++) {
                                ^
/in/shortestP2P.hpp:43:34: error: conversion to 'int' from 'size_t {aka long unsigned int}' may alter its value [-Werror=conversion]
         if (detectNegativeCycle(V)) {
                                  ^
/in/shortestP2P.hpp: In member function 'bool ShortestP2P::detectNegativeCycle(int)':
/in/shortestP2P.hpp:98:30: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (size_t i = 0; i < V - 1; ++i) {
                            ~~^~~~~~~
/in/shortestP2P.hpp:100:34: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (size_t u = 0; u < V; ++u) {
                                ~~^~~
/in/shortestP2P.hpp:117:30: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (size_t u = 0; u < V; ++u) {
                            ~~^~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4
Language
C++
Submit At
2024-12-10 18:51:58
Judged At
2024-12-10 18:51:58
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes