Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70416 张之隽 07比较大小 C++ Compile Error 0 MS 0 KB 163 2024-04-14 14:36:07

Tests(0/0):


Code:

#include <bits/stdc++.h> using namespace std; int main (){ int a,,b; cin>>a,b; if(a>b){ cout<<a; } if(a<b){ cout<<b; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:8: error: expected unqualified-id before ',' token
  int a,,b;
        ^
Main.cc:7:10: warning: right operand of comma operator has no effect [-Wunused-value]
  cin>>a,b;
          ^