pinball.cpp:17:10: error: expected identifier before '(' token
17 | Len union(Len a, Len b) {
| ^
pinball.cpp:17:14: error: expected ')' before 'a'
17 | Len union(Len a, Len b) {
| ~ ^~
| )
pinball.cpp: In function 'int main()':
pinball.cpp:39:10: warning: unused variable 'd' [-Wunused-variable]
39 | Device d = {l, r, tp, c};
| ^
pinball.cpp:42:6: warning: unused variable 'l' [-Wunused-variable]
42 | int l = 1, r = cols;
| ^
pinball.cpp:42:13: warning: unused variable 'r' [-Wunused-variable]
42 | int l = 1, r = cols;
| ^