Turecko-americká vycházející matematická hvězda Levent Alpöge ze společnosti Anthropic vyvolal pozdvižení oznámením (PDF), že s pomocí superinteligence Claude od Antropicu dokázal vyřešit jeden ze sedmi největších matematických problémů tisíciletí, slavnou Riemannovu hypotézu (prvočísla se mezi čísly objevují zdánlivě nepravidelně, hypotéza tvrdí, že za jejich rozmístěním je určitý řád). Svůj důkaz uvolnil jako open-source
… více »
#include "stdio.h" /* Standard input/output definitions */
#include "string.h" /* String function definitions */
#include "unistd.h" /* UNIX standard function definitions */
#include "fcntl.h" /* File control definitions */
#include "errno.h" /* Error number definitions */
#include "termios.h" /* POSIX terminal control definitions */
int open_port(void){
int fd;
fd = open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_NDELAY);
if (fd == −1) perror("open_port: Unable to open /dev/ttyS0 − ");
else fcntl(fd, F_SETFL, 0);
return (fd);
}
int main(void){
open_port();
}
to je jednoduchy priklad na otevreni portu, avsak po kompilaci to vyhodi
main.c: In function ‘open_port’:
main.c:15: error: stray ‘\342’ in program
main.c:15: error: stray ‘\210’ in program
main.c:15: error: stray ‘\222’ in program
poradi nekdo prosim? :(
Tiskni
Sdílej: