0_0_30510680_7413.cpp:18:11: error: 'int sam::val(int)' cannot be overloaded int val(int c){return l[c]-l[f[c]];} ^ 0_0_30510680_7413.cpp:11:11: error: with 'int sam::val(int)' int val(int c){return l[c]-l[f[c]];} ^