Borderou de evaluare (job #3346875)
| Utilizator | Data | 15 martie 2026 12:55:57 | |
|---|---|---|---|
| Problema | CheatGPT | Status | done |
| Runda | Universitatea Tehnică din Cluj-Napoca - 2026 - Concurs | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:33:32: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
33 | strcat(str, b[first]);
| ~~~~~~~^
| |
| char
In file included from /usr/include/c++/12.2.1/cstring:42,
from main.cpp:2:
/usr/include/string.h:149:70: note: initializing argument 2 of 'char* strcat(char*, const char*)'
149 | extern char *strcat (char *__restrict __dest, const char *__restrict __src)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.cpp:34:27: error: 'second' was not declared in this scope
34 | strcat(str, b[second]);
| ^~~~~~
main.cpp:24:13: warning: unused variable 'a_size' [-Wunused-variable]
24 | int a_size = strlen(a);
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
