Borderou de evaluare (job #2918922)
Utilizator | Data | 14 august 2022 09:00:47 | |
---|---|---|---|
Problema | Piramida | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:56: error: 'M' was not declared in this scope
13 | for (j=1; j<=i; ++j) c[i][j]=(c[i-1][j]+c[i-1][j-1])%M;
| ^
main.cpp:18:18: error: 'M' was not declared in this scope
18 | for (j=c[p][i]%M; j<=n; ++j) a[j]=(a[j]+a[j-c[p][i]])%10000;
| ^
main.cpp:19:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
19 | printf("%d\n",a[n]);
| ~^ ~~~~
| | |
| int long long int
| %lld
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !