QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#141828#6993. Take Your SeatsdoiCompile Error//C++232.1kb2023-08-18 02:43:152023-08-18 02:43:16

詳細信息

answer.code:93:5: error: redefinition of ‘int n’
   93 | int n, m;
      |     ^
answer.code:32:5: note: ‘int n’ previously declared here
   32 | int n, m;
      |     ^
answer.code:93:8: error: redefinition of ‘int m’
   93 | int n, m;
      |        ^
answer.code:32:8: note: ‘int m’ previously declared here
   32 | int n, m;
      |        ^
answer.code:95:8: error: redefinition of ‘double dp [55]’
   95 | double dp[55];
      |        ^~
answer.code:34:8: note: ‘double dp [55]’ previously declared here
   34 | double dp[55];
      |        ^~
answer.code:97:6: error: redefinition of ‘void solve()’
   97 | void solve() {
      |      ^~~~~
answer.code:36:6: note: ‘void solve()’ previously defined here
   36 | void solve() {
      |      ^~~~~
answer.code:106:5: error: redefinition of ‘int main()’
  106 | int main() {
      |     ^~~~
answer.code:45:5: note: ‘int main()’ previously defined here
   45 | int main() {
      |     ^~~~
answer.code: In function ‘void solve()’:
answer.code:37:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   37 |         scanf("%d%d", &n, &m);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:52:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   52 |         int T; scanf("%d", &T);
      |                ~~~~~^~~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:98:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   98 |         scanf("%d%d", &n, &m);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:113:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  113 |         int T; scanf("%d", &T);
      |                ~~~~~^~~~~~~~~~