63052023-11-15 16:22:13toki32Formula-1cpp17Compilation error
#include <bits/stdc++.h>

int main() {
    int n = 0;
    std::cin >> n;
    int ham_sum = 0;
    int ver_sum = 0;
    int ham_min = INT_MAX;
    int ver_min = INT_MAX;

    for (int i = 0; i < n; i++) {
        int x;
        std::cin >> x;
        ham_sum += x;
        ham_min = x < ham_min ? x : ham_min;
    }
    for (int i = 0; i < n; i++) {
        int x;
        std::cin >> x;
        ver_sum += x;
        ver_min = x < ver_min ? x : ver_min;
    }
    if (ham_sum < ver_sum) std::cout << "Hamilton\n";
    else std:cout << "Verstappen\n";
    if (ham_min < ver_min) std::cout << "Hamilton\n";
    else std::cout << "Verstappen\n";
}
Compilation error
exit status 1
main.cpp: In function 'int main()':
main.cpp:24:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |     else std:cout << "Verstappen\n";
      |              ^~~~
      |              std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
                 from main.cpp:1:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
   61 |   extern ostream cout;          /// Linked to standard output
      |                  ^~~~
Exited with error status 1