/ Vijos /

记录详情

Compile Error

foo.cc:67:21: error: stray '@' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                     ^
foo.cc:67:25: error: stray '\345' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                         ^
foo.cc:67:26: error: stray '\271' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                          ^
foo.cc:67:27: error: stray '\264' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                           ^
foo.cc:67:28: error: stray '\345' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                            ^
foo.cc:67:29: error: stray '\211' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                             ^
foo.cc:67:30: error: stray '\215' in program
   67 |  Paul_Guderian LV 7 @ 4 年前
      |                              ^
foo.cc:68:1: error: stray '\343' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      | ^
foo.cc:68:2: error: stray '\200' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |  ^
foo.cc:68:3: error: stray '\220' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |   ^
foo.cc:68:4: error: stray '\347' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |    ^
foo.cc:68:5: error: stray '\276' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |     ^
foo.cc:68:6: error: stray '\216' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |      ^
foo.cc:68:7: error: stray '\345' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |       ^
foo.cc:68:8: error: stray '\246' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |        ^
foo.cc:68:9: error: stray '\231' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |         ^
foo.cc:68:10: error: stray '\347' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |          ^
foo.cc:68:11: error: stray '\232' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |           ^
foo.cc:68:12: error: stray '\204' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |            ^
foo.cc:68:13: error: stray '\345' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |             ^
foo.cc:68:14: error: stray '\214' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |              ^
foo.cc:68:15: error: stray '\272' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |               ^
foo.cc:68:16: error: stray '\351' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                ^
foo.cc:68:17: error: stray '\227' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                 ^
foo.cc:68:18: error: stray '\264' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                  ^
foo.cc:68:21: error: stray '\344' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                     ^
foo.cc:68:22: error: stray '\270' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                      ^
foo.cc:68:23: error: stray '\216' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                       ^
foo.cc:68:24: error: stray '\346' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                        ^
foo.cc:68:25: error: stray '\240' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                         ^
foo.cc:68:26: error: stray '\221' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                          ^
foo.cc:68:27: error: stray '\347' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                           ^
foo.cc:68:28: error: stray '\232' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                            ^
foo.cc:68:29: error: stray '\204' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                             ^
foo.cc:68:30: error: stray '\351' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                              ^
foo.cc:68:31: error: stray '\201' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                               ^
foo.cc:68:32: error: stray '\215' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                ^
foo.cc:68:33: error: stray '\345' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                 ^
foo.cc:68:34: error: stray '\216' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                  ^
foo.cc:68:35: error: stray '\206' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                   ^
foo.cc:68:36: error: stray '\347' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                    ^
foo.cc:68:37: error: stray '\232' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                     ^
foo.cc:68:38: error: stray '\204' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                      ^
foo.cc:68:39: error: stray '\345' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                       ^
foo.cc:68:40: error: stray '\205' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                        ^
foo.cc:68:41: error: stray '\245' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                         ^
foo.cc:68:42: error: stray '\351' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                          ^
foo.cc:68:43: error: stray '\227' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                           ^
foo.cc:68:44: error: stray '\250' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                            ^
foo.cc:68:45: error: stray '\343' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                             ^
foo.cc:68:46: error: stray '\200' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                              ^
foo.cc:68:47: error: stray '\221' in program
   68 | 【美妙的区间DP与树的遍历的入门】
      |                                               ^
foo.cc:90:3: error: stray '#' in program
   90 |  }#include <iostream>
      |   ^
foo.cc:156:21: error: stray '@' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                     ^
foo.cc:156:25: error: stray '\345' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                         ^
foo.cc:156:26: error: stray '\271' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                          ^
foo.cc:156:27: error: stray '\264' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                           ^
foo.cc:156:28: error: stray '\345' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                            ^
foo.cc:156:29: error: stray '\211' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                             ^
foo.cc:156:30: error: stray '\215' in program
  156 |  Paul_Guderian LV 7 @ 4 年前
      |                              ^
foo.cc:157:1: error: stray '\343' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      | ^
foo.cc:157:2: error: stray '\200' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |  ^
foo.cc:157:3: error: stray '\220' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |   ^
foo.cc:157:4: error: stray '\347' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |    ^
foo.cc:157:5: error: stray '\276' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |     ^
foo.cc:157:6: error: stray '\216' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |      ^
foo.cc:157:7: error: stray '\345' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |       ^
foo.cc:157:8: error: stray '\246' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |        ^
foo.cc:157:9: error: stray '\231' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |         ^
foo.cc:157:10: error: stray '\347' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |          ^
foo.cc:157:11: error: stray '\232' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |           ^
foo.cc:157:12: error: stray '\204' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |            ^
foo.cc:157:13: error: stray '\345' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |             ^
foo.cc:157:14: error: stray '\214' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |              ^
foo.cc:157:15: error: stray '\272' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |               ^
foo.cc:157:16: error: stray '\351' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                ^
foo.cc:157:17: error: stray '\227' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                 ^
foo.cc:157:18: error: stray '\264' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                  ^
foo.cc:157:21: error: stray '\344' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                     ^
foo.cc:157:22: error: stray '\270' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                      ^
foo.cc:157:23: error: stray '\216' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                       ^
foo.cc:157:24: error: stray '\346' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                        ^
foo.cc:157:25: error: stray '\240' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                         ^
foo.cc:157:26: error: stray '\221' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                          ^
foo.cc:157:27: error: stray '\347' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                           ^
foo.cc:157:28: error: stray '\232' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                            ^
foo.cc:157:29: error: stray '\204' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                             ^
foo.cc:157:30: error: stray '\351' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                              ^
foo.cc:157:31: error: stray '\201' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                               ^
foo.cc:157:32: error: stray '\215' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                ^
foo.cc:157:33: error: stray '\345' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                 ^
foo.cc:157:34: error: stray '\216' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                  ^
foo.cc:157:35: error: stray '\206' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                   ^
foo.cc:157:36: error: stray '\347' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                    ^
foo.cc:157:37: error: stray '\232' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                     ^
foo.cc:157:38: error: stray '\204' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                      ^
foo.cc:157:39: error: stray '\345' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                       ^
foo.cc:157:40: error: stray '\205' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                        ^
foo.cc:157:41: error: stray '\245' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                         ^
foo.cc:157:42: error: stray '\351' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                          ^
foo.cc:157:43: error: stray '\227' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                           ^
foo.cc:157:44: error: stray '\250' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                            ^
foo.cc:157:45: error: stray '\343' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                             ^
foo.cc:157:46: error: stray '\200' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                              ^
foo.cc:157:47: error: stray '\221' in program
  157 | 【美妙的区间DP与树的遍历的入门】
      |                                               ^
foo.cc:64:1: error: 'Copy' does not name a type
   64 | Copy
      | ^~~~
foo.cc:74:5: error: conflicting declaration 'int f [35][35]'
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |     ^
foo.cc:9:5: note: previous declaration as 'int f [31][31]'
    9 | int f[31][31];
      |     ^
foo.cc:74:35: error: conflicting declaration 'int a [35]'
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                   ^
foo.cc:8:5: note: previous declaration as 'int a [31]'
    8 | int a[31];
      |     ^
foo.cc:74:41: error: redefinition of 'int n'
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                         ^
foo.cc:7:5: note: 'int n' previously declared here
    7 | int n;
      |     ^
foo.cc: In function 'void P(int, int)':
foo.cc:76:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   76 |      if(l>r)return;if(l==r){ans[++t]=l;return;}
      |      ^~
foo.cc:76:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   76 |      if(l>r)return;if(l==r){ans[++t]=l;return;}
      |                    ^~
foo.cc: At global scope:
foo.cc:78:5: error: redefinition of 'int main()'
   78 | int main(){
      |     ^~~~
foo.cc:51:5: note: 'int main()' previously defined here
   51 | int main()
      |     ^~~~
foo.cc:90:4: error: 'include' does not name a type
   90 |  }#include <iostream>
      |    ^~~~~~~
foo.cc:96:5: error: redefinition of 'int n'
   96 | int n;
      |     ^
foo.cc:7:5: note: 'int n' previously declared here
    7 | int n;
      |     ^
foo.cc:97:5: error: redefinition of 'int a [31]'
   97 | int a[31];
      |     ^
foo.cc:8:5: note: 'int a [31]' previously declared here
    8 | int a[31];
      |     ^
foo.cc:98:5: error: redefinition of 'int f [31][31]'
   98 | int f[31][31];
      |     ^
foo.cc:9:5: note: 'int f [31][31]' previously declared here
    9 | int f[31][31];
      |     ^
foo.cc:99:5: error: redefinition of 'int root [31][31]'
   99 | int root[31][31];
      |     ^~~~
foo.cc:10:5: note: 'int root [31][31]' previously declared here
   10 | int root[31][31];
      |     ^~~~
foo.cc:101:5: error: redefinition of 'int dfs(int, int)'
  101 | int dfs(int l,int r)
      |     ^~~
foo.cc:12:5: note: 'int dfs(int, int)' previously defined here
   12 | int dfs(int l,int r)
      |     ^~~
foo.cc:130:6: error: redefinition of 'void print(int, int)'
  130 | void print(int l,int r)
      |      ^~~~~
foo.cc:41:6: note: 'void print(int, int)' previously defined here
   41 | void print(int l,int r)
      |      ^~~~~
foo.cc:140:5: error: redefinition of 'int main()'
  140 | int main()
      |     ^~~~
foo.cc:51:5: note: 'int main()' previously defined here
   51 | int main()
      |     ^~~~
foo.cc:153:1: error: 'Copy' does not name a type
  153 | Copy
      | ^~~~
foo.cc:163:5: error: conflicting declaration 'int f [35][35]'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |     ^
foo.cc:9:5: note: previous declaration as 'int f [31][31]'
    9 | int f[31][31];
      |     ^
foo.cc:163:15: error: redefinition of 'int d [35][35]'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |               ^
foo.cc:74:15: note: 'int d [35][35]' previously declared here
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |               ^
foo.cc:163:25: error: redefinition of 'int ans [35]'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                         ^~~
foo.cc:74:25: note: 'int ans [35]' previously declared here
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                         ^~~
foo.cc:163:33: error: redefinition of 'int t'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                 ^
foo.cc:74:33: note: 'int t' previously declared here
   74 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                 ^
foo.cc:163:35: error: conflicting declaration 'int a [35]'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                   ^
foo.cc:8:5: note: previous declaration as 'int a [31]'
    8 | int a[31];
      |     ^
foo.cc:163:41: error: redefinition of 'int n'
  163 | int f[35][35],d[35][35],ans[35],t,a[35],n;
      |                                         ^
foo.cc:7:5: note: 'int n' previously declared here
    7 | int n;
      |     ^
foo.cc:164:6: error: redefinition of 'void P(int, int)'
  164 | void P(int l, int r){
      |      ^
foo.cc:75:6: note: 'void P(int, int)' previously defined here
   75 | void P(int l, int r){
      |      ^
foo.cc: In function 'void P(int, int)':
foo.cc:165:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  165 |      if(l>r)return;if(l==r){ans[++t]=l;return;}
      |      ^~
foo.cc:165:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  165 |      if(l>r)return;if(l==r){ans[++t]=l;return;}
      |                    ^~
foo.cc: At global scope:
foo.cc:167:5: error: redefinition of 'int main()'
  167 | int main(){
      |     ^~~~
foo.cc:51:5: note: 'int main()' previously defined here
   51 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:79:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   79 |      scanf("%d",&n);
      |      ~~~~~^~~~~~~~~
foo.cc:80:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   80 |      go(i,1,n)scanf("%d",&a[i]),
      |               ~~~~~^~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:168:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  168 |      scanf("%d",&n);
      |      ~~~~~^~~~~~~~~
foo.cc:169:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  169 |      go(i,1,n)scanf("%d",&a[i]),
      |               ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1100 加分二叉树
语言
C++
递交时间
2022-01-02 19:30:43
评测时间
2022-01-02 19:30:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes