Borderou de evaluare (job #2359075)
Utilizator | Data | 28 februarie 2019 16:33:29 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'matrix matMul(matrix, matrix)':
main.cpp:21:52: error: no match for 'operator[]' (operand types are 'matrix' and 'int')
ans.mat[i][j]=(ans.mat[i][j]+(a.mat[i][k]*b[k][j])%mod)%mod;
^
main.cpp:17:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;i<MAX_N;i++)
^~~
main.cpp:23:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
return ans;
^~~~~~
main.cpp: In function 'int main()':
main.cpp:50:21: warning: left operand of comma operator has no effect [-Wunused-value]
ans=matPow[base,n];
^
main.cpp:50:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
ans=matPow[base,n];
^
main.cpp:50:22: error: no match for 'operator=' (operand types are 'matrix' and 'matrix(matrix, int)')
main.cpp:8:8: note: candidate: constexpr matrix& matrix::operator=(const matrix&)
struct matrix{int mat[MAX_N][MAX_N];};
^~~~~~
main.cpp:8:8: note: no known conversion for argument 1 from 'matrix(matrix, int)' to 'const matrix&'
main.cpp:8:8: note: candidate: constexpr matrix& matrix::operator=(matrix&&)
main.cpp:8:8: note: no known conversion for argument 1 from 'matrix(matrix, int)' to 'matrix&&'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !