Problem | globalwarming |
---|---|
User | polyda88 |
Submission Time | 2024-09-10 03:01:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
globalwarming.cpp: In function ‘int GW(int, int*)’:
globalwarming.cpp:28:27: error: invalid conversion from ‘void*’ to ‘island*’ [-fpermissive]
28 | struct island *a= malloc ( size * sizeof( struct island) );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
globalwarming.cpp:29:17: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
29 | int *b= malloc ( (size+2) * sizeof(int) );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| void*
globalwarming.cpp: In function ‘int main()’:
globalwarming.cpp:61:15: error: invalid conversion from ‘void*’ to ‘int*’ [-fpermissive]
61 | H = malloc ( size* sizeof(int) );
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
| |
| void*