Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
a) ‘k’ should not be declared constantb) Expression assigned to ‘k’ should be constant in naturec) Expression (m * k) is invalidd) ‘m ‘ is declared in invalid format
m,n definition is invalid
definition of k has 2 problems:
b) Expression assigned to ‘k’ should be constant in nature
There are 3 major errors:
1.Two invalid expression term ';' which are for "m=;" and "n=;" as they need to be initialized (given a value).
2. The * or -> operator must be applied to a pointer: which in the line 5 (const int k = n / 5 * * n ;)
a. operator is invalid for "5**n)
b. And we have never declared a pointer to use a "*n" also.
3.The expression being assigned to 'k' must be constant: meaning that constant values should be constant and there is no way you could assign a variable to a constant.
There are Error in code
i'm sorry for that
const int m = ; Invalid Declaration
const int m = '//This Should has a value
int n = ;//This Should has a value
const int k = n / 5 * * n ; //** Is Not valid operator