Problem waterbottles
User angei
Submission Time 2025-08-05 17:28:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
waterbottles.cpp: In function ‘int main()’:
waterbottles.cpp:4:5: error: ‘ios’ has not been declared
4 | ios::sync_with_stdio(false);
| ^~~
waterbottles.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin.tie(nullptr);
| ^~~
waterbottles.cpp:18:5: error: ‘cout’ was not declared in this scope
18 | cout << S - E * K << endl;
| ^~~~
waterbottles.cpp:18:26: error: ‘endl’ was not declared in this scope
18 | cout << S - E * K << endl;
| ^~~~