Problem modsum
User samantha32072
Submission Time 2023-03-02 09:56:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modsum.cpp: In function ‘int main()’:
modsum.cpp:12:12: error: expected initializer before ‘wv’
12 | int total wv=0;
| ^~
modsum.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i=n;i>=n;i++){
| ^
modsum.cpp:17:10: error: lvalue required as left operand of assignment
17 | if(n%2=0){
| ^
modsum.cpp:19:4: error: ‘totalwv’ was not declared in this scope; did you mean ‘totalvw’?
19 | totalwv+=w;
| ^~~~~~~
| totalvw
modsum.cpp:22:4: error: ‘totalwv’ was not declared in this scope; did you mean ‘totalvw’?
22 | totalwv+=v;
| ^~~~~~~
| totalvw
modsum.cpp:27:20: error: invalid type argument of unary ‘*’ (have ‘int’)
27 | total = ((totalv**4)+2*(totalv**2)%5)+1;
| ^
modsum.cpp:27:34: error: invalid type argument of unary ‘*’ (have ‘int’)
27 | total = ((totalv**4)+2*(totalv**2)%5)