Borderou de evaluare (job #1274270)
Utilizator | Data | 23 noiembrie 2014 17:50:45 | |
---|---|---|---|
Problema | Taste | 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:9:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f, "%d%d", &x, &y);
^
user.cpp:9:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:23:24: error: cannot convert ‘FILE* {aka _IO_FILE*}’ to ‘const char*’ for argument ‘1’ to ‘int printf(const char*, ...)’
printf(g, "1 %d", ysol);
^
user.cpp:8:18: warning: unused variable ‘xsol’ [-Wunused-variable]
long long x, y, xsol, ysol, yval;
^
user.cpp:9:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d%d", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !