fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int s[] = {1, 2, 3};
  5. int t[] = {3, 2, 1};
  6. s = t;
  7. return 0;
  8. }
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'main':
prog.c:6:7: error: assignment to expression with array type
     s = t;
       ^
prog.c:4:6: error: variable 's' set but not used [-Werror=unused-but-set-variable]
  int s[] = {1, 2, 3};
      ^
cc1: all warnings being treated as errors
stdout
Standard output is empty