Problem ljubomora
User BlueSpace
Submission Time 2026-11-16 09:35:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int32_t main()’:
ljubomora.cpp:26:12: error: cannot convert ‘std::vector<long long int>::empty’ from type ‘bool (std::vector<long long int>::)() const noexcept’ to type ‘bool’
26 | while (!v.empty){
| ^~~~~
ljubomora.cpp:26:12: error: in argument to unary !
ljubomora.cpp:31:14: error: ‘N’ was not declared in this scope
31 | int envy = (N + t + 1)/t;
| ^
ljubomora.cpp:33:22: error: expected ‘;’ at end of input
33 | cout << envy << "\n"
| ~~~~^
| ;
ljubomora.cpp:33:18: error: expected ‘}’ at end of input
33 | cout << envy << "\n"
| ^~~~
ljubomora.cpp:5:17: note: to match this ‘{’
5 | int32_t main () {
| ^