|J'ai un problème avec le langage c en mettant ça :
#include <stdio.h>
int main()
{
int x; / L05
x = 5; / L07
printf("La valeur de la variable x est %d.\n", x); L08
return 0;
}
Quand j'écris ça ça me met :
||=== Build: Release in 0601 (compiler: GNU GCC Compiler) ===|
C:\Users\Charki\Desktop\Programation\0601\main.c||In function 'main':|
C:\Users\Charki\Desktop\Programation\0601\main.c|5|error: expected expression before '/' token|
C:\Users\Charki\Desktop\Programation\0601\main.c|7|error: expected expression before '/' token|
C:\Users\Charki\Desktop\Programation\0601\main.c|8|error: 'L08' undeclared (first use in this function)|
C:\Users\Charki\Desktop\Programation\0601\main.c|8|note: each undeclared identifier is reported only once for each function it appears in|
C:\Users\Charki\Desktop\Programation\0601\main.c|9|error: expected ';' before 'return'|
C:\Users\Charki\Desktop\Programation\0601\main.c|5|warning: unused variable 'x' [-Wunused-variable]|
C:\Users\Charki\Desktop\Programation\0601\main.c|10|warning: control reaches end of non-void function [-Wreturn-type]|
||=== Build failed: 4 error(s), 2 warning(s) (0 minute(s), 0 second(s)) ===|
Donc comment résoudre ça ? merci