Problem area
User lololol
Submission Time 2024-02-12 03:17:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:4:7: error: ‘cin’ is not a member of ‘std’
4 | std::cin>>n;
| ^~~
area.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include<stdio.h>
+++ |+#include <iostream>
2 | int main(){
area.cpp:6:8: error: ‘cin’ is not a member of ‘std’
6 | std::cin>>a>>b;
| ^~~
area.cpp:6:8: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
area.cpp:9:7: error: ‘cout’ is not a member of ‘std’
9 | std::cout<<total;
| ^~~~
area.cpp:9:7: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?