doll.cpp:5:9: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
5 | int bad[1e6];
| ^~~
doll.cpp:5:9: error: could not convert '1.0e+6' from 'double' to 'long unsigned int'
5 | int bad[1e6];
| ^~~
| |
| double
doll.cpp:5:9: error: size of array 'bad' has non-integral type 'double'
doll.cpp:9:9: error: size of array 'inc' is not an integral constant-expression
9 | int inc[bg];
| ^~
doll.cpp:10:9: error: size of array 'l' is not an integral constant-expression
10 | int l[bg];
| ^~
doll.cpp:11:9: error: size of array 'r' is not an integral constant-expression
11 | int r[bg];
| ^~
doll.cpp:12:11: error: size of array 'par' is not an integral constant-expression
12 | int par[bg];
| ^~
doll.cpp:13:11: error: size of array 'swi' is not an integral constant-expression
13 | int swi[bg];
| ^~
doll.cpp:14:14: error: size of array 'swipos' is not an integral constant-expression
14 | int swipos[bg];
| ^~
doll.cpp:15:11: error: size of array 'tri' is not an integral constant-expression
15 | int tri[bg];
| ^~
doll.cpp:16:14: error: size of array 'tripos' is not an integral constant-expression
16 | int tripos[bg];
| ^~
doll.cpp:36:34: error: expected ',' or '...' before 'a'
36 | void create_circuit(int m, int[] a){
| ^
doll.cpp: In function 'void create_circuit(int, int*)':
doll.cpp:41:7: error: 'a' was not declared in this scope
41 | n = a.size();
| ^
doll.cpp:94:7: error: 'li' was not declared in this scope; did you mean 'i'?
94 | li -= po[i];
| ^~
| i