Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111253 唐安轩 奇怪的国家 C++ Compile Error 0 MS 0 KB 313 2025-03-01 11:14:40

Tests(0/0):


Code:

#include<iostream> #include<cstring> using namespace std; int main(){ int c=0; string a; string b; cin>>a>>b; int len =s2.length(); for(int i=0;i<len;i++){ if(a[i]==b[i]){ cout<<"1"; }else{ cout<<"0"; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:13: error: 's2' was not declared in this scope
    int len =s2.length();
             ^
Main.cc:5:8: warning: unused variable 'c' [-Wunused-variable]
    int c=0; 
        ^