Problem | modsum |
---|---|
User | eliasxyz |
Submission Time | 2025-07-03 22:49:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘int main()’:
modsum.cpp:12:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
12 | cin>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:15:6: error: conflicting declaration ‘int n [5]’
15 | int n[5];
| ^
modsum.cpp:11:6: note: previous declaration as ‘int n’
11 | int n;
| ^