Problem wires
User blackscreen1
Submission Time 2024-02-03 17:50:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wires.cpp: In function ‘void wire(int, int, int*)’:
wires.cpp:6:9: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
6 | while (max(n1, n2) < N) {
| ^~~
| std::max
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from wires.h:1,
from wires.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: ‘std::max’ declared here
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~