Borderou de evaluare (job #2869639)

Utilizator vladxandrewVlad Andrei vladxandrew Data 11 martie 2022 18:36:40
Problema Reteta2 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:13:18: error: 'strlen' was not declared in this scope 13 | for (i = 0; i < strlen(s); ++i) | ^~~~~~ main.cpp:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <stdlib.h> +++ |+#include <cstring> 4 | using namespace std; main.cpp:26:11: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null] 26 | b[k] = NULL; | ^~~~ main.cpp:32:6: error: 'strtok' was not declared in this scope; did you mean 'strtoq'? 32 | p = strtok(s, "( )"); | ^~~~~~ | strtoq main.cpp:36:4: error: 'strcpy' was not declared in this scope 36 | strcpy(ing[++k], p); | ^~~~~~ main.cpp:36:4: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:45:9: error: 'strcmp' was not declared in this scope 45 | if (!strcmp(ing[i], ing[j])) | ^~~~~~ main.cpp:45:9: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:50:8: error: 'strcmp' was not declared in this scope 50 | if (strcmp(ing[i], ing[j]) > 0) | ^~~~~~ main.cpp:50:8: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:61:7: error: 'strcmp' was not declared in this scope 61 | if (strcmp(ing[i], ing[i-1])) | ^~~~~~ main.cpp:61:7: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:42:6: warning: unused variable 'z' [-Wunused-variable] 42 | int z(0); | ^ Non zero exit status: 1

Ceva nu functioneaza?