Problem modsum
User samantha32072
Submission Time 2023-02-16 20:42:28
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:8: error: ‘cin’ is not a member of ‘std’
4 | std:: cin >> n;
| ^~~
modsum.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include iostream
modsum.cpp:7:18: error: expected ‘;’ before ‘)’ token
7 | for(i=1,i<=n,i++){
| ^
| ;
modsum.cpp:12:17: error: ‘total’ was not declared in this scope
12 | int pow4 = pow(total,4);
| ^~~~~
modsum.cpp:12:13: error: ‘pow’ was not declared in this scope; did you mean ‘pow4’?
12 | int pow4 = pow(total,4);
| ^~~
| pow4
modsum.cpp:13:2: error: expected primary-expression befo