Borderou de evaluare (job #3004638)
Utilizator | Data | 16 martie 2023 15:03:51 | |
---|---|---|---|
Problema | Terenuri3D | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/12.2.1/queue:64,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/stl_queue.h: In instantiation of 'class std::priority_queue<std::pair<long long int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >':
main.cpp:8:85: required from here
/usr/include/c++/12.2.1/bits/stl_queue.h:522:67: error: static assertion failed: value_type must be the same as the underlying container
522 | static_assert(is_same<_Tp, typename _Sequence::value_type>::value,
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_queue.h:522:67: note: 'std::integral_constant<bool, false>::value' evaluates to false
main.cpp: In function 'void bellmanford(int)':
main.cpp:28:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(i=0; i<adj[curr].size(); i++)
| ~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int dijkstra(int, int, int)':
main.cpp:58:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for(i=0; i<adj[curr].size(); i++)
| ~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:102:11: warning: unused variable 'j' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^
main.cpp:102:15: warning: unused variable 'l' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^
main.cpp:102:21: warning: unused variable 'a' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^
main.cpp:102:23: warning: unused variable 'b' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^
main.cpp:102:25: warning: unused variable 'capedge' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^~~~~~~
main.cpp:102:33: warning: unused variable 'costedge' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^~~~~~~~
main.cpp:102:48: warning: unused variable 'cst' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^~~
main.cpp:102:52: warning: unused variable 'cp' [-Wunused-variable]
102 | int i,j,k,l,n,m,a,b,capedge,costedge,st,fs,cst,cp,x,y,z;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !