Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149777 zyh 简单的分支结构 C++ Compile Error 0 MS 0 KB 241 2026-03-16 17:06:10

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(y) { if (x<0) { cout << "-1" << endl; } else if (x=0) { cout << "0" << endl; } else if (x>0) { cout << "1" << endl; } else { return 0; }


Run Info:

Main.cc:3:10: error: 'y' was not declared in this scope
 int main(y) { 
          ^
Main.cc:3:13: error: expected ',' or ';' before '{' token
 int main(y) { 
             ^