Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116920 | 钱恩浩 | 13判断质数 | C++ | Compile Error | 0 MS | 0 KB | 508 | 2025-04-12 19:14:07 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n; cin>>n; for(int i=2;i<=n/2;i++){ if(i%i==0){ cont<<"No"; } return 0; } } cout<<"Yes"; return 0; }
Main.cc: In function 'int main()': Main.cc:12:13: error: 'cont' was not declared in this scope cont<<"No"; ^ Main.cc: At global scope: Main.cc:17:5: error: 'cout' does not name a type cout<<"Yes"; ^ Main.cc:18:5: error: expected unqualified-id before 'return' return 0; ^ Main.cc:19:1: error: expected declaration before '}' token } ^