5452 | 2023-06-12 15:48:04 | Hora | Legmesszebbi rossz sorrendű (35 pont) | cpp11 | Compilation error |
/*#include <iostream>
#include <vector>
#include <stack>
#include <queue>
using namespace std;
vector<vector<int>> dob;
bool bele(int ebbe, int ezt) {
if (dob[ebbe][0] > dob[ezt][0] && dob[ebbe][1] > dob[ezt][1] && dob[ebbe][2] > dob[ezt][2]) return true;
else return false;
}
int main()
{
int n;
cin >> n;
dob.resize(n, vector<int>(4));
for (int i = 0; i < n; i++) {
cin >> dob[i][0] >> dob[i][1] >> dob[i][2];
dob[i][3] = 10001 + i;
sort(dob[i].begin(), dob[i].end());
}
sort(dob.begin(), dob.end());
stack<int> d;
d.push(dob[0][3] - 10001);
for (int i = 1; i < n; i++) {
if (bele(i, d.top())) {
d.push(dob[i][3] - 10001);
}
}
cout << d.size() << "\n";
while (!d.empty()) {
cout << d.top() << " ";
d.pop();
}
}*/
exit status 1
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/../../../x86_64-linux-gnu/crt1.o: in function `_start':
(.text+0x1b): undefined reference to `main'
collect2: error: ld returned 1 exit status
Exited with error status 1