Record Detail

Compile Error

/in/driver/main.cpp:18:1: error: expected '}' at end of input
 }
 ^
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:15:21: error: 'v' was not declared in this scope
         std::cin >> v;
                     ^
/in/shortestP2P.hpp:16:9: error: 'dist' was not declared in this scope
         dist = vector<vector<int>>(v, vector<int>(v, INF));
         ^~~~
/in/shortestP2P.hpp:16:9: note: suggested alternative: 'div'
         dist = vector<vector<int>>(v, vector<int>(v, INF));
         ^~~~
         div
/in/shortestP2P.hpp:21:21: error: 'e' was not declared in this scope
         std::cin >> e;
                     ^
/in/shortestP2P.hpp:36:30: error: 'hqafbhoypg' was not declared in this scope
                         qoit;hqafbhoypg:
                              ^~~~~~~~~~
/in/shortestP2P.hpp:36:40: error: expected ')' before ':' token
                         qoit;hqafbhoypg:
                                        ^
/in/shortestP2P.hpp:72:25: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
                     qoit;hqafbhoypg:
                         ^
/in/shortestP2P.hpp:35:21: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
                     if (dist[x][z] != INF
                     ^~
/in/shortestP2P.hpp:72:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
                     qoit;hqafbhoypg:
                          ^~~~~~~~~~
/in/shortestP2P.hpp:73:67: error: a function-definition is not allowed here before '{' token
                     void distance(unsigned int A, unsigned int B) {
                                                                   ^
/in/shortestP2P.hpp:83:21: error: expected primary-expression before 'private'
                     private:
                     ^~~~~~~
/in/driver/main.cpp:5:13: error: a function-definition is not allowed here before '{' token
 int main () {
             ^
/in/driver/main.cpp:18:1: error: expected '}' at end of input
 }
 ^
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:86:34: error: unused variable 'e' [-Werror=unused-variable]
                     unsigned int e;
                                  ^
/in/driver/main.cpp:18:1: error: expected '}' at end of input
 }
 ^
/in/driver/main.cpp:18:1: error: expected '}' at end of input
/in/driver/main.cpp:18:1: error: expected '}' at end of input
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:72:26: error: label 'hqafbhoypg' defined but not used [-Werror=unused-label]
                     qoit;hqafbhoypg:
                          ^~~~~~~~~~
/in/driver/main.cpp: At global scope:
/in/driver/main.cpp:18:1: error: expected unqualified-id at end of input
 }
 ^
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Project 4: Shortest Path
Language
C++
Submit At
2023-12-15 23:37:48
Judged At
2023-12-15 23:37:48
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes