Problem foodchain
User cat
Submission Time 2024-05-25 09:44:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:6:13: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
6 | string a = 1;
| ^
foodchain.cpp:9:5: error: no match for ‘operator*=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
9 | a *= x;
| ~~^~~~
foodchain.cpp:10:5: error: no match for ‘operator%=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
10 | a %= 1000000009;
| ~~^~~~~~~~~~~~~