fork download
  1.  
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. int a, i = 0;
  6. scanf_s("%d", &a);
  7. do {
  8. a += 3; i++;
  9. printf("%d ", a);
  10. a += 2; i++;
  11. printf("%d ", a);
  12. } while (i < 6);
  13. // your code goes here
  14. return 0;
  15. }
  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:2: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration]
  scanf_s("%d", &a);
  ^~~~~~~
  scanf
/usr/bin/ld: /home/2VIzDz/ccvb8lUi.o: in function `main':
prog.c:(.text.startup+0x2f): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty