Borderou de evaluare (job #1428348)
Utilizator | Data | 4 mai 2015 11:02:02 | |
---|---|---|---|
Problema | Kinetic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void C(int, int)’:
user.cpp:36:50: error: expected ‘)’ before ‘]’ token
if(j>r||(i<=m&&a[i]<a[j]||(a[i]==a[j]&&b[i]<b[j]])))
^
user.cpp:36:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(j>r||(i<=m&&a[i]<a[j]||(a[i]==a[j]&&b[i]<b[j]])))
^
user.cpp:37:38: error: expected ‘)’ before ‘;’ token
c[k]=a[i],o[k]=b[i],p[k++]=poz[i++];
^
user.cpp:37:38: error: expected ‘)’ before ‘;’ token
user.cpp: In function ‘int main()’:
user.cpp:46:24: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:46:24: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:46:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:48:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i],&b[i]),poz[i]=i;
^
user.cpp:55:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&x[i],&y[i],&z[i]),w[i]=i;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !