Borderou de evaluare (job #2976332)

Utilizator Paul0516Berindeie Paul Paul0516 Data 8 februarie 2023 22:57:13
Problema Pali Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:26: error: 'strlen' was not declared in this scope 15 | for (int i = 0; i <= strlen(c); i = i + 1) | ^~~~~~ main.cpp:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 2 | #include <fstream> +++ |+#include <cstring> 3 | main.cpp:17:13: error: 'strchr' was not declared in this scope 17 | p = strchr(c, 'a'); | ^~~~~~ main.cpp:17:13: note: 'strchr' is defined in header '<cstring>'; did you forget to '#include <cstring>'? Non zero exit status: 1

Ceva nu functioneaza?