Borderou de evaluare (job #2721312)
Utilizator | Data | 11 martie 2021 18:24:55 | |
---|---|---|---|
Problema | Cufar | 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:9:18: error: conflicting declaration 'long long int s'
long long i, s;
^
main.cpp:8:20: note: previous declaration as 'int s'
int cer, n, d, s, a, k, divizor, cnt;
^
main.cpp:55:30: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int' [-Wformat=]
fprintf( fout, "%lld", s );
^
main.cpp:14:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d", &cer, &n );
^
main.cpp:17:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d", &a, &k );
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !