toxic.cpp: In function 'void determine_type(int)':
toxic.cpp:13:33: error: cannot convert '<brace-enclosed initializer list>' to 'int'
13 | answer_type({i, 'T'});
| ^
| |
| <brace-enclosed initializer list>
In file included from toxic.cpp:2:
toxic.h:5:22: note: initializing argument 1 of 'void answer_type(int, char)'
5 | void answer_type(int x, char c);
| ~~~~^
toxic.cpp:20:36: error: cannot convert '<brace-enclosed initializer list>' to 'int'
20 | answer_type({toad, 'N'});
| ^
| |
| <brace-enclosed initializer list>
In file included from toxic.cpp:2:
toxic.h:5:22: note: initializing argument 1 of 'void answer_type(int, char)'
5 | void answer_type(int x, char c);
| ~~~~^
toxic.cpp:22:37: error: cannot convert '<brace-enclosed initializer list>' to 'int'
22 | else answer_type({toad, 'S'});
| ^
| |
| <brace-enclosed initializer list>
In file included from toxic.cpp:2:
toxic.h:5:22: note: initializing argument 1 of 'void answer_type(int, char)'
5 | void answer_type(int x, char c);
| ~~~~^