Problem modsum
User samantha32072
Submission Time 2023-02-16 20:41:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modsum.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include iostream
| ^~~~~~~~
modsum.cpp: In function ‘int main()’:
modsum.cpp:4:2: error: ‘cin’ was not declared in this scope
4 | cin >> n;
| ^~~
modsum.cpp:6:6: error: ‘i’ was not declared in this scope
6 | for(i=1,i<=n,i++){
| ^
modsum.cpp:11:17: error: ‘total’ was not declared in this scope
11 | int pow4 = pow(total,4);
| ^~~~~
modsum.cpp:11:13: error: ‘pow’ was not declared in this scope; did you mean ‘pow4’?
11 | int pow4 = pow(total,4);
| ^~~
| pow4
modsum.cpp:12:2: error: expected primary-expression before ‘int’
12 | int pow2 = pow(total,2);
| ^~~
modsum.cpp:11:26: error: expected ‘)’ before ‘int’
11 | int pow4 = pow(total,4);
| ^
| )