Borderou de evaluare (job #1244293)
Utilizator | Data | 17 octombrie 2014 01:47:13 | |
---|---|---|---|
Problema | Tribute | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:11:22: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
float distance(float &X,float &Y)
^
user.c:38:6: warning: return type of ‘main’ is not ‘int’ [-Wmain]
void main()
^
user.c: In function ‘main’:
user.c:42:2: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(buffer,"%f","%f","%f",N,DX,DY);
^
user.c:42:2: warning: format ‘%f’ expects argument of type ‘float *’, but argument 3 has type ‘char *’ [-Wformat=]
user.c:42:2: warning: too many arguments for format [-Wformat-extra-args]
user.c:44:2: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(buffer,"%f","%f",mediumX,mediumY);
^
user.c:44:2: warning: format ‘%f’ expects argument of type ‘float *’, but argument 3 has type ‘char *’ [-Wformat=]
user.c:44:2: warning: too many arguments for format [-Wformat-extra-args]
user.c:47:3: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(buffer,"%f","%f",X,Y);
^
user.c:47:3: warning: format ‘%f’ expects argument of type ‘float *’, but argument 3 has type ‘char *’ [-Wformat=]
user.c:47:3: warning: too many arguments for format [-Wformat-extra-args]
user.c:55:2: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(buffer,"%f","%f","%f",N,DX,DY);
^
user.c:55:2: warning: format ‘%f’ expects argument of type ‘float *’, but argument 3 has type ‘char *’ [-Wformat=]
user.c:55:2: warning: too many arguments for format [-Wformat-extra-args]
user.c:60:3: warning: writing into constant object (argument 3) [-Wformat=]
fscanf(buffer,"%f","%f",X,Y);
^
user.c:60:3: warning: format ‘%f’ expects argument of type ‘float *’, but argument 3 has type ‘char *’ [-Wformat=]
user.c:60:3: warning: too many arguments for format [-Wformat-extra-args]
user.c:61:3: warning: implicit declaration of function ‘distance’ [-Wimplicit-function-declaration]
S=S+distance(X,Y);
^
user.c: In function ‘medium’:
user.c:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.c: In function ‘main’:
user.c:42:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(buffer,"%f","%f","%f",N,DX,DY);
^
user.c:44:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(buffer,"%f","%f",mediumX,mediumY);
^
user.c:47:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(buffer,"%f","%f",X,Y);
^
user.c:55:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !