Borderou de evaluare (job #722981)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Criptic (clasa a 7-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 6 iun. 2023 18:06:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:48:31: error: expected ']' before ')' token
48 | add(v[chng(s[0]),c);
| ^
| ]
main.cpp:48:29: warning: array subscript has type 'char' [-Wchar-subscripts]
48 | add(v[chng(s[0]),c);
| ~~~~~~~~~~^~
main.cpp:48:16: error: too few arguments to function 'void add(nod*&, char)'
48 | add(v[chng(s[0]),c);
| ~~~^~~~~~~~~~~~~~~~
main.cpp:15:6: note: declared here
15 | void add(nod* &v, char x) {
| ^~~