Problem | modsum |
---|---|
User | samantha32072 |
Submission Time | 2023-02-16 20:42:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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: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(to