Borderou de evaluare (job #3214628)
Utilizator | Data | 14 martie 2024 11:41:38 | |
---|---|---|---|
Problema | Infinite Pattern Matching | 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:21:14: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
21 | c1[k]=NULL;
| ^~~~
main.cpp:22:8: error: 'strrev' was not declared in this scope
22 | strrev(c1);
| ^~~~~~
main.cpp:23:8: error: 'strcat' was not declared in this scope
23 | strcat(c,c1);
| ^~~~~~
main.cpp:2:1: note: 'strcat' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include <fstream>
+++ |+#include <cstring>
2 |
main.cpp:25:10: error: 'strstr' was not declared in this scope
25 | cout<<strstr(c,s)-c+strlen(s);
| ^~~~~~
main.cpp:25:10: note: 'strstr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:25:24: error: 'strlen' was not declared in this scope
25 | cout<<strstr(c,s)-c+strlen(s);
| ^~~~~~
main.cpp:25:24: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !