Borderou de evaluare (job #2661160)
Utilizator | Data | 21 octombrie 2020 15:27:50 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:13: error: ISO C++ forbids declaration of 'read' with no type [-fpermissive]
inline read();
^
main.cpp:11:24: error: ISO C++ forbids declaration of 'dijkstra' with no type [-fpermissive]
inline dijkstra(int Nod);
^
main.cpp:12:14: error: ISO C++ forbids declaration of 'print' with no type [-fpermissive]
inline print();
^
main.cpp:35:13: error: ISO C++ forbids declaration of 'read' with no type [-fpermissive]
inline read()
^
main.cpp: In function 'int read()':
main.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: At global scope:
main.cpp:47:24: error: ISO C++ forbids declaration of 'dijkstra' with no type [-fpermissive]
inline dijkstra(int Nod)
^
main.cpp: In function 'int dijkstra(int)':
main.cpp:6:19: warning: integer overflow in expression [-Woverflow]
#define oo (1<<31)-1
~~~~~~~^~
main.cpp:49:31: note: in expansion of macro 'oo'
for(int i=1;i<=n;i++)D[i]=oo;
^~
main.cpp:61:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<V[CurrentNod].size();i++)
~^~~~~~~~~~~~~~~~~~~~~
main.cpp:79:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: At global scope:
main.cpp:80:14: error: ISO C++ forbids declaration of 'print' with no type [-fpermissive]
inline print()
^
main.cpp: In function 'int print()':
main.cpp:6:19: warning: integer overflow in expression [-Woverflow]
#define oo (1<<31)-1
~~~~~~~^~
main.cpp:84:18: note: in expansion of macro 'oo'
if(D[i]!=oo)g<<D[i]<<" ";
^~
main.cpp:87:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !