Borderou de evaluare (job #2390927)
Utilizator | Data | 28 martie 2019 15:00:01 | |
---|---|---|---|
Problema | CMMDC | 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:18:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
fscanf(in, "%d %d", &a, &b);
^
main.cpp:18:31: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long int*' [-Wformat=]
main.cpp:22:5: error: expected ';' before '}' token
}
^
main.cpp:25:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
fprintf(out, "%d", cmmdc);
^
main.cpp:18:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%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 !