Borderou de evaluare (job #1833962)
Utilizator | Data | 23 decembrie 2016 16:14:40 | |
---|---|---|---|
Problema | Dictree | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int comp(int, int)’:
user.cpp:10:24: error: ‘strcmp’ was not declared in this scope
if(strcmp(v[a],v[b])<0)
^
user.cpp: In function ‘int main()’:
user.cpp:23:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[105]’ [-Wformat=]
scanf("%s",&v[i]);
^
user.cpp:26:20: warning: NULL used in arithmetic [-Wpointer-arith]
while(v[i][k]!=NULL)
^
user.cpp:18:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dictree.in","r",stdin);
^
user.cpp:19:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dictree.out","w",stdout);
^
user.cpp:20:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^
user.cpp:23:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !