Borderou de evaluare (job #2696557)
Utilizator | Data | 16 ianuarie 2021 10:02:47 | |
---|---|---|---|
Problema | Numerele lui Stirling | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void speta_1(int, int)':
main.cpp:13:33: warning: left operand of comma operator has no effect [-Wunused-value]
S[i][j] = -(i-1)*S[i-1,j] + S[i-1,j-1];
~^~
main.cpp:13:29: error: invalid operands of types 'int' and 'int [205]' to binary 'operator*'
S[i][j] = -(i-1)*S[i-1,j] + S[i-1,j-1];
~~~~~~^~~~~~~~~
main.cpp:13:44: warning: left operand of comma operator has no effect [-Wunused-value]
S[i][j] = -(i-1)*S[i-1,j] + S[i-1,j-1];
~^~
main.cpp: In function 'void speta_2(int, int)':
main.cpp:25:31: warning: left operand of comma operator has no effect [-Wunused-value]
s[i][j] = j * s[i - 1,j] + s[i - 1, j - 1];
~~^~~
main.cpp:25:25: error: invalid operands of types 'int' and 'int [205]' to binary 'operator*'
s[i][j] = j * s[i - 1,j] + s[i - 1, j - 1];
~~^~~~~~~~~~~~
main.cpp:25:44: warning: left operand of comma operator has no effect [-Wunused-value]
s[i][j] = j * s[i - 1,j] + s[i - 1, j - 1];
~~^~~
main.cpp: In function 'int main()':
main.cpp:40:26: error: 'S' cannot be used as a function
fout << S(n,m);
^
main.cpp:42:26: error: 's' cannot be used as a function
fout << s(n,m);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !