Borderou de evaluare (job #2024214)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 20 septembrie 2017 09:50:26
Problema Randuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:30:33: error: ‘n’ was not declared in this scope for(int i = 1; i <= n; i++) ^ user.cpp:31:33: error: ‘m’ was not declared in this scope for(int j = 1; j <= m; j++) ^ user.cpp:32:20: error: ‘a’ was not declared in this scope if(a[i] == b[j]) t[i][j] = 1 + t[i-1][j-1]; ^ user.cpp:32:28: error: ‘b’ was not declared in this scope if(a[i] == b[j]) t[i][j] = 1 + t[i-1][j-1]; ^ user.cpp:34:16: error: expected primary-expression before ‘)’ token if() ^ user.cpp:35:9: error: expected primary-expression before ‘}’ token } ^ user.cpp:35:9: error: expected ‘;’ before ‘}’ token user.cpp:23:9: warning: unused variable ‘nre’ [-Wunused-variable] int nre=0; ^ user.cpp:37:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?