fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int v[] = {1,2};
  5. int v1;
  6. v1 = v;
  7. printf("%s", v1);
  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:8: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
     v1 = v;
        ^
prog.c:7:14: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Werror=format=]
     printf("%s", v1);
              ^
cc1: all warnings being treated as errors
stdout
Standard output is empty