exam.cpp: In function 'int main()':
exam.cpp:20:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |   for (int i=0;i<obstacles.size()-1;i++) {
      |                ~^~~~~~~~~~~~~~~~~~~
exam.cpp:4:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    4 |   int nbEleves; scanf("%d",&nbEleves);
      |                 ~~~~~^~~~~~~~~~~~~~~~
exam.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
    7 |     scanf("%d",&A[i]);
      |     ~~~~~^~~~~~~~~~~~
exam.cpp:12:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   12 |   scanf("%d",&objectif);
      |   ~~~~~^~~~~~~~~~~~~~~~