Main.c: In function 'main':
Main.c:12:22: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:22: note: (near initialization for 'tasks')
Main.c:12:24: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:24: note: (near initialization for 'tasks')
Main.c:12:26: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:26: note: (near initialization for 'tasks')
Main.c:12:28: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:28: note: (near initialization for 'tasks')
Main.c:12:30: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:30: note: (near initialization for 'tasks')
Main.c:12:32: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:32: note: (near initialization for 'tasks')
Main.c:12:34: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:34: note: (near initialization for 'tasks')
Main.c:12:36: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:36: note: (near initialization for 'tasks')
Main.c:12:38: warning: excess elements in scalar initializer
12 | uint8_t * tasks = {0,1,2,3,4,5,6,7,8,9};
| ^
Main.c:12:38: note: (near initialization for 'tasks')
Main.c:24:11: error: 'task' undeclared (first use in this function); did you mean 'tasks'?
24 | swap+=task[i];
| ^~~~
| tasks
Main.c:24:11: note: each undeclared identifier is reported only once for each function it appears in
Main.c:11:9: warning: variable 'swap' set but not used [-Wunused-but-set-variable]
11 | uint8_t swap = 0;
| ^~~~