Borderou de evaluare (job #2856024)
Utilizator | Data | 23 februarie 2022 11:56:39 | |
---|---|---|---|
Problema | Interesant | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool subsir(char*, char*)':
main.cpp:21:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i = 0; i < strlen(b); i++){
| ~~^~~~~~~~~~~
main.cpp: In function 'void cerinta1()':
main.cpp:30:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
30 | if(strlen(mat[i]) > len){
| ~~~~~~~~~~~~~~~^~~~~
main.cpp:34:27: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
34 | if(strlen(mat[i]) == len && strcmp(mat[i], maxim) < 0){
| ~~~~~~~~~~~~~~~^~~~~~
main.cpp: In function 'void cerinta2()':
main.cpp:54:30: error: invalid conversion from 'char' to 'char*' [-fpermissive]
54 | strcpy(inter[nr++],mat[j]);
| ~~~~~~~~~~^
| |
| char
In file included from /usr/include/c++/10/cstring:42,
from main.cpp:3:
/usr/include/string.h:122:39: note: initializing argument 1 of 'char* strcpy(char*, const char*)'
122 | extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
| ~~~~~~~~~~~~~~~~~^~~~~~
main.cpp:42:9: warning: unused variable 'k' [-Wunused-variable]
42 | int k = 0, nr = 0;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !