Problem sumint
User theRealLucasXD
Submission Time 2025-05-22 21:38:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:2:1: error: ‘include’ does not name a type
2 | include namespace std;
| ^~~~~~~
sumint.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
sumint.cpp:5:1: note: in expansion of macro ‘int’
5 | int n, arr[10001], sum=0;
| ^~~
sumint.cpp:5:5: error: ‘n’ does not name a type; did you mean ‘yn’?
5 | int n, arr[10001], sum=0;
| ^
| yn
sumint.cpp: In function ‘int main()’:
sumint.cpp:8:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from sumint.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
sumint.cpp:8:9: er