Problem medianontree
User bribritt
Submission Time 2023-12-16 10:59:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

medianontree.cpp: In function ‘void subtask3()’:
medianontree.cpp:20:16: error: ‘n’ was not declared in this scope
20 | for(int i=1;i<n;i++) ans+=min(T[i],T[i+1]);
| ^