Borderou de evaluare (job #2873827)
Utilizator | Data | 19 martie 2022 11:48:34 | |
---|---|---|---|
Problema | Tastatură defectă | Status | done |
Runda | Universitatea Tehnică din Cluj-Napoca - 2022 - Concurs | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:11: error: 'strcmp' was not declared in this scope
17 | while(strcmp(s1,"*")!=0)
| ^~~~~~
main.cpp:4:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
3 | #include <fstream>
+++ |+#include <cstring>
4 | using namespace std;
main.cpp:20:14: error: 'strlen' was not declared in this scope
20 | lung=strlen(s1);
| ^~~~~~
main.cpp:20:14: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:22:16: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
22 | rez[0]=NULL;
| ^~~~
main.cpp:45:24: error: 'strchr' was not declared in this scope
45 | if(strchr(rez,lit1)==NULL) //litera noua
| ^~~~~~
main.cpp:45:24: note: 'strchr' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp:49:25: error: 'strcat' was not declared in this scope
49 | strcat(rez,aux);
| ^~~~~~
main.cpp:49:25: note: 'strcat' 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 !