Problem party_noi
User baolongnguyen1412
Submission Time 2025-01-30 23:53:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:5:3: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
party_noi.cpp:14:9: error: ‘swap’ was not declared in this scope
14 | swap(a[k], a[k + 1]);
| ^~~~
party_noi.cpp:20:5: error: ‘cout’ was not declared in this scope
20 | cout << a[x] << endl;
| ^~~~
party_noi.cpp:20:21: error: ‘endl’ was not declared in this scope
20 | cout << a[x] << endl;
| ^~~~
party_noi.cpp:26:5: error: ‘cout’ was not declared in this scope
26 | cout << max_happi << endl;
| ^~~~
party_noi.cpp:26:26: error: ‘endl’ was not declared in this scope
26 | cout << max_happi << endl;
| ^~~~
party_noi.cpp:29:3: error: ‘cout’ was not declared in this scope
29 | cout << max_happi << end