Problem area
User Someone
Submission Time 2024-06-19 10:23:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> N;
| ^~~
area.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
area.cpp:15:5: error: ‘cout’ was not declared in this scope
15 | cout << total_area << endl;
| ^~~~
area.cpp:15:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
area.cpp:15:27: error: ‘endl’ was not declared in this scope
15 | cout << total_area << endl;
| ^~~~
area.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using namespace std;