Borderou de evaluare (job #2666690)
Utilizator | Data | 2 noiembrie 2020 13:32:50 | |
---|---|---|---|
Problema | Suma divizorilor | 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:48:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
fscanf( fin, "%d%d", &a, &b );
^
main.cpp:48:33: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
main.cpp:51:29: error: cannot convert 'long long int*' to 'int*' for argument '2' to 'void descompunere(int, int*)'
descompunere( a, &nrdiv );
^
main.cpp:64:28: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
fprintf( fout, "%d", s );
^
main.cpp:48:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d", &a, &b );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !