Pagini recente » Borderou de evaluare (job #3198509) | Borderou de evaluare (job #864647) | Borderou de evaluare (job #501703) | Borderou de evaluare (job #2763891) | Borderou de evaluare (job #1498015)
Borderou de evaluare (job #1498015)
Raport evaluator
Compilare:
user.cpp: In function ‘long long unsigned int cautare_binara(long long unsigned int, long long unsigned int, int)’:
user.cpp:27:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(aux==p)
^
user.cpp:37:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(aux>p)
^
user.cpp:39:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(aux<p)
^
user.cpp: In function ‘int main()’:
user.cpp:47:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%d",&p);
^
user.cpp:49:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d\n",medie);
^
user.cpp: In function ‘long long unsigned int cautare_binara(long long unsigned int, long long unsigned int, int)’:
user.cpp:42:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:45:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fact.in","r",stdin);
^
user.cpp:46:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fact.out","w",stdout);
^
user.cpp:47:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 408kb | Fisier de iesire lipsa | 0 |
Punctaj total | 0 |