Borderou de evaluare (job #973999)
Utilizator | Data | 16 iulie 2013 11:38:12 | |
---|---|---|---|
Problema | Palindrom | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void largestPalindrome(std::string)’:
user.cpp:13:29: error: cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string<char>}’ through ‘...’
printf ("%s\n", s);
^
user.cpp:13:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::string {aka std::basic_string<char>}’ [-Wformat=]
user.cpp:18:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:51:20: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[200001]’ [-Wformat=]
scanf ("%s", &a);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !