Problem | modsum |
---|---|
User | samantha32072 |
Submission Time | 2023-02-16 20:43:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:9:19: error: expected primary-expression before ‘)’ token
9 | for(i=1,i<=n,i++;){
| ^
modsum.cpp:9:19: error: expected ‘;’ before ‘)’ token
9 | for(i=1,i<=n,i++;){
| ^
| ;
modsum.cpp:11:3: error: ‘total’ was not declared in this scope
11 | total+=v;
| ^~~~~
modsum.cpp:14:17: error: ‘total’ was not declared in this scope
14 | int pow4 = pow(total,4);
| ^~~~~
modsum.cpp:14:13: error: ‘pow’ was not declared in this scope; di