Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142995 张晓冉 02数字拼接 C++ Compile Error 0 MS 0 KB 144 2026-01-11 17:39:49

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ char a,b; char s =0; s = a+b; int s; cout<<s*s; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:9: error: conflicting declaration 'int s'
     int s;
         ^
Main.cc:5:10: note: previous declaration as 'char s'
     char s =0;
          ^