Problem | area |
---|---|
User | Hijackedsoul |
Submission Time | 2023-07-17 19:49:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:14:13: error: expected ‘;’ before ‘long’
14 | cout.tie(0)
| ^
| ;
15 | long long int n, x, y, ans=0;
| ~~~~
area.cpp:16:12: error: ‘n’ was not declared in this scope
16 | cin >> n;
| ^
area.cpp:18:21: error: ‘x’ was not declared in this scope
18 | std::cin >> x >> y;
| ^
area.cpp:18:26: error: ‘y’ was not declared in this scope
18 | std::cin >> x >> y;
| ^
area.cpp:19:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | ans += x*y;
| ^~~
| abs
area.cpp:22:18: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
22 | std::cout << ans;
| ^~~
| abs