Problem foodchain
User TheInvadr
Submission Time 2023-01-15 16:45:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:25:30: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’ in initialization
25 | int x = multiplyTwoNumbers(num1,num2);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
foodchain.cpp:26:25: error: could not convert ‘x’ from ‘int’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
26 | x=multiplyTwoNumbers(x,num3);
| ^
| |
| int
foodchain.cpp:27:25: error: could not convert ‘x’ from ‘int’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
27 | x=multiplyTwoNumbers(x,num4);
| ^
| |
| int
foodchai