Submission #1181064

#TimeUsernameProblemLanguageResultExecution timeMemory
1181064miniobJust Long Neckties (JOI20_ho_t1)C++20
Compilation error
0 ms0 KiB
uf[i + 1], war[i].first - war2[i - 1]); } for(int i = 1; i <= n + 1; i++) { wyn[war[i - 1].second] = max(maxpref[i - 1], maxsuf[i]); } for(int i = 1; i <= n + 1; i++) { cout << wyn[i] << " "; } return 0; }

Compilation message (stderr)

ho_t1.cpp:1:1: error: 'uf' does not name a type
    1 | uf[i + 1], war[i].first - war2[i - 1]);
      | ^~
ho_t1.cpp:2:9: error: expected declaration before '}' token
    2 |         }
      |         ^
ho_t1.cpp:3:9: error: expected unqualified-id before 'for'
    3 |         for(int i = 1; i <= n + 1; i++)
      |         ^~~
ho_t1.cpp:3:24: error: 'i' does not name a type
    3 |         for(int i = 1; i <= n + 1; i++)
      |                        ^
ho_t1.cpp:3:36: error: 'i' does not name a type
    3 |         for(int i = 1; i <= n + 1; i++)
      |                                    ^
ho_t1.cpp:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 1; i <= n + 1; i++)
      |         ^~~
ho_t1.cpp:7:24: error: 'i' does not name a type
    7 |         for(int i = 1; i <= n + 1; i++)
      |                        ^
ho_t1.cpp:7:36: error: 'i' does not name a type
    7 |         for(int i = 1; i <= n + 1; i++)
      |                                    ^
ho_t1.cpp:11:9: error: expected unqualified-id before 'return'
   11 |         return 0;
      |         ^~~~~~
ho_t1.cpp:12:1: error: expected declaration before '}' token
   12 | }
      | ^