Borderou de evaluare (job #2369947)
Utilizator | Data | 6 martie 2019 09:56:12 | |
---|---|---|---|
Problema | Sarpe2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int, int)':
main.cpp:20:52: warning: NULL used in arithmetic [-Wpointer-arith]
if(s[x1][y1]=='0'||s[x1][y1]=='\n'||s[x1][y1]==NULL)continue;
^~~~
main.cpp: In function 'int main()':
main.cpp:38:18: error: 'gets' was not declared in this scope
gets(s[i]+1);
^
main.cpp:66:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(v[x2][y2]!=i)
^~
main.cpp:68:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(grad[x2][y2]==2)break;
^~
main.cpp:79:10: warning: left operand of comma operator has no effect [-Wunused-value]
x1,y1,ok=1;
^~
main.cpp:79:16: warning: right operand of comma operator has no effect [-Wunused-value]
x1,y1,ok=1;
^
main.cpp:95:11: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(v[x2][y2]!=i)
^~
main.cpp:97:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(grad[x2][y2]==2)break;
^~
main.cpp:33:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sarpe.in","r",stdin);
^
main.cpp:34:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sarpe.out","w",stdout);
^
main.cpp:36:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&m,&n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !