fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. /* giai phuong trinh bac nhat */
  6. Int a, b;
  7. Scanf("%d %d",&a, &b);
  8. If(a==0)
  9. {
  10. If (b==0) printf(" phuong trinh vo so nghiem");
  11. Else printf(" phuong trinh vo nghiem");
  12. Else
  13. Printf("phuong trinh co nghiem %f",1.0*-b/a);
  14. }
  15. return 0;
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:6:1: error: unknown type name ‘Int’
 Int a, b;
 ^~~
prog.c:7:1: warning: implicit declaration of function ‘Scanf’ [-Wimplicit-function-declaration]
 Scanf("%d %d",&a, &b);
 ^~~~~
prog.c:8:1: warning: implicit declaration of function ‘If’ [-Wimplicit-function-declaration]
 If(a==0)
 ^~
prog.c:9:1: error: expected ‘;’ before ‘{’ token
 {
 ^
stdout
Standard output is empty