Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153762 蒋一赫 简单计算 C++ Compile Error 0 MS 0 KB 194 2026-05-23 18:20:30

Tests(0/0):


Code:

#include<cmath> using namespace std; int main() { int a:1; int b:2; int c:3; int d:4; int e:5; cin>>a>>b>>c>>d>>e>>; cout<<a*b*c*d*e<<; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:10: error: expected initializer before ':' token
     int a:1;
          ^
Main.cc:6:10: error: expected initializer before ':' token
     int b:2;
          ^
Main.cc:7:10: error: expected initializer before ':' token
     int c:3;
          ^
Main.cc:8:10: error: expected initializer before ':' token
     int d:4;
          ^
Main.cc:9:10: error: expected initializer before ':' token
     int e:5;
          ^
Main.cc:10:5: error: 'cin' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
     ^
Main.cc:10:10: error: 'a' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
          ^
Main.cc:10:13: error: 'b' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
             ^
Main.cc:10:16: error: 'c' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
                ^
Main.cc:10:19: error: 'd' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
                   ^
Main.cc:10:22: error: 'e' was not declared in this scope
     cin>>a>>b>>c>>d>>e>>;
                      ^
Main.cc:10:25: error: expected primary-expression before ';' token
     cin>>a>>b>>c>>d>>e>>;
                         ^
Main.cc:11:5: error: 'cout' was not declared in this scope
     cout<