Problem devour
User Mimikyu
Submission Time 2024-05-04 09:55:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

devour.cpp:4:6: error: ‘sync’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
4 | ios::sync _with_stdio(O);cin.tie(O);
| ^~~~
devour.cpp:4:11: error: expected ‘}’ before ‘_with_stdio’
4 | ios::sync _with_stdio(O);cin.tie(O);
| ^~~~~~~~~~~
devour.cpp:3:10: note: to match this ‘{’
3 | int mainO{
| ^
devour.cpp:4:26: error: ‘cin’ does not name a type; did you mean ‘sin’?
4 | ios::sync _with_stdio(O);cin.tie(O);
| ^~~
| sin
devour.cpp:6:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin >> n >> m;
| ^~~
| sin
devour.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for (int i=1;i<=n; i+*){
| ^~~
devour.cpp:7:14: error: ‘i’ does not name a type
7 | for (int i=1;i<=n; i+*){
| ^
devour.cpp:7:20: error: