Borderou de evaluare (job #2264466)

Utilizator mareadevarIonescu Andrei mareadevar Data 20 octombrie 2018 09:46:18
Problema Vila 2 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:16:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while(!d.empty()&&a[d.back()]>=a[i]) ^~~~~ main.cpp:18:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' d.push_back(i); ^ main.cpp:10:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] {freopen ("deque.in","r",stdin); ^ main.cpp:11:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("deque.out","w",stdout); ^ main.cpp:12:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d",&n,&k); ^ main.cpp:15:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d",&a[i]); ^

Ceva nu functioneaza?