fork download
  1. void rev(int n, int x[], int y[]) {
  2. for (int i = 0; i < n; i++) {
  3. y[n-1-i] = x[i];
  4. }
  5. }
  6.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty