Borderou de evaluare (job #1574695)
Utilizator | Data | 20 ianuarie 2016 19:36:04 | |
---|---|---|---|
Problema | Rege | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:12: error: ‘int y1’ redeclared as different kind of symbol
int n,m,x1,y1,x2,y2,l;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:18:52: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d %d %d",&n,&m,&x1,&y1,&x2,&y2);
^
user.cpp:19:14: error: invalid types ‘int [1010][2][double(double)throw ()]’ for array subscript
dp[x1][y1][0]=1; l=1; bool ok;
^
user.cpp:16:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rege.in","r",stdin);
^
user.cpp:17:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rege.out","w",stdout);
^
user.cpp:18:53: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d %d",&n,&m,&x1,&y1,&x2,&y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !