Problem explosives
User Vinayak01
Submission Time 2026-02-08 17:28:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosives.cpp: In function ‘int main()’:
explosives.cpp:23:12: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘long long int [1005]’
23 | sort(a.begin() + 1,a.begin() + n);
| ^~~~~
explosives.cpp:23:26: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘long long int [1005]’
23 | sort(a.begin() + 1,a.begin() + n);
| ^~~~~
explosives.cpp:24:12: error: request for member ‘begin’ in ‘b’, which is of non-class type ‘long long int [1005]’
24 | sort(b.begin() + 1,b.begin() + n);
| ^~~~~
explosives.cpp:24:26: error: request for member ‘begin’ in ‘b’, which is of non-class type ‘long long int [1005]’
24 | sort(b.begin() + 1,b.begin() + n);
| ^~~~~