Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106729 陈治宸 14判断素数III C++ Compile Error 0 MS 0 KB 246 2025-01-16 15:34:01

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int i; i=2;n=0; cin>>n; for(i=1;i<=100;i++) if(i%3==0) { if(i%10==0) { cout<<"10"<<endl; continue; } cout<<i%10<<endl; continue; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:16: error: 'n' was not declared in this scope
            i=2;n=0;
                ^