Problem | goofyrooks |
---|---|
User | Henries |
Submission Time | 2024-10-21 16:52:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goofyrooks.cpp: In function ‘int main()’:
goofyrooks.cpp:31:22: error: no match for ‘operator-’ (operand types are ‘long long int’ and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
31 | attacked = attacked -
| ~~~~~~~~ ^
| |
| long long int
32 | cout << (n*m) - attacked;
| ~~~~
| |
| std::ostream {aka std::basic_ostream<char>}
goofyrooks.cpp:31:22: note: candidate: ‘operator-(long long int, int)’ <built-in>
31 | attacked = attacked -
| ~~~~~~~~~^
32 | cout << (n*m) - attacked;
| ~~~~
goofyrooks.cpp:31:22: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,