Borderou de evaluare (job #2412548)
Utilizator | Data | 22 aprilie 2019 12:57:19 | |
---|---|---|---|
Problema | Colorfulconflict | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:35: error: expected ')' before ']' token
if ((lmax[i1]]<lmin[i2])||(lmax[i2]]<lmin[i1]) ||(cmax[i1]]<cmin[i2])||(cmax[i2]<cmin[i1]))
^
main.cpp:59:1: error: expected ')' at end of input
}
^
main.cpp:59:1: error: expected statement at end of input
main.cpp:36:22: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ((lmax[i1]]<lmin[i2])||(lmax[i2]]<lmin[i1]) ||(cmax[i1]]<cmin[i2])||(cmax[i2]<cmin[i1]))
^~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
main.cpp:59:1: error: expected '}' at end of input
}
^
main.cpp:59:1: error: expected '}' at end of input
main.cpp:9:38: warning: unused variable 'j1' [-Wunused-variable]
int n,i,minn=1000005,maxx=0,j,i1,j1,i2,j2,i3,j3;
^~
main.cpp:9:44: warning: unused variable 'j2' [-Wunused-variable]
int n,i,minn=1000005,maxx=0,j,i1,j1,i2,j2,i3,j3;
^~
main.cpp:9:47: warning: unused variable 'i3' [-Wunused-variable]
int n,i,minn=1000005,maxx=0,j,i1,j1,i2,j2,i3,j3;
^~
main.cpp:9:50: warning: unused variable 'j3' [-Wunused-variable]
int n,i,minn=1000005,maxx=0,j,i1,j1,i2,j2,i3,j3;
^~
main.cpp:59:1: error: expected '}' at end of input
}
^
main.cpp:7:45: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("colorfulconflict.in","r",stdin);
^
main.cpp:8:47: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("colorfulconflict.out","w",stdout);
^
main.cpp:10:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:15:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i][j]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !