Record Detail

Compile Error

/in/count.cpp: In function 'int countNumDecimals(const string&)':
/in/count.cpp:7:31: error: 'strlen' was not declared in this scope
     char *p = find(str, str + strlen(str), '.')
                               ^~~~~~
/in/count.cpp:7:31: note: suggested alternative: 'mbrlen'
     char *p = find(str, str + strlen(str), '.')
                               ^~~~~~
                               mbrlen
/in/count.cpp:24:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/count.cpp:7:11: warning: unused variable 'p' [-Wunused-variable]
     char *p = find(str, str + strlen(str), '.')
           ^
/in/count.cpp:26:1: error: expected '}' at end of input
 }
 ^

Information

Submit By
Type
Submission
Homework
Final Exam
Language
C++
Submit At
2021-08-05 15:36:44
Judged At
2021-08-11 10:13:59
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes