Borderou de evaluare (job #1168647)

Utilizator danalexandruDan Alexandru danalexandru Data 9 aprilie 2014 10:13:39
Problema ZParcurgere Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void zparc(int, int, int)’: user.cpp:12:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (lot=1) ^ user.cpp:14:19: error: ‘val’ was not declared in this scope a[x][y]=++val; ^ user.cpp:18:12: error: ‘lat’ was not declared in this scope zp(x,y,lat); ^ user.cpp:18:15: error: ‘zp’ was not declared in this scope zp(x,y,lat); ^ user.cpp: In function ‘int main()’: user.cpp:26:5: error: ‘cin’ was not declared in this scope cin>>n>>k; ^ user.cpp:28:20: error: expected primary-expression before ‘)’ token for(i=1;i<=) ^ user.cpp:28:20: error: expected ‘;’ before ‘)’ token user.cpp:29:11: error: too few arguments to function ‘void zparc(int, int, int)’ zparc() ^ user.cpp:10:6: note: declared here void zparc(int x, int y, int lot) ^ user.cpp:31:5: error: expected ‘;’ before ‘return’ return 0; ^ user.cpp:25:15: warning: unused variable ‘j’ [-Wunused-variable] int n,k,i,j,l; ^

Ceva nu functioneaza?