Borderou de evaluare (job #2696574)
| Utilizator | Data | 16 ianuarie 2021 10:14:16 | |
|---|---|---|---|
| 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()':
main.cpp:13:31: warning: left operand of comma operator has no effect [-Wunused-value]
S[i][j] =(1-i)*S[i-1,j] + S[i-1,j-1];
~^~
main.cpp:13:27: error: invalid operands of types 'int' and 'long long int [205]' to binary 'operator*'
S[i][j] =(1-i)*S[i-1,j] + S[i-1,j-1];
~~~~~^~~~~~~~~
main.cpp:13:42: warning: left operand of comma operator has no effect [-Wunused-value]
S[i][j] =(1-i)*S[i-1,j] + S[i-1,j-1];
~^~
main.cpp: In function 'void speta_2()':
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 'long long 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:42:26: error: 'S' cannot be used as a function
fout << S(n,m) << "\n";
^
main.cpp:44:26: error: 's' cannot be used as a function
fout << s(n,m) << "\n";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
