79852024-01-12 09:41:39AGergoZenehallgatáscpp17Forditási hiba
#include <bits/stdc++.h>

using namespace std;

int main()
{
    cin.tie(0);
    iostream::sync_with_stdio(0);

    int dalszam, idoszam,temp,pont,mini,maxi,ID=0;
    cin >> dalszam >> idoszam;

    vector<int> start(dalszam+1);

    start[0] = 0;

    for(int i = 1; i< dalszam+1; i++)   //start[dalszam] = length of the playlist
    {
        cin >> temp;
        start[i] = start[i-1] + temp;
        //cout << start[i]<<endl;
    }

    for(int i = 0; i < idoszam;i++)
    {
        ID = 0;
        mini = 0;
        maxi = dalszam;

        cin >> pont;
        pont = pont % start[dalszam];

        while(ID==0 && pont != 0)
        {

            if(start[mini+((maxi-mini)/2)] == pont)
            {
                ID = mini+(maxi-mini)/2;
            }
            else if(maxi-mini == 1)
            {
                ID = maxi;
            }
            else if(start[mini+((maxi-mini)/2)] > pont)
            {
                maxi = mini+(ííí(maxi-mini)/2);
            }
            else
            {
                mini = mini+((maxi-mini)/2);
            }
        }
        if(pont == 0)
        {
            ID = dalszam;
        }
        cout << ID << " ";
    }



}
Forditási hiba
exit status 1
main.cpp:46:30: error: stray '\355' in program
   46 |                 maxi = mini+(���(maxi-mini)/2);
      |                              ^
main.cpp:46:31: error: stray '\355' in program
   46 |                 maxi = mini+(���(maxi-mini)/2);
      |                               ^
main.cpp:46:32: error: stray '\355' in program
   46 |                 maxi = mini+(���(maxi-mini)/2);
      |                                ^
Exited with error status 1