Borderou de evaluare (job #2325244)
Utilizator | Data | 22 ianuarie 2019 12:34:55 | |
---|---|---|---|
Problema | Elicoptere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'double dist(insula, insula)':
main.cpp:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'void bfs(int)':
main.cpp:55:42: error: no matching function for call to 'std::vector<muchie>::push_back(int&, int&, double&)'
A.push_back(nod,i,G[x][i]);
^
In file included from /usr/include/c++/6/vector:64:0,
from /usr/include/c++/6/queue:61,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
from main.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = muchie; _Alloc = std::allocator<muchie>; std::vector<_Tp, _Alloc>::value_type = muchie]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate expects 1 argument, 3 provided
main.cpp: In function 'void APM()':
main.cpp:100:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f[find_f[A[i].y]]=f[find_f[A[i].x]];
^
main.cpp:100:29: error: invalid types 'int [102][int(int)]' for array subscript
f[find_f[A[i].y]]=f[find_f[A[i].x]];
^
main.cpp:100:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
f[find_f[A[i].y]]=f[find_f[A[i].x]];
^
main.cpp:100:47: error: invalid types 'int [102][int(int)]' for array subscript
f[find_f[A[i].y]]=f[find_f[A[i].x]];
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !