fork download
  1. #define F_CPU 16000000
  2. #include <avr/io.h>
  3. #include <util/delay.h>
  4.  
  5. int main(void)
  6. {
  7. DDRC |= (1 << DDC0);
  8. while(1)
  9. {
  10. PORTC ^= (1 << PORTC0);
  11. _delay_ms(500);
  12. }
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:20: error: avr/io.h: No such file or directory
prog.cpp:3:24: error: util/delay.h: No such file or directory
prog.cpp: In function ‘int main()’:
prog.cpp:7: error: ‘DDRC’ was not declared in this scope
prog.cpp:7: error: ‘DDC0’ was not declared in this scope
prog.cpp:10: error: ‘PORTC’ was not declared in this scope
prog.cpp:10: error: ‘PORTC0’ was not declared in this scope
prog.cpp:11: error: ‘_delay_ms’ was not declared in this scope
stdout
Standard output is empty