Borderou de evaluare (job #3287414)
Utilizator | Data | 17 martie 2025 22:00:46 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:18:5: error: 'int time' redeclared as different kind of entity
18 | int time = 1;
| ^~~~
In file included from /usr/include/pthread.h:23,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr-default.h:35,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr.h:148,
from /usr/include/c++/12.2.1/ext/atomicity.h:35,
from /usr/include/c++/12.2.1/bits/ios_base.h:39,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:1:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
76 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
main.cpp: In function 'void DFS_tarjan(int, std::vector<std::vector<int> >&)':
main.cpp:22:18: error: invalid conversion from 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive]
22 | disc[node] = time;
| ^~~~
| |
| time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}
main.cpp:24:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} [-Wpointer-arith]
24 | time++;
| ^~~~
main.cpp:24:5: error: lvalue required as increment operand
main.cpp:28:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int i = 0; i < adj[node].size(); i++){
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:73:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | for(int i = 0; i < comps.size(); i++){
| ~~^~~~~~~~~~~~~~
main.cpp:74:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for(int j = 0; j < comps[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 !