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