Problem mountainbridges
User Hhw48
Submission Time 2023-11-30 20:21:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mountainbridges.cpp: In function ‘int main()’:
mountainbridges.cpp:22:20: error: ‘a’ was not declared in this scope
22 | temp2 += (n-i)-a[j];
| ^
mountainbridges.cpp:31:14: error: expected ‘;’ before ‘long’
31 | ans=(n-1)*x
| ^
| ;
mountainbridges.cpp:34:4: error: ‘temp’ was not declared in this scope
34 | temp=(n-i-1)*z;
| ^~~~
mountainbridges.cpp:37:5: error: ‘temp2’ was not declared in this scope
37 | temp2 += (n-i)-a[j];
| ^~~~~
mountainbridges.cpp:37:20: error: ‘a’ was not declared in this scope
37 | temp2 += (n-i)-a[j];
| ^
mountainbridges.cpp:39:14: error: ‘temp2’ was not declared in this scope
39 | temp += y*temp2;
| ^~~~~