Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
108843 陈铎文 19神秘数字 C++ Compile Error 0 MS 0 KB 431 2025-01-22 14:18:45

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ bool t=false; int i=1; while(t=true){ if(i%8==1 and i%17==4){ int m=i; if(m%8==1){ m/=8; if(m%8==7){ int a=m/8; } else{ i++; continue; } } else{ i++; continue; } } else{ i++; continue; } m=i/17; if(m%17==15 and i==2*a){ t=true; } i++; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  while(t=true){
          ^
Main.cc:12:10: warning: unused variable 'a' [-Wunused-variable]
      int a=m/8;
          ^
Main.cc:28:3: error: 'm' was not declared in this scope
   m=i/17;
   ^
Main.cc:29:24: error: 'a' was not declared in this scope
   if(m%17==15 and i==2*a){
                        ^