Borderou de evaluare (job #2361035)

Utilizator lupulescu2001Lupulescu Vlad lupulescu2001 Data 2 martie 2019 12:29:57
Problema Algola Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:18:11: error: 'int time' redeclared as different kind of symbol int fmax, time; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, 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 Solve()': main.cpp:83:13: 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:83:13: error: lvalue required as increment operand main.cpp:85:25: warning: pointer to a function used in arithmetic [-Wpointer-arith] Add((time - 1) * n + i, time * n + i, oo); ^ main.cpp:85:28: error: invalid operands of types 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' and 'int' to binary 'operator*' Add((time - 1) * n + i, time * n + i, oo); ~~~~~~~~~~~^~~ main.cpp:85:42: error: invalid operands of types 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' and 'int' to binary 'operator*' Add((time - 1) * n + i, time * n + i, oo); ~~~~~^~~ main.cpp:87:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] Add((time - 1) * n + i, time * n + j.first, j.second); ^ main.cpp:87:32: error: invalid operands of types 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' and 'int' to binary 'operator*' Add((time - 1) * n + i, time * n + j.first, j.second); ~~~~~~~~~~~^~~ main.cpp:87:46: error: invalid operands of types 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' and 'int' to binary 'operator*' Add((time - 1) * n + i, time * n + j.first, j.second); ~~~~~^~~ main.cpp:89:18: error: invalid operands of types 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' and 'int' to binary 'operator*' Add(time * n + 1, last, oo); ~~~~~^~~ main.cpp: In function 'void Print()': main.cpp:95:13: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress] fout << time << '\n'; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?