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

Compile Error

area.cpp:3:7: error: ‘cin’ in namespace ‘std’ does not name a type
3 | std::cin>>n;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from area.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
area.cpp:4:2: error: expected unqualified-id before ‘for’
4 | for(int i=0;i<n;i++){
| ^~~
area.cpp:4:14: error: ‘i’ does not name a type
4 | for(int i=0;i<n;i++){
| ^
area.cpp:4:18: error: ‘i’ does not name a type
4 | for(int i=0;i<n;i++){
| ^
area.cpp:8:7: error: ‘cout’ in namespace ‘std’ does not name a type
8 | std::cout<<total;
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from area.cpp:1:
/usr/incl