Problem area
User mythical
Submission Time 2026-03-16 17:32:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:4:5: error: ‘ios’ has not been declared
4 | ios::sync_with_stdio(false);
| ^~~
area.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin.tie(nullptr);
| ^~~
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:17:5: error: ‘cout’ was not declared in this scope
17 | cout << total << '\n';
| ^~~~
area.cpp:17:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?