|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ultima problemă
grupă: mică
sursă: OMI 2016 ultimul articol
autor: Prof. Radu Vişinescu
ultimul software
autor: Prof. Emanuela Cerchez
|
Sursa 490358
Mesaj evaluator:
sort2dist.c: In function 'main':
sort2dist.c:12: warning: format '%s' expects type 'char *', but argument 3 has type 'int (*)[30]'
sort2dist.c:16: warning: implicit declaration of function 'strlen'
sort2dist.c:16: warning: incompatible implicit declaration of built-in function 'strlen'
sort2dist.c:16: warning: passing argument 1 of 'strlen' from incompatible pointer type
sort2dist.c:16: note: expected 'const char *' but argument is of type 'int *'
sort2dist.c:17: warning: passing argument 1 of 'strlen' from incompatible pointer type
sort2dist.c:17: note: expected 'const char *' but argument is of type 'int *'
sort2dist.c:18: warning: implicit declaration of function 'strcmp'
sort2dist.c:27: warning: implicit declaration of function 'strcpy'
sort2dist.c:27: warning: incompatible implicit declaration of built-in function 'strcpy'
sort2dist.c:27: warning: passing argument 1 of 'strcpy' from incompatible pointer type
sort2dist.c:27: note: expected 'char *' but argument is of type 'int *'
sort2dist.c:27: warning: passing argument 2 of 'strcpy' from incompatible pointer type
sort2dist.c:27: note: expected 'const char *' but argument is of type 'int *'
sort2dist.c:28: warning: passing argument 1 of 'strcpy' from incompatible pointer type
sort2dist.c:28: note: expected 'char *' but argument is of type 'int *'
sort2dist.c:28: warning: passing argument 2 of 'strcpy' from incompatible pointer type
sort2dist.c:28: note: expected 'const char *' but argument is of type 'int *'
sort2dist.c:29: warning: passing argument 1 of 'strcpy' from incompatible pointer type
sort2dist.c:29: note: expected 'char *' but argument is of type 'int *'
sort2dist.c:29: warning: passing argument 2 of 'strcpy' from incompatible pointer type
sort2dist.c:29: note: expected 'const char *' but argument is of type 'int *'
sort2dist.c:8: warning: unused variable 'ch'
sort2dist.c:7: warning: unused variable 'u'
sort2dist.c:10: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
sort2dist.c:12: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result
Teste de evaluare:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ajutor |