Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149840 成书骏 19灯的编号 C++ Compile Error 0 MS 0 KB 653 2026-03-18 19:14:46

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,m,a[1001]={0},b=1,c=2; cin>>n>>m; for(int i=1;i<=n;i++){ if(c%2==0){ if(b%2==0){ a[b]++; } } } else{ for(int i=1;i<=n;i++){ } } for(int i=1;i<n;i++){ if(a[i]==1){ cout<<i<<","; } cout<<i; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:9: error: 'else' without a previous 'if'
         else{
         ^