Borderou de evaluare (job #2183598)

Utilizator Vaida_Radu_AndreiVaida Radu Andrei Vaida_Radu_Andrei Data 23 martie 2018 11:49:28
Problema Arhipelag2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:12:21: error: conflicting declaration ‘int m’ int m[1000][1000],n,m,lv; ^ user.cpp:12:5: note: previous declaration as ‘int m [1000][1000]’ int m[1000][1000],n,m,lv; ^ user.cpp: In function ‘void citire()’: user.cpp:17:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int (*)[1000][1000]’ [-Wformat=] scanf("%d%d",&n,&m); ^ user.cpp:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(j=0;j<m;j++) ^ user.cpp: In function ‘void umsus(int)’: user.cpp:53:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1) ^ user.cpp:60:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1) ^ user.cpp:62:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(v[p].c2+x>m) ^ user.cpp:63:18: error: invalid conversion from ‘int (*)[1000]’ to ‘int’ [-fpermissive] maxx=m; ^ user.cpp:66:9: error: ‘else’ without a previous ‘if’ else ^~~~ user.cpp:69:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1) ^ user.cpp: In function ‘void umjos(int)’: user.cpp:81:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1) ^ user.cpp:88:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1) ^ user.cpp:90:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(v[p].c2+x>m) ^ user.cpp:91:18: error: invalid conversion from ‘int (*)[1000]’ to ‘int’ [-fpermissive] maxx=m; ^ user.cpp:94:9: error: ‘else’ without a previous ‘if’ else ^~~~ user.cpp:97:21: error: ‘j’ was not declared in this scope if(m[i][j]>-1)

Ceva nu functioneaza?