fork(1) download
  1. #include <stdio.h>
  2.  
  3. void go_south_east(int* lat, int* lon)
  4. {
  5. *lat = *lat -1;
  6. *lon = *lon - 1;
  7.  
  8. }
  9.  
  10. int main()
  11. {
  12. int latitude = 32;
  13. int logitude = -64;
  14. go_south_east(&latitude, &longitude);
  15. printf("Avast! Now at: [%i, %i]\n", latitude, longitude);
  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:14:35: error: ‘longitude’ undeclared (first use in this function)
         go_south_east(&latitude, &longitude);
                                   ^
prog.c:14:35: note: each undeclared identifier is reported only once for each function it appears in
prog.c:13:13: warning: unused variable ‘logitude’ [-Wunused-variable]
         int logitude = -64;
             ^
stdout
Standard output is empty