Borderou de evaluare (job #1469924)
Utilizator | Data | 9 august 2015 21:52:02 | |
---|---|---|---|
Problema | Cartite | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:19: error: size of array ‘Viz’ is too large
int Viz[NMAX][NMAX], Poz[NMAX];
^
user.cpp: In function ‘void solve1()’:
user.cpp:35:16: error: ‘Viz’ was not declared in this scope
if(Viz[Node.x + Dx[i]][Node.y + Dy[i]] == -2 && inside(Node.x + Dx[i], Node.y + Dy[i]) == 1){
^
user.cpp:29:9: warning: unused variable ‘Ans’ [-Wunused-variable]
int Ans = 0;
^
user.cpp: In function ‘void euler(int)’:
user.cpp:53:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(Poz[Node] < Graph[Node].size()){
^
user.cpp:54:12: error: ‘Viz’ was not declared in this scope
if(Viz[0][Graph[Node][Poz[Node]]] == 1)
^
user.cpp: In function ‘int main()’:
user.cpp:79:13: error: ‘Viz’ was not declared in this scope
Viz[Coord.x][Coord.y] = -1;
^
user.cpp:82:17: error: ‘Viz’ was not declared in this scope
Viz[Coord.x + Dx[j]][Coord.y + Dy[j]] = -1;
^
user.cpp:85:17: error: ‘Viz’ was not declared in this scope
Viz[Coord.x + 2 * Dx[j]][Coord.y + 2 * Dy[j]] = -1;
^
user.cpp:95:12: error: ‘Viz’ was not declared in this scope
if(Viz[Cs.x][Cs.y] >= -1)
^
user.cpp:97:12: error: ‘Viz’ was not declared in this scope
if(Viz[Cf.x][Cf.y] >= -1)
^
user.cpp:68:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cartite.in", "r", stdin);
^
user.cpp:69:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cartite.out", "w", stdout);
^
user.cpp:70:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &p);
^
user.cpp:71:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
^
user.cpp:72:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &Start.x, &Start.y);
^
user.cpp:73:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !