Borderou de evaluare (job #1939564)
Utilizator | Data | 25 martie 2017 20:17:50 | |
---|---|---|---|
Problema | Xspe | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf (fi, "%d", n);
^
user.cpp:17:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
fscanf (fi, "%d", v[i]);
^
user.cpp:24:25: error: ‘max’ was not declared in this scope
pos = max(1, pos);
^
user.cpp:14:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf (fi, "%d", n);
^
user.cpp:17:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf (fi, "%d", v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !