Borderou de evaluare (job #1486658)
Utilizator | Data | 15 septembrie 2015 12:32:38 | |
---|---|---|---|
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:23: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
scanf("%s",s[i]),sort(s[i].begin(),s[i].end());
^
user.cpp:10:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::string {aka std::basic_string<char>}’ [-Wformat=]
scanf("%s",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]
user.cpp:10:55: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s[i]),sort(s[i].begin(),s[i].end());
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !