Prosim vas moze mi niekto pomoct? V netbeans mi stale vypisuje ,,parse error before printf,, v tejto casti pri else:
int main (int argc, char** argv) {
turnOn();
turnLeft();
if (frontIsClear())
printf ("ide to");
else (frontIsBlocked())
printf ("nejde to");
return (EXIT_SUCCESS);
}
(main.c: In function `main':
main.c:37: error: parse error before "printf"
make[2]: *** [build/Windows/Cygwin_1-Windows/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2)
int main (int argc, char** argv) {
turnOn();
turnLeft();
if (frontIsClear())
printf ("ide to");
else (frontIsBlocked())
printf ("nejde to");
return (EXIT_SUCCESS);
}
(main.c: In function `main':
main.c:37: error: parse error before "printf"
make[2]: *** [build/Windows/Cygwin_1-Windows/main.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2)