Borderou de evaluare (job #1183997)

Utilizator apopeid15Apopei Daniel apopeid15 Data 10 mai 2014 20:37:01
Problema Transport Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:41:23: error: ‘po’ was not declared in this scope mij=p+(u-p)/2;po ^ user.cpp:42:9: error: expected ‘;’ before ‘if’ if(fct(mij)==0) p=mij+1; ^ user.cpp:43:9: error: ‘else’ without a previous ‘if’ else ^ user.cpp:30:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.in", "r", stdin); ^ user.cpp:31:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.out", "w", stdout); ^ user.cpp:32:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &l); ^ user.cpp:35:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^

Ceva nu functioneaza?