Borderou de evaluare (job #1397787)

Utilizator robx12lnLinca Robert robx12ln Data 23 martie 2015 19:12:48
Problema Sotron Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int SSM()’: user.cpp:6:20: error: ‘k’ was not declared in this scope for(int i=1;i<=k;i++) ^ user.cpp:7:1: error: expected primary-expression before ‘}’ token } ^ user.cpp:7:1: error: expected ‘;’ before ‘}’ token user.cpp:7:1: warning: no return statement in function returning non-void [-Wreturn-type] user.cpp: In function ‘int main()’: user.cpp:9:10: error: ‘n’ was not declared in this scope fin>>n; ^ user.cpp:10:10: error: ‘i’ was not declared in this scope for (i=1;i<=n;i++) ^ user.cpp:11:14: error: ‘j’ was not declared in this scope for (j=1;j<=n;j++) ^ user.cpp:12:18: error: ‘a’ was not declared in this scope fin>>a[i][j]; ^ user.cpp:14:10: error: ‘L’ was not declared in this scope for (L = 1; L <= n; L+=2) { ^ user.cpp:15:9: error: ‘k’ was not declared in this scope k=0; ^ user.cpp:16:9: error: ‘ok’ was not declared in this scope ok=0; ^ user.cpp:17:14: error: ‘i’ was not declared in this scope for (i = L, j =1; i!=0; ) { ^ user.cpp:17:21: error: ‘j’ was not declared in this scope for (i = L, j =1; i!=0; ) { ^ user.cpp:18:13: error: ‘v’ was not declared in this scope v[++k] = a[i][j]; ^ user.cpp:18:22: error: ‘a’ was not declared in this scope v[++k] = a[i][j]; ^ user.cpp:27:9: error: ‘maxim’ was not declared in this scope maxim=max( maxim , SSM(v) ); ^ user.cpp:27:32: error: ‘v’ was not declared in this scope maxim=max( maxim , SSM(v) ); ^

Ceva nu functioneaza?