Borderou de evaluare (job #3200167)

Utilizator CraiuAndreiCraiu Andrei David CraiuAndrei Data 3 februarie 2024 18:36:35
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int Nasol(char*, char*)': main.cpp:16:23: error: 'strlen' was not declared in this scope 16 | for(lga=0;lga<strlen(a) && lgb<strlen(b);lga++) | ^~~~~~ main.cpp:4:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <algorithm> +++ |+#include <cstring> 4 | using namespace std; main.cpp:18:20: error: 'strlen' was not declared in this scope 18 | if (lgb == strlen(b))return 1; | ^~~~~~ main.cpp:18:20: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp: In function 'int main()': main.cpp:29:22: error: 'strlen' was not declared in this scope 29 | lg = strlen(s[i]); | ^~~~~~ main.cpp:29:22: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:37:34: error: 'strcmp' was not declared in this scope 37 | else if (strcmp(s[i], sol1) < 1) | ^~~~~~ main.cpp:37:34: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:53:47: error: 'strlen' was not declared in this scope 53 | if (i == j || strlen(s[i]) > strlen(s[j]))continue; | ^~~~~~ main.cpp:53:47: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'? main.cpp:24:23: warning: unused variable 'is' [-Wunused-variable] 24 | int i, j, ok, is, js; | ^~ main.cpp:24:27: warning: unused variable 'js' [-Wunused-variable] 24 | int i, j, ok, is, js; | ^~ Non zero exit status: 1

Ceva nu functioneaza?