Borderou de evaluare (job #2251625)

Utilizator cyg_SerbanBFlorin Gheorghe cyg_SerbanB Data 1 octombrie 2018 19:56:43
Problema Entropy Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:38: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=] scanf("%s%s%s",&ch1,&ch2,&ch3); ^ user.cpp:14:38: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[500]’ [-Wformat=] user.cpp:14:38: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[500]’ [-Wformat=] user.cpp:9:13: warning: unused variable ‘j’ [-Wunused-variable] int t,i,j,a,b,c; ^ user.cpp:10:10: warning: unused variable ‘ch’ [-Wunused-variable] char ch; ^~ user.cpp:7:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("entropy.in","r",stdin); ^ user.cpp:8:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("entropy.out","w",stdout); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&t); ^ user.cpp:14:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s%s%s",&ch1,&ch2,&ch3); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms796kbOK!100
Punctaj total100

Ceva nu functioneaza?