Problem | area_noi |
---|---|
User | G |
Submission Time | 2024-02-05 19:32:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> n;
| ^~~
area_noi.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
area_noi.cpp:22:2: error: ‘cout’ was not declared in this scope
22 | cout << a[n-1];
| ^~~~
area_noi.cpp:22:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?