fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i;
  5. for(i=1;i<=100;i++){
  6. if(i%3=0){
  7. printf("Fizz");
  8. }
  9. else if(i%5=0){
  10. printf("Buzz");
  11. }
  12. else if((i%3=0)&&(i%5=0)){
  13. printf("FizzBuzz");
  14. }
  15. else {
  16. printf("%d", &i);
  17. }
  18. }
  19.  
  20. }
  21.  
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: lvalue required as left operand of assignment
  if(i%3=0){
        ^
prog.c:9:13: error: lvalue required as left operand of assignment
  else if(i%5=0){
             ^
prog.c:12:14: error: lvalue required as left operand of assignment
  else if((i%3=0)&&(i%5=0)){
              ^
prog.c:12:23: error: lvalue required as left operand of assignment
  else if((i%3=0)&&(i%5=0)){
                       ^
prog.c:16:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
   printf("%d", &i);
            ^
stdout
Standard output is empty