Problem brick
User Leeyee
Submission Time 2025-08-22 16:30:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:14:25: error: expected ‘;’ before ‘for’
14 | sort(v.begin(),v.end())
| ^
| ;
15 | for (int i = 0; i<v.size(); i++) { //i++ just the same as i+=1
| ~~~
brick.cpp:15:19: error: ‘i’ was not declared in this scope
15 | for (int i = 0; i<v.size(); i++) { //i++ just the same as i+=1
| ^