Problem area_noi
User sparshdokania
Submission Time 2024-02-09 12:37:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp: In function ‘int main()’:
area_noi.cpp:12:5: error: ‘cin’ was not declared in this scope
12 | cin >>n;
| ^~~
area_noi.cpp:5:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
4 | #include <algorithm>
+++ |+#include <iostream>
5 |
area_noi.cpp:22:5: error: ‘cout’ was not declared in this scope
22 | cout << ans;
| ^~~~
area_noi.cpp:22:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?