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

Compile Error

area.cpp:4:7: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | scanf("%i",&n);
| ^
area.cpp:5:2: error: expected unqualified-id before ‘for’
5 | for(int i=0;i<n;i++){
| ^~~
area.cpp:5:14: error: ‘i’ does not name a type
5 | for(int i=0;i<n;i++){
| ^
area.cpp:5:18: error: ‘i’ does not name a type
5 | for(int i=0;i<n;i++){
| ^
area.cpp:10:2: error: ‘cout’ does not name a type
10 | cout<<total;
| ^~~~