Problem | 3nplus1II |
---|---|
User | joshua2152 |
Submission Time | 2023-05-03 15:07:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1II.cpp: In lambda function:
3nplus1II.cpp:7:14: error: expected ‘{’ before ‘;’ token
7 | auto ls = [];
| ^
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:15:6: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda()>’ and ‘int’)
15 | ls[i] = n;
| ^
3nplus1II.cpp:20:6: error: no match for ‘operator[]’ (operand types are ‘main()::<lambda()>’ and ‘int’)
20 | ls[i] = n;
| ^
3nplus1II.cpp:24:6: error: expected ‘{’ before ‘cout’
24 | try cout >> ls[a+1];
| ^~~~
3nplus1II.cpp:24:6: error: expected ‘catch’ before ‘cout’
3nplus1II.cpp:24:6: error: expected ‘(’ before ‘cout’
24 | try cout >> ls[a+1];
| ^~~~
| (
3nplus1II.cpp:24:6: error: ‘cout’ does not name a type
24 | try cout >> ls[a+1];
| ^~~~
3nplus1II.cpp:24:10: error: expected ‘)’ before ‘>>’ toke