Borderou de evaluare (job #2452503)
Utilizator | Data | 30 august 2019 23:21:14 | |
---|---|---|---|
Problema | Balbaiala | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int sub_sir(char*, char*, unsigned int)':
main.cpp:8:18: error: 'strlen' was not declared in this scope
if (max*strlen(B)>strlen(A))
^
main.cpp:10:39: error: 'strlen' was not declared in this scope
for (unsigned int i = 0; i < strlen(B); i++)
^
main.cpp: In function 'int main()':
main.cpp:38:43: error: 'malloc' was not declared in this scope
A = malloc(sizeof(char) * lungime_sir + 1);
^
main.cpp:60:8: error: 'free' was not declared in this scope
free(A);
^
main.cpp:34:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &lungime_sir);
^
main.cpp:36:33: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &nr_subsiruri);
^
main.cpp:41:21: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%s", A);
^
main.cpp:47:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%s", B);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !