Borderou de evaluare (job #1029230)
Utilizator | Data | 15 noiembrie 2013 10:24:34 | |
---|---|---|---|
Problema | Kbiti | 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:24:19: error: cannot convert ‘std::string {aka std::basic_string<char>}’ to ‘const char*’ for argument ‘1’ to ‘size_t strlen(const char*)’
n=strlen(s)-2;
^
user.cpp:28:22: warning: NULL used in arithmetic [-Wpointer-arith]
while (s[j]!=NULL)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !