Borderou de evaluare (job #1486659)
Utilizator | Data | 15 septembrie 2015 12:33:23 | |
---|---|---|---|
Problema | Restante | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:18: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘char*’ for argument ‘1’ to ‘char* gets(char*)’
gets(s[i]),sort(s[i].begin(),s[i].end());
^
user.cpp:14:9: error: ‘l’ was not declared in this scope
l++;
^
user.cpp:15:17: error: ‘l’ was not declared in this scope
printf("%d",l);
^
user.cpp:8:87: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("restante.in","r",stdin),freopen("restante.out","w",stdout),scanf("%d",&n);
^
user.cpp:8:87: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:8:87: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !