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

Compile Error

modsum.cpp: In function ‘int main()’:
modsum.cpp:4:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | cin >> n;
| ^~~
| std::cin
In file included from modsum.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
modsum.cpp:10:19: error: expected primary-expression before ‘)’ token
10 | for(i=1,i<=n,i++;){
| ^
modsum.cpp:10:19: error: expected ‘;’ before ‘)’ token
10 | for(i=1,i<=n,i++;){
| ^
| ;
modsum.cpp:15:13: error: ‘pow’ was not declared in this scope; did you mean ‘pow4’?
15 | int pow4 = pow(total,4);
| ^~~
| pow4