Borderou de evaluare (job #2131220)
Utilizator | Data | 14 februarie 2018 15:53:37 | |
---|---|---|---|
Problema | Kdrum | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:18: error: ‘int y1’ redeclared as different kind of symbol
int L, C, K, x1, y1, x2, y2, park[51][51], visited[51][51];
^
In file included from /usr/include/features.h:367:0,
from /usr/include/assert.h:35,
from /usr/include/c++/5/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int BFS(std::pair<int, int>)’:
user.cpp:36:18: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
if(I < 1 | I > L | J < 1 | J > C | visited[I][J])
^
user.cpp:36:34: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
if(I < 1 | I > L | J < 1 | J > C | visited[I][J])
^
user.cpp:36:42: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses]
if(I < 1 | I > L | J < 1 | J > C | visited[I][J])
^
user.cpp: In function ‘int main()’:
user.cpp:53:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘double (*)(double) throw ()’ [-Wformat=]
scanf("%d %d %d %d %d %d %d", &L, &C, &K, &x1, &y1, &x2, &y2);
^
user.cpp:63:30: error: could not convert ‘{x1, y1}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<int, int>’
printf("%d", BFS({x1, y1}));
^
user.cpp: In function ‘int BFS(std::pair<int, int>)’:
user.cpp:46:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:50:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kdrum.in", "r", stdin);
^
user.cpp:51:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kdrum.out", "w", stdout);
^
user.cpp:53:66: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d %d %d", &L, &C, &K, &x1, &y1, &x2, &y2);
^
user.cpp:59:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &park[i][j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !