Problem party_noi
User thatgreyCat7777
Submission Time 2025-02-22 11:10:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:8:5: error: ‘ios_base’ has not been declared
8 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
party_noi.cpp:9:5: error: ‘cin’ was not declared in this scope
9 | cin.tie(NULL);
| ^~~
party_noi.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <cmath>
+++ |+#include <iostream>
3 |
party_noi.cpp:39:5: error: ‘cout’ was not declared in this scope
39 | cout << total << '\n';
| ^~~~
party_noi.cpp:39:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?