Borderou de evaluare (job #1681698)

Utilizator bob123bobelus bob bob123 Data 9 aprilie 2016 17:34:57
Problema Tsunami Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:21: error: expected unqualified-id before ‘,’ token short k,i,j,n,m,l,c,,a[1002][1002]; ^ user.cpp: In function ‘void Fill(short int, short int)’: user.cpp:10:13: error: ‘q’ was not declared in this scope if((a[l[q]][c[q]]<v&&viz[l[q]][c[q]]==0)&&a[l[q]][c[q]]>0){ ^ user.cpp: In function ‘int main()’: user.cpp:25:34: warning: format ‘%hd’ expects argument of type ‘short int*’, but argument 4 has type ‘int*’ [-Wformat=] scanf("%hd%hd%hd", &n, &m, &v); ^ user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tsunami.in", "r", stdin); ^ user.cpp:24:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tsunami.out", "w", stdout); ^ user.cpp:25:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd%hd%hd", &n, &m, &v); ^ user.cpp:28:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%hd", &a[i][j]); ^

Ceva nu functioneaza?