Pagini recente » Borderou de evaluare (job #1006677) | Borderou de evaluare (job #3146688) | Borderou de evaluare (job #3281298) | Borderou de evaluare (job #268718) | Borderou de evaluare (job #2251625)
Borderou de evaluare (job #2251625)
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 |
1 | 8ms | 796kb | OK! | 100 |
Punctaj total | 100 |