Borderou de evaluare (job #2198773)

Utilizator WrightArcdeoBarascu Mihail Iulian WrightArcdeo Data 25 aprilie 2018 12:55:33
Problema Joc 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:14:10: error: redeclaration of ‘int max’ int max(n,m); ^ user.cpp:8:18: note: ‘int max’ previously declared here int n, m, j, i, max, M[1000][1000], maxpozi, maxpozj, count=0, val, truemaxpozi, truemaxpozj; ^~~ user.cpp:8:18: warning: unused variable ‘max’ [-Wunused-variable] user.cpp:8:38: warning: unused variable ‘maxpozi’ [-Wunused-variable] int n, m, j, i, max, M[1000][1000], maxpozi, maxpozj, count=0, val, truemaxpozi, truemaxpozj; ^~~~~~~ user.cpp:8:47: warning: unused variable ‘maxpozj’ [-Wunused-variable] int n, m, j, i, max, M[1000][1000], maxpozi, maxpozj, count=0, val, truemaxpozi, truemaxpozj; ^~~~~~~ user.cpp:8:56: warning: unused variable ‘count’ [-Wunused-variable] int n, m, j, i, max, M[1000][1000], maxpozi, maxpozj, count=0, val, truemaxpozi, truemaxpozj; ^~~~~ user.cpp: In function ‘int max(int, int)’: user.cpp:20:3: error: return-statement with no value, in function returning ‘int’ [-fpermissive] return; ^~~~~~ user.cpp:21:14: error: ‘n’ was not declared in this scope for (i=0;i<n;i++) ^ user.cpp:22:14: error: ‘m’ was not declared in this scope for (j=0;j<m;j++) ^ user.cpp:23:7: error: ‘M’ was not declared in this scope if (M[i][j]>max) ^ user.cpp:26:8: error: ‘count’ was not declared in this scope if (count==0) ^~~~~ user.cpp:28:4: error: ‘truemaxpozi’ was not declared in this scope truemaxpozi=maxpozj=i; ^~~~~~~~~~~ user.cpp:28:16: error: ‘maxpozj’ was not declared in this scope truemaxpozi=maxpozj=i; ^~~~~~~ user.cpp:29:4: error: ‘truemaxpozj’ was not declared in this scope truemaxpozj=maxpozj=j; ^~~~~~~~~~~ user.cpp:33:4: error: ‘maxpozj’ was not declared in this scope maxpozj=i; ^~~~~~~ user.cpp:39:7: error: ‘count’ was not declared in this scope if (count%2==0) ^~~~~ user.cpp:41:3: error: ‘val’ was not declared in this scope val+=max;

Ceva nu functioneaza?