/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void floyd()':
/in/foo.cc:19:49: error: expected ')' before '}' token
  for (int i=1;i<=e;i++) {scanf("%d%d%d",&x,&y,&z};dis[x][y]=dis[y][x]=z;}
                                                 ^
/in/foo.cc: At global scope:
/in/foo.cc:20:2: error: expected unqualified-id before 'for'
  for (int k=1;k<=v;k++)
  ^~~
/in/foo.cc:20:15: error: 'k' does not name a type
  for (int k=1;k<=v;k++)
               ^
/in/foo.cc:20:20: error: 'k' does not name a type
  for (int k=1;k<=v;k++)
                    ^
/in/foo.cc:21:16: error: 'i' does not name a type
   for (int i=1;i<=v;i++)
                ^
/in/foo.cc:21:21: error: 'i' does not name a type
   for (int i=1;i<=v;i++)
                     ^
/in/foo.cc:22:17: error: 'j' does not name a type
    for (int j=1;j<=v;j++)
                 ^
/in/foo.cc:22:22: error: 'j' does not name a type
    for (int j=1;j<=v;j++)
                      ^
/in/foo.cc:25:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
自测
题目
P2005 换教室
语言
C++
递交时间
2017-09-21 23:21:43
评测时间
2017-09-21 23:21:43
评测机
分数
0
总耗时
394ms
峰值内存
35.922 MiB