Problem | flamethrower |
---|---|
User | sussygoose |
Submission Time | 2024-06-10 16:27:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:9:12: error: ‘tc’ cannot be used as a function
9 | cin>>tc(x);
| ^
flamethrower.cpp:13:26: error: ‘tc’ cannot be used as a function
13 | total = total + tc(x+y);
| ^
flamethrower.cpp:15:7: error: reference to ‘max’ is ambiguous
15 | if (max < total){
| ^~~
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from flamethrower.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: candidates are: ‘template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)’
3468 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
/usr/include/c++/9/bits/stl_algo.h:3462:5: note: ‘template<class _Tp> constexpr _Tp std::max(st