Problem area
User kaien
Submission Time 2024-06-18 11:11:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area.cpp: In function ‘int main()’:
area.cpp:9:2: error: expected initializer before ‘long’
9 | long long ans=0;
| ^~~~
area.cpp:12:11: error: ‘b’ was not declared in this scope
12 | cin>>a>>b;
| ^
area.cpp:13:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
13 | ans+=a*b;
| ^~~
| abs
area.cpp:15:8: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
15 | cout<<ans;
| ^~~
| abs