Problem | fizzbuzz |
---|---|
User | geometric2 |
Submission Time | 2023-01-06 17:27:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:11:6: error: could not convert ‘ans’ from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘bool’
11 | if(ans) cout << ans; else cout << i;
| ^~~
| |
| std::string {aka std::__cxx11::basic_string<char>}