candies.cpp:3:5: error: extended character is not valid in an identifier
3 | int* distribute_candies(int c[], int l[], int r[], int v[]) {
| ^
candies.cpp:3:35: error: extended character is not valid in an identifier
3 | int* distribute_candies(int c[], int l[], int r[], int v[]) {
| ^
candies.cpp:3:35: error: 'int\U000000a0l' has not been declared
3 | int* distribute_candies(int c[], int l[], int r[], int v[]) {
| ^~~~~
candies.cpp: In function 'int* \U000000a0distribute_candies(int*, int*, int*, int*)':
candies.cpp:4:18: warning: 'sizeof' on array function parameter 'c' will return size of 'int*' [-Wsizeof-array-argument]
4 | int N = sizeof(c) / sizeof(c[0]);
| ~^~
candies.cpp:3:30: note: declared here
3 | int* distribute_candies(int c[], int l[], int r[], int v[]) {
| ~~~~^~~
candies.cpp:5:18: error: 'l' was not declared in this scope
5 | int Q = sizeof(l) / sizeof(l[0]);
| ^
candies.cpp:15:10: warning: address of local variable 'S' returned [-Wreturn-local-addr]
15 | return S;
| ^
candies.cpp:6:7: note: declared here
6 | int S[N + 1] = {0};
| ^