In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:9:22: error: stray '@' in program
typedef unsigned int @;
^
/in/shortestP2P.hpp:21:5: error: stray '@' in program
@ numEdges;
^
/in/shortestP2P.hpp:26:10: error: stray '@' in program
for (@ i = 0; i < numVertices; i++) {
^
/in/shortestP2P.hpp:31:10: error: stray '@' in program
for (@ i = 0; i < numEdges; i++) {
^
/in/shortestP2P.hpp:32:9: error: stray '@' in program
@ vertex1, vertex2;
^
/in/shortestP2P.hpp:49:10: error: stray '@' in program
for (@ k = 0; k < numVertices; k++) {
^
/in/shortestP2P.hpp:50:14: error: stray '@' in program
for (@ i = 0; i < numVertices; i++) {
^
/in/shortestP2P.hpp:51:18: error: stray '@' in program
for (@ j = 0; j < numVertices; j++) {
^
/in/shortestP2P.hpp:60:19: error: stray '@' in program
void distance(@ A, @ B){
^
/in/shortestP2P.hpp:60:24: error: stray '@' in program
void distance(@ A, @ B){
^
/in/shortestP2P.hpp:66:5: error: stray '@' in program
@ numVertices;
^
/in/shortestP2P.hpp:70:42: error: stray '@' in program
long long shortestPathFirstAlgorithm(@ start, @ end);
^
/in/shortestP2P.hpp:70:51: error: stray '@' in program
long long shortestPathFirstAlgorithm(@ start, @ end);
^
/in/shortestP2P.hpp:76:32: error: stray '@' in program
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:61: error: stray '@' in program
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:81:51: error: stray '@' in program
long long ShortestP2P::shortestPathFirstAlgorithm(@ start, @ end) {
^
/in/shortestP2P.hpp:81:60: error: stray '@' in program
long long ShortestP2P::shortestPathFirstAlgorithm(@ start, @ end) {
^
/in/shortestP2P.hpp:84:12: error: stray '@' in program
vector<@> count(numVertices, 0);
^
/in/shortestP2P.hpp:89:25: error: stray '@' in program
priority_queue<pair<@, long long>, vector<pair<@, long long>>, Compare> pq;
^
/in/shortestP2P.hpp:89:52: error: stray '@' in program
priority_queue<pair<@, long long>, vector<pair<@, long long>>, Compare> pq;
^
/in/shortestP2P.hpp:94:9: error: stray '@' in program
@ currentVertex = pq.top().first;
^
/in/shortestP2P.hpp:99:14: error: stray '@' in program
for (@ neighbor = 0; neighbor < numVertices; neighbor++) {
^
/in/shortestP2P.hpp:9:18: error: declaration does not declare anything [-fpermissive]
typedef unsigned int @;
^~~
/in/shortestP2P.hpp:60:21: error: 'A' has not been declared
void distance(@ A, @ B){
^
/in/shortestP2P.hpp:60:26: error: 'B' has not been declared
void distance(@ A, @ B){
^
/in/shortestP2P.hpp:66:7: error: 'numVertices' does not name a type
@ numVertices;
^~~~~~~~~~~
/in/shortestP2P.hpp:70:44: error: 'start' has not been declared
long long shortestPathFirstAlgorithm(@ start, @ end);
^~~~~
/in/shortestP2P.hpp:70:53: error: 'end' is not a type
long long shortestPathFirstAlgorithm(@ start, @ end);
^~~
/in/shortestP2P.hpp: In member function 'void ShortestP2P::readGraph()':
/in/shortestP2P.hpp:21:7: error: 'numEdges' was not declared in this scope
@ numEdges;
^~~~~~~~
/in/shortestP2P.hpp:22:12: error: 'numVertices' was not declared in this scope
cin >> numVertices >> numEdges;
^~~~~~~~~~~
/in/shortestP2P.hpp:26:12: error: 'i' was not declared in this scope
for (@ i = 0; i < numVertices; i++) {
^
/in/shortestP2P.hpp:31:12: error: 'i' was not declared in this scope
for (@ i = 0; i < numEdges; i++) {
^
/in/shortestP2P.hpp:32:11: error: 'vertex1' was not declared in this scope
@ vertex1, vertex2;
^~~~~~~
/in/shortestP2P.hpp:32:20: error: 'vertex2' was not declared in this scope
@ vertex1, vertex2;
^~~~~~~
/in/shortestP2P.hpp:49:12: error: 'k' was not declared in this scope
for (@ k = 0; k < numVertices; k++) {
^
/in/shortestP2P.hpp:50:16: error: 'i' was not declared in this scope
for (@ i = 0; i < numVertices; i++) {
^
/in/shortestP2P.hpp:51:20: error: 'j' was not declared in this scope
for (@ j = 0; j < numVertices; j++) {
^
/in/shortestP2P.hpp: In member function 'void ShortestP2P::distance(int, int)':
/in/shortestP2P.hpp:62:29: error: 'A' was not declared in this scope
cout << (distanceMatrix[A][B] == INF? "INF" : to_string(distanceMatrix[A][B])) << endl;
^
/in/shortestP2P.hpp:62:32: error: 'B' was not declared in this scope
cout << (distanceMatrix[A][B] == INF? "INF" : to_string(distanceMatrix[A][B])) << endl;
^
/in/shortestP2P.hpp: At global scope:
/in/shortestP2P.hpp:76:44: error: template argument 1 is invalid
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:44: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:44: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:44: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:27: error: invalid template-id
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^~~~
/in/shortestP2P.hpp:76:33: error: expected primary-expression before ',' token
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:21: error: template placeholder type 'const pair' must be followed by a simple declarator-id
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/shortestP2P.hpp:1,
from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_pair.h:208:12: note: 'template<class _T1, class _T2> struct std::pair' declared here
struct pair
^~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:76:47: error: 'auto' parameter not permitted in this context
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:73: error: template argument 1 is invalid
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:73: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:73: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:73: error: template argument 1 is invalid
/in/shortestP2P.hpp:76:56: error: invalid template-id
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^~~~
/in/shortestP2P.hpp:76:62: error: expected primary-expression before ',' token
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp:76:50: error: template placeholder type 'const pair' must be followed by a simple declarator-id
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
from /usr/include/c++/7/bits/char_traits.h:39,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from /in/shortestP2P.hpp:1,
from /in/driver/main.cpp:1:
/usr/include/c++/7/bits/stl_pair.h:208:12: note: 'template<class _T1, class _T2> struct std::pair' declared here
struct pair
^~~~
In file included from /in/driver/main.cpp:1:0:
/in/shortestP2P.hpp:76:76: error: 'auto' parameter not permitted in this context
bool operator()(const pair<@, long long>& a, const pair<@, long long>& b) const {
^
/in/shortestP2P.hpp: In member function 'bool Compare::operator()() const':
/in/shortestP2P.hpp:77:16: error: 'a' was not declared in this scope
return a.second > b.second;
^
/in/shortestP2P.hpp:77:27: error: 'b' was not declared in this scope
return a.second > b.second;
^
/in/shortestP2P.hpp: At global scope:
/in/shortestP2P.hpp:81:53: error: 'long long int ShortestP2P::shortestPathFirstAlgorithm' is not a static data member of 'class ShortestP2P'
long long ShortestP2P::shortestPathFirstAlgorithm(@ start, @ end) {
^~~~~
/in/shortestP2P.hpp:81:53: error: 'start' was not declared in this scope
/in/shortestP2P.hpp:81:53: note: suggested alternative: 'short'
long long ShortestP2P::shortestPathFirstAlgorithm(@ start, @ end) {
^~~~~
short
/in/shortestP2P.hpp:81:65: error: expression list treated as compound expression in initializer [-fpermissive]
long long ShortestP2P::shortestPathFirstAlgorithm(@ start, @ end) {
^