Borderou de evaluare (job #1586768)
Utilizator | Data | 1 februarie 2016 17:22:38 | |
---|---|---|---|
Problema | Defrag | 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:21: error: expected ‘)’ before ‘;’ token
for(i=1; i<=c; ++i;)
^
user.cpp:14:22: error: expected primary-expression before ‘)’ token
for(i=1; i<=c; ++i;)
^
user.cpp:14:22: error: expected ‘;’ before ‘)’ token
user.cpp:11:9: warning: unused variable ‘gout’ [-Wunused-variable]
FILE *gout=fopen("defrag.out", "w");
^
user.cpp:12:22: warning: unused variable ‘j’ [-Wunused-variable]
int v, p, s, c, i, j, x, y;
^
user.cpp:12:28: warning: unused variable ‘y’ [-Wunused-variable]
int v, p, s, c, i, j, x, y;
^
user.cpp:13:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf (fin, "%d%d%d%d", &v, &p, &s, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !