Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127109 袁梓豪 判断素数 C++ Compile Error 0 MS 0 KB 251 2025-07-23 23:59:08

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main() { for(int i=1;i<=100000000;i++){ if(i%2==1){ cout<<"prime"; }endl{ cout<<"not prime"; } } cout<<else; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:15: error: expected ';' before '{' token
          }endl{
               ^
Main.cc:9:10: error: statement cannot resolve address of overloaded function
          }
          ^
Main.cc:11:11: error: expected primary-expression before 'else'
     cout<