Borderou de evaluare (job #2348919)
| Utilizator | Data | 20 februarie 2019 08:37:24 | |
|---|---|---|---|
| Problema | Range minimum query | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void S(int)':
main.cpp:16:54: error: expected ':' before ';' token
int i,d=x>99999?7:x>9999?6:x>999?5?x>99?4:x>9?3:2;
^
main.cpp:16:54: error: expected primary-expression before ';' token
main.cpp:16:54: error: expected ':' before ';' token
main.cpp:16:54: error: expected primary-expression before ';' token
main.cpp: In function 'int main()':
main.cpp:24:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=1;i<=n;i++)
^~~
main.cpp:26:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(i=2;i<=n;i++)
^~~
main.cpp:33:24: error: 'strlen' was not declared in this scope
fwrite(r,1,strlen(r),stdout);
^
main.cpp:23:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.in","r",stdin),freopen("rmq.out","w",stdout),fgets(p,30,stdin),n=A(),m=A();
^
main.cpp:23:92: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:23:92: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:25:42: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(p,30,stdin),o=0,b[0][i]=A();
^
main.cpp:32:84: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(p,30,stdin),o=0,i=A(),j=A(),n=c[j-i+1],S(N(b[n][i],b[n][j+1-(1<<n)]));
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
