Borderou de evaluare (job #1536705)
Utilizator | Data | 26 noiembrie 2015 15:55:46 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool comp(ingredient, ingredient)’:
user.cpp:21:32: error: ‘strcmp’ was not declared in this scope
return strcmp(a.nume,b.nume)<0;
^
user.cpp: In function ‘int main()’:
user.cpp:32:28: error: ‘strlen’ was not declared in this scope
for(int i=0; i<strlen(c); i++)
^
user.cpp: In function ‘bool comp(ingredient, ingredient)’:
user.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:29:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reteta2.in","r",stdin);
^
user.cpp:30:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reteta2.out","w",stdout);
^
user.cpp:31:42: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(c,1001,fopen("reteta2.in","r"));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !