Borderou de evaluare (job #2799364)

Utilizator robee1Chitu Robert-Alexandru robee1 Data 13 noiembrie 2021 04:46:47
Problema Componente biconexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:5: error: 'int time' redeclared as different kind of entity 13 | int time=0; | ^~~~ In file included from /usr/include/pthread.h:23, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148, from /usr/include/c++/10/ext/atomicity.h:35, from /usr/include/c++/10/bits/ios_base.h:39, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)' 75 | extern time_t time (time_t *__timer) __THROW; | ^~~~ main.cpp: In function 'void AP(int)': main.cpp:17:5: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith] 17 | time++; | ^~~~ main.cpp:17:5: error: lvalue required as increment operand main.cpp:18:12: error: invalid conversion from 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive] 18 | low[v]=time; | ^~~~ | | | time_t (*)(time_t*) throw () {aka long int (*)(long int*)} main.cpp:19:13: error: invalid conversion from 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} [-fpermissive] 19 | cost[v]=time; | ^~~~ | | | time_t (*)(time_t*) throw () {aka long int (*)(long int*)} main.cpp:21:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 21 | for (int i=0; i<muchii[v].size();i++){ | ~^~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?