Borderou de evaluare (job #2281397)
| Utilizator | Data | 12 noiembrie 2018 10:32:26 | |
|---|---|---|---|
| Problema | Alibaba | 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:14:13: error: 'gets' was not declared in this scope
gets(input);
^
main.cpp:18:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(!st.empty() && (st.size()+n-i-1)>=m && st.top()<input[i])
~~~~~~~~~~~~~~~~~^~~
main.cpp:10:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alibaba.in","r",stdin);
^
main.cpp:11:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alibaba.out","w",stdout);
^
main.cpp:13:27: 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 !
