Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126289 | 陈冠樾 | [在线测评解答教程] 闰年 | C++ | Compile Error | 0 MS | 0 KB | 176 | 2025-07-17 16:10:07 |
#include<iostream> using namespace std; int main() { int t, n; scanf("%d", &t); while (t--) { scanf("%d", &n是闰年yes, 不是闰年No); } return 0; }
Main.cc:7:3: error: stray '\346' in program scanf("%d", &n是闰年yes, 不是闰年No); ^ Main.cc:7:3: error: stray '\230' in program Main.cc:7:3: error: stray '\257' in program Main.cc:7:3: error: stray '\351' in program Main.cc:7:3: error: stray '\227' in program Main.cc:7:3: error: stray '\260' in program Main.cc:7:3: error: stray '\345' in program Main.cc:7:3: error: stray '\271' in program Main.cc:7:3: error: stray '\264' in program Main.cc:7:3: error: stray '\344' in program Main.cc:7:3: error: stray '\270' in program Main.cc:7:3: error: stray '\215' in program Main.cc:7:3: error: stray '\346' in program Main.cc:7:3: error: stray '\230' in program Main.cc:7:3: error: stray '\257' in program Main.cc:7:3: error: stray '\351' in program Main.cc:7:3: error: stray '\227' in program Main.cc:7:3: error: stray '\260' in program Main.cc:7:3: error: stray '\345' in program Main.cc:7:3: error: stray '\271' in program Main.cc:7:3: error: stray '\264' in program Main.cc: In function 'int main()': Main.cc:7:26: error: expected ')' before 'yes' scanf("%d", &n是闰年yes, 不是闰年No); ^ Main.cc:7:43: error: 'No' was not declared in this scope scanf("%d", &n是闰年yes, 不是闰年No); ^ Main.cc:5:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^