pyramids.cpp: In function 'int main()':
pyramids.cpp:27:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | for (int i = 0; i < n; i++) scanf("%d", &a[i]);
| ~~~~~^~~~~~~~~~~~~
pyramids.cpp:28:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | for (int i = 0; i < n; i++) scanf("%d", &b[i]);
| ~~~~~^~~~~~~~~~~~~
pyramids.cpp:30:36: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | for (int i = 0; i < q; i++) scanf("%d%d%d%d", &L[i], &R[i], &X[i], &Y[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccywfaZg.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc1R6UxV.o:pyramids.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status