Borderou de evaluare (job #2506689)
Utilizator | Data | 8 decembrie 2019 17:10:15 | |
---|---|---|---|
Problema | Text3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:37:23: warning: array subscript has type 'char' [-Wchar-subscripts]
dp[1]=1; lit[l2[1]]=1;
^
main.cpp:41:38: warning: array subscript has type 'char' [-Wchar-subscripts]
int &endOf1stLetSeq=lit[l1[i]];
^
main.cpp:41:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
int &endOf1stLetSeq=lit[l1[i]];
~~~~~~~~~^
main.cpp:45:38: warning: array subscript has type 'char' [-Wchar-subscripts]
int &endof2ndLetSeq=lit[l2[i]];
^
main.cpp:45:38: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int'
int &endof2ndLetSeq=lit[l2[i]];
~~~~~~~~~^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !