rt.
本蒟蒻很好奇,下面的编译出错代表什么意思?为什么在IDE上会CE,运行了就是W$$A或者AC呢?
编译内容:
File "/tmp/compiler_rrzbn1c4/src", line 2
using namespace std;
^
SyntaxError: invalid syntax
my code:
#include<iostream>
using namespace std;
int main() {
string s; cin >> s;
long long cnt = 0;
for(int i = 0; i < s.size(); i++) {
if(s[i] >= '0' && s[i] <= '9') {
cnt++;
}
}
cout << cnt;
return 0;
}
(我觉得我很大几率犯了低级错误)