Borderou de evaluare (job #1976822)
Utilizator | Data | 4 mai 2017 12:19:43 | |
---|---|---|---|
Problema | Puzzle3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cit(int)’:
user.cpp:10:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100010]’ [-Wformat=]
scanf ("%s", &tab[trm]);
^
user.cpp:11:5: error: ‘lg’ was not declared in this scope
lg[trm]=strlen(tab[trm]);
^
user.cpp:11:28: error: ‘strlen’ was not declared in this scope
lg[trm]=strlen(tab[trm]);
^
user.cpp: In function ‘int main()’:
user.cpp:26:14: error: ‘trm’ was not declared in this scope
for (trm=1; trm<=3; ++trm)
^
user.cpp: In function ‘void cit(int)’:
user.cpp:10:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%s", &tab[trm]);
^
user.cpp: In function ‘int main()’:
user.cpp:20:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("puzzle3.in","r",stdin);
^
user.cpp:21:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("puzzle3.out","w",stdout);
^
user.cpp:23:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",&ts);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !