Problem | brick |
---|---|
User | om2024 |
Submission Time | 2024-06-20 14:47:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:11:13: error: ‘i’ was not declared in this scope
11 | cin >> ve[i];
| ^
brick.cpp:12:35: error: expected ‘)’ before ‘{’ token
12 | while (ve.empty() || v[i+1] <= v{i]); {
| ~ ^
| )
brick.cpp:12:37: error: expected ‘;’ before ‘]’ token
12 | while (ve.empty() || v[i+1] <= v{i]); {
| ^
| ;
brick.cpp:19:11: error: expected ‘}’ at end of input
19 | }
| ^
brick.cpp:10:30: note: to match this ‘{’
10 | for(int i = 0; i < n; i++); {
| ^
brick.cpp:19:11: error: expected ‘}’ at end of input
19 | }
| ^
brick.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^