Problem | area_noi |
---|---|
User | limmingyao21 |
Submission Time | 2024-01-06 12:12:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp:2:7: error: expected nested-name-specifier before ‘namspace’
2 | using namspace std;
| ^~~~~~~~
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from area_noi.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
area_noi.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> areas(n);
| ^~~~~~
area_noi.cpp:8:5: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,