/ Vijos /

记录详情

Compile Error

foo.cc:55:11: error: redefinition of 'const int MAXN'
   55 | const int MAXN=101;
      |           ^~~~
foo.cc:12:11: note: 'const int MAXN' previously defined here
   12 | const int MAXN=101;
      |           ^~~~
foo.cc:56:5: error: redefinition of 'int dp [101][101]'
   56 | int dp[MAXN][MAXN];
      |     ^~
foo.cc:13:5: note: 'int dp [101][101]' previously declared here
   13 | int dp[MAXN][MAXN];
      |     ^~
foo.cc:57:5: error: redefinition of 'int LongestCommonSubsequence(std::string, std::string)'
   57 | int LongestCommonSubsequence(string s1,string s2)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:14:5: note: 'int LongestCommonSubsequence(std::string, std::string)' previously defined here
   14 | int LongestCommonSubsequence(string s1,string s2)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:78:5: error: redefinition of 'int main()'
   78 | int main()
      |     ^~~~
foo.cc:35:5: note: 'int main()' previously defined here
   35 | int main()
      |     ^~~~
foo.cc:98:11: error: redefinition of 'const int MAXN'
   98 | const int MAXN=101;
      |           ^~~~
foo.cc:12:11: note: 'const int MAXN' previously defined here
   12 | const int MAXN=101;
      |           ^~~~
foo.cc:99:5: error: redefinition of 'int dp [101][101]'
   99 | int dp[MAXN][MAXN];
      |     ^~
foo.cc:13:5: note: 'int dp [101][101]' previously declared here
   13 | int dp[MAXN][MAXN];
      |     ^~
foo.cc:100:5: error: redefinition of 'int LongestCommonSubsequence(std::string, std::string)'
  100 | int LongestCommonSubsequence(string s1,string s2)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:14:5: note: 'int LongestCommonSubsequence(std::string, std::string)' previously defined here
   14 | int LongestCommonSubsequence(string s1,string s2)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:121:5: error: redefinition of 'int main()'
  121 | int main()
      |     ^~~~
foo.cc:35:5: note: 'int main()' previously defined here
   35 | int main()
      |     ^~~~
foo.cc: In function 'int main()':
foo.cc:124:17: error: expected primary-expression before '%' token
  124 |     while(scanf(%s%s,a,b)==2)
      |                 ^
foo.cc:124:18: error: 's' was not declared in this scope
  124 |     while(scanf(%s%s,a,b)==2)
      |                  ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1111 小胖的水果
语言
C++
递交时间
2022-08-25 15:21:32
评测时间
2022-08-25 15:21:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes