3777 | 2023-03-02 21:58:17 | renn | Mediánok (40 pont) | cpp17 | Forditási hiba |
#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;
}
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