Problem | modsum |
---|---|
User | samantha32072 |
Submission Time | 2023-02-16 20:44:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘int main()’:
modsum.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | 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:11:19: error: expected primary-expression before ‘)’ token
11 | for(i=1,i<=n,i++;){
| ^
modsum.cpp:11:19: error: expected ‘;’ before ‘)’ token
11 | for(i=1,i<=n,i++;){
| ^
| ;