68042023-12-19 10:24:42AMDFanboyForma-1cpp17Forditási hiba
int main()
{
    int N;
    int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
    cin>>N;
    for(int i=0; i<N; i++)
    {
        cin>>H;
        osszH+=H;
        if (H<minH)
            minH=H;
    }
    for(int i=0; i<N; i++)
    {
        cin>>V;
        osszV+=V;
        if (V<minV)
            minV=V;
    }
    if (osszV<osszH)
        cout<<"Verstappen"<<endl;
    else
        cout<<"Hamilton"<<endl;
    if(minV<minH)
        cout<<"Verstappen";
    else
        cout<<"Hamilton";
    return 0;
}
Forditási hiba
exit status 1
main.cpp:4:38: warning: integer constant is too large for its type
    4 |     int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:4:75: warning: integer constant is too large for its type
    4 |     int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
      |                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:4:38: warning: overflow in conversion from 'long int' to 'int' changes value from '5076944270305263615' to '1073741823' [-Woverflow]
    4 |     int H, V, osszH=0, osszV=0, minH=999999999999999999999999999999, minV=99999999999999999999999999999999999999;
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:4:75: warning: overflow in conversion from 'long int' to 'int' ...