Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141216 陈峻徳 01梯形的面积 C++ Compile Error 0 MS 0 KB 140 2025-12-21 15:15:09

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a=10; int b=20; int b=8 cout<<(a+b)*8<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:9: error: redeclaration of 'int b'
     int b=8
         ^
Main.cc:5:9: note: 'int b' previously declared here
     int b=20;
         ^
Main.cc:4:6: warning: unused variable 'a' [-Wunused-variable]
  int a=10;
      ^
Main.cc:5:9: warning: unused variable 'b' [-Wunused-variable]
     int b=20;
         ^