Problem | car |
---|---|
User | DoubleShaurya |
Submission Time | 2025-05-27 17:39:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
car.cpp: In function ‘int main()’:
car.cpp:29:8: error: expected identifier before ‘[’ token
29 | for ([[auto n1, auto n2], auto dist] : v) {
| ^
car.cpp:29:26: error: expected ‘]’ before ‘,’ token
29 | for ([[auto n1, auto n2], auto dist] : v) {
| ^
| ]
car.cpp: In lambda function:
car.cpp:29:26: error: expected ‘{’ before ‘,’ token
car.cpp: In function ‘int main()’:
car.cpp:29:28: error: expected primary-expression before ‘auto’
29 | for ([[auto n1, auto n2], auto dist] : v) {
| ^~~~
car.cpp:38:2: error: expected primary-expression before ‘return’
38 | return 0;
| ^~~~~~
car.cpp:36:3: error: expected ‘;’ before ‘return’
36 | }
| ^
| ;
37 |
38 | return 0;
| ~~~~~~
car.cpp:38:2: error: expected primary-expression before ‘return’
38 | return 0;