| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133786 | 左锶焜 | 判断质数(使用while循环) | C++ | Compile Error | 0 MS | 0 KB | 403 | 2025-10-21 19:34:44 |
#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,i; cin>>n; with(i*i=n){ if(i%2==0) cout<<"No";return 0; else cout<<"Yes"; } return 0; }
Main.cc: In function 'int main()':
Main.cc:11:12: error: lvalue required as left operand of assignment
with(i*i=n){
^
Main.cc:11:14: error: 'with' was not declared in this scope
with(i*i=n){
^