Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65894 刘慕莀 05等差数列 C++ Compile Error 0 MS 0 KB 152 2024-02-22 11:44:28

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d",a*((b-a)+1); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:25: error: expected ')' before ';' token
  printf("%d",a*((b-a)+1); 
                         ^
Main.cc:6:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d %d",&a,&b,&c);
                            ^