func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     vector<int> v;     int total, num, i, koita = 0;     scanf( %d , &total);     for (i = 0; i < total; i++) {       scanf( %d , &num);       v.push_back(num);     }     int maximum = v[0];     int minimum = v[0];     for (i = 1; i < total; i++) {       num = v[i];       if (num > maximum) {         maximum = num;         koita++;       }       if (num < minimum) {         minimum = num;         koita++;       }     }     printf( %d n , koita);     return 0;   }   