Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139565 房知谦 素数判断 C++ Compile Error 0 MS 0 KB 336 2025-12-07 20:17:50

Tests(0/0):


Code:

#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=1;i<n;i++){ if(n/i return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:5: error: expected ')' before 'return'
     return 0;
     ^
Main.cc:13:1: error: expected '}' at end of input
 }
 ^