Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130433 鄢晨曦 05等差数列 C++ Compile Error 0 MS 0 KB 133 2025-09-13 15:19:14

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a1,a2,n,d; cin>>a1,a2,n; cout<<3n-1<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:13: warning: right operand of comma operator has no effect [-Wunused-value]
  cin>>a1,a2,n;
             ^
Main.cc:5:14: warning: right operand of comma operator has no effect [-Wunused-value]
  cin>>a1,a2,n;
              ^
Main.cc:7:8: error: unable to find numeric literal operator 'operator""n'
  cout<<3n-1<