Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107390 | vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | 合法的标识符 | C++ | Compile Error | 0 MS | 0 KB | 367 | 2025-01-17 16:16:54 |
#include<bits/stdc++.h> using namespace std; srting s; int main() { getline(cin,s); bool a=true; if(s[1]>='0'&&s[1]<='9'){ cout<<"no"; return 0; } for(int i=0;i<s.size();i++){ if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z'||s[i]>='0'&&s[i]<='9'){ bool=true; } else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }
Main.cc:3:1: error: 'srting' does not name a type srting s; ^ Main.cc: In function 'int main()': Main.cc:5:14: error: 's' was not declared in this scope getline(cin,s); ^ Main.cc:13:8: error: expected unqualified-id before '=' token bool=true; ^ Main.cc:6:7: warning: unused variable 'a' [-Wunused-variable] bool a=true; ^