Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137191 唐诗阳 生理周期 C++ Compile Error 0 MS 0 KB 628 2025-11-16 15:30:33

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 p,e,i,d,s; cin>>p>>e>>i>>d; for(int x=p+23;x<=21252;x+=23){ for(int y=e+23;y<=21252;y+=28){ for(int z=i+23;z<=21252;z+=33){ if(k==j && j==x){ cout<<"the next triple peak occurs in "<<k-d<<" days."; return 0; } } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:20: error: 'k' was not declared in this scope
                 if(k==j && j==x){
                    ^
Main.cc:13:23: error: 'j' was not declared in this scope
                 if(k==j && j==x){
                       ^
Main.cc:8:17: warning: unused variable 's' [-Wunused-variable]
     int p,e,i,d,s;
                 ^