cake.cpp: In function 'int main()':
cake.cpp:32:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
32 | if(l<1) l+=n; if(r>n) r-=n;
| ^~
cake.cpp:32:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
32 | if(l<1) l+=n; if(r>n) r-=n;
| ^~
cake.cpp:27:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
cake.cpp:28:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | for(int i=1; i<=n; i++) scanf("%lld", &arr[i]);
| ~~~~~^~~~~~~~~~~~~~~~~