Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78870 邓嘉懿 奇怪的国家 C++ Compile Error 0 MS 0 KB 242 2024-06-29 11:50:29

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ char a[51],b[51]; scanf("%s %s",a,b); int len=strlen(a); for(int i=0;i<len;i++){ if(a[i]==b[i]){ cout<<"1"; }else{ cout<<"0"; } } } return 0; }


Run Info:

Main.cc:16:2: error: expected unqualified-id before 'return'
  return 0;
  ^
Main.cc:17:1: error: expected declaration before '}' token
 }
 ^
Main.cc: In function 'int main()':
Main.cc:5:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s %s",a,b);
                    ^