Borderou de evaluare (job #2251624)
Utilizator | Data | 1 octombrie 2018 19:56:19 | |
---|---|---|---|
Problema | Entropy | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de 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:48:17: error: expected ‘;’ before ‘printf’
printf("r");
^~~~~~
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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !