fork download
  1. #include <stdio.h>
  2. int main() {
  3. int baris, kolom, n = 5;
  4. if (baris == kolom || baris = n-1 || kolom =0) {
  5. printf("*");
  6. }
  7. else (" ");
  8. else ("/n");
  9. }
Compilation error #stdin compilation error #stdout 0s 5516KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4:45: error: lvalue required as left operand of assignment
  if (baris == kolom || baris = n-1 || kolom =0) {
                                             ^
prog.c:7:7: warning: statement with no effect [-Wunused-value]
  else (" ");
       ^
prog.c:8:2: error: ‘else’ without a previous ‘if’
  else ("/n");
  ^~~~
prog.c:8:7: warning: statement with no effect [-Wunused-value]
  else ("/n");
       ^
stdout
Standard output is empty