Borderou de evaluare (job #970590)
| Utilizator | Data | 7 iulie 2013 14:13:31 | |
|---|---|---|---|
| Problema | Suma si numarul divizorilor | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:65:26: error: invalid initialization of reference of type ‘long long int&’ from expression of type ‘int’
SumaSiNrDiv(n, s, nrDiv);
^
user.cpp:20:6: error: in passing argument 2 of ‘void SumaSiNrDiv(long long int, long long int&, int&)’
void SumaSiNrDiv(long long int n, long long int &s, int &nrDiv)
^
user.cpp:66:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(g, "%ld %ld \n", nrDiv, s%9973);
^
user.cpp:66:41: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
