37772023-03-02 21:58:17rennMediánok (40 pont)cpp17Compilation error
#include <bits/stdc++.h>
using namespace std;
#define GOTTAGOFAST cin.tie(0); cout.tie(0); ios::sync_with_stdio(0);

int main()
{
    GOTTAGOFAST
    int n, k;
    cin >> n >> k;

    for(i = 0; i < n; ++i)
        cout << i << " ";
    cout << "\n";
    return 0;
}
Compilation error
exit status 1
main.cpp: In function 'int main()':
main.cpp:11:9: error: 'i' was not declared in this scope
   11 |     for(i = 0; i < n; ++i)
      |         ^
Exited with error status 1