Problem | airplane |
---|---|
User | ansellee |
Submission Time | 2023-12-26 17:12:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
airplane.cpp: In function ‘int main()’:
airplane.cpp:9:23: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
9 | int *regions = calloc(n, sizeof(int));
| ~~~~~~^~~~~~~~~~~~~~~~
| |
| void*
airplane.cpp:10:23: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
10 | int *pairs_u = calloc(m, sizeof(int));
| ~~~~~~^~~~~~~~~~~~~~~~
| |
| void*
airplane.cpp:11:23: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
11 | int *pairs_v = calloc(m, sizeof(int));
| ~~~~~~^~~~~~~~~~~~~~~~
| |
| void*
airplane.cpp:20:27: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
20 | int *regionState = calloc(n, sizeof(int));
| ~~