Borderou de evaluare (job #3196024)

Utilizator bent_larsenSturzu Antonio-Gabriel bent_larsen Data 22 ianuarie 2024 15:15:01
Problema Proc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'll solve(int, int, int)': main.cpp:31:9: error: 'llleft' was not declared in this scope 31 | llleft = 1, right = LLONG_MAX; | ^~~~~~ main.cpp:31:27: error: assignment of function 'std::ios_base& std::right(ios_base&)' 31 | llleft = 1, right = LLONG_MAX; | ^ main.cpp:35:40: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive] 35 | ll mid = left + (right - left) / 2; | ~~~~~~^~~~~~ main.cpp:35:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] 35 | ll mid = left + (right - left) / 2; | ~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:35:31: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'll' {aka 'long unsigned int'} [-fpermissive] 35 | ll mid = left + (right - left) / 2; | ~~~~~^~~~~~~~~~~~~~~~~~~~ | | | std::ios_base& (*)(std::ios_base&) main.cpp:38:31: error: assignment of function 'std::ios_base& std::right(ios_base&)' 38 | right = mid - 1; | ~~~~~~^~~~~~~~~ main.cpp:40:30: error: assignment of function 'std::ios_base& std::left(ios_base&)' 40 | left = mid + 1; | ~~~~~^~~~~~~~~ main.cpp:42:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] 42 | return right + 1; | ~~~~~~^~~ main.cpp:42:22: error: invalid conversion from 'std::ios_base& (*)(std::ios_base&)' to 'll' {aka 'long unsigned int'} [-fpermissive] 42 | return right + 1; | ~~~~~~^~~ | | | std::ios_base& (*)(std::ios_base&) Non zero exit status: 1

Ceva nu functioneaza?