Borderou de evaluare (job #2320658)
Utilizator | Data | 14 ianuarie 2019 23:26:58 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:5: error: 'int time' redeclared as different kind of symbol
int time = 0;
^~~~
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'void DFSinv(int)':
main.cpp:24:9: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
time++;
^~
main.cpp:24:9: error: lvalue required as increment operand
main.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<vpinv[x].size(); i++){
~^~~~~~~~~~~~~~~~
main.cpp:30:9: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' [-Wpointer-arith]
time++;
^~
main.cpp:30:9: error: lvalue required as increment operand
main.cpp:31:38: error: no matching function for call to 'std::vector<std::pair<int, int> >::push_back(std::pair<long int (*)(long int*) throw (), int>)'
times.push_back(make_pair(time,x));
^
In file included from /usr/include/c++/6/vector:64:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from 'std::pair<long int (*)(long int*) throw (), int>' to 'const value_type& {aka const std::pair<int, int>&}'
/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 = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from 'std::pair<long int (*)(long int*) throw (), int>' to 'std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}'
main.cpp: In function 'void DFSnorm(int, int)':
main.cpp:38:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<vp[x].size(); i++){
~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:62:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<times.size(); i++){
~^~~~~~~~~~~~~
main.cpp:71:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<rez[i].size(); j++){
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !