Borderou de evaluare (job #767321)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Datorii | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 mar. 2024 18:30:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int search(char*)':
main.cpp:31:13: error: 'strcmp' was not declared in this scope
31 | if (strcmp(firme[m].nume, s) < 0)
| ^~~~~~
main.cpp:4:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <fstream>
+++ |+#include <cstring>
4 | #include <string>
main.cpp:43:20: error: 'strcmp' was not declared in this scope
43 | if (dr <= n && strcmp(firme[dr].nume, s) == 0)
| ^~~~~~
main.cpp:43:20: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:54:5: error: 'strcpy' was not declared in this scope
54 | strcpy(firme[dr].nume, s);
| ^~~~~~
main.cpp:54:5: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'int main()':
main.cpp:76:18: error: 'strlen' was not declared in this scope
76 | int lg = strlen(line); //lungimea randului
| ^~~~~~
main.cpp:76:18: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:91:19: error: 'strchr' was not declared in this scope
91 | char* p = strchr(line, '>'); //cautam caracterul '>' si pozitia acestuia
| ^~~~~~
main.cpp:91:19: note: 'strchr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?