F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39370782_9382.cpp:2:5: error: 'cin' does not name a type
    2 |     cin >> n >> m;
      |     ^~~
0_0_39370782_9382.cpp:3:5: error: expected unqualified-id before 'for'
    3 |     for (int t = 0; t < n; ++t)cin >> v[t];
      |     ^~~
0_0_39370782_9382.cpp:3:21: error: 't' does not name a type
    3 |     for (int t = 0; t < n; ++t)cin >> v[t];
      |                     ^
0_0_39370782_9382.cpp:3:28: error: expected unqualified-id before '++' token
    3 |     for (int t = 0; t < n; ++t)cin >> v[t];
      |                            ^~
0_0_39370782_9382.cpp:4:5: error: expected unqualified-id before 'for'
    4 |     for (int i = n - 1; i >= 0; --i) {
      |     ^~~
0_0_39370782_9382.cpp:4:25: error: 'i' does not name a type
    4 |     for (int i = n - 1; i >= 0; --i) {
      |                         ^
0_0_39370782_9382.cpp:4:33: error: expected unqualified-id before '--' token
    4 |     for (int i = n - 1; i >= 0; --i) {
      |                                 ^~
0_0_39370782_9382.cpp:8:5: error: expected unqualified-id before 'for'
    8 |     for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
      |     ^~~
0_0_39370782_9382.cpp:8:21: error: 't' does not name a type
    8 |     for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
      |                     ^
0_0_39370782_9382.cpp:8:29: error: expected unqualified-id before '++' token
    8 |     for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
      |                             ^~
0_0_39370782_9382.cpp:8:49: error: 'y' does not name a type
    8 |     for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
      |                                                 ^
0_0_39370782_9382.cpp:8:57: error: expected unqualified-id before '++' token
    8 |     for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
      |                                                         ^~
0_0_39370782_9382.cpp:20:5: error: 'cout' does not name a type
   20 |     cout << ans - 1 << endl;
      |     ^~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 12:38:31, Gzip enabled