Borderou de evaluare (job #2369596)
Utilizator | Data | 6 martie 2019 03:51:58 | |
---|---|---|---|
Problema | MarceLand | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:21: error: 'int index [105][105]' redeclared as different kind of symbol
int index[NMAX][NMAX];
^
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:3:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int dfs(point)':
main.cpp:55:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[node.x][node.y] = anyfountain;
^
main.cpp:35:11: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^
main.cpp: In function 'int main()':
main.cpp:98:24: error: 'gets' was not declared in this scope
gets(s[i]+1);
^
main.cpp:127:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
dfs2(st[i] , index[st[i].x][st[i].y]);
^
main.cpp:83:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("marceland.in","r",stdin);
^
main.cpp:84:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("marceland.out","w",stdout);
^
main.cpp:86:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
main.cpp:96:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&N,&M);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !