Problem mathmadness
User havinaaaaash
Submission Time 2024-12-09 10:30:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathmadness.cpp: In function ‘int main()’:
mathmadness.cpp:9:7: error: ‘i’ was not declared in this scope
9 | ll a[i], b[i];
| ^
mathmadness.cpp:12:10: error: ‘a’ was not declared in this scope
12 | cin >> a[i] >> b[i];
| ^
mathmadness.cpp:12:18: error: ‘b’ was not declared in this scope
12 | cin >> a[i] >> b[i];
| ^
mathmadness.cpp:14:7: error: ‘a’ was not declared in this scope
14 | sort(a, a+n, greater<ll>);
| ^
mathmadness.cpp:14:26: error: expected primary-expression before ‘)’ token
14 | sort(a, a+n, greater<ll>);
| ^
mathmadness.cpp:16:18: error: ‘b’ was not declared in this scope
16 | x = a[i] * x + b[i];
| ^