Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93972 胡海峰老师 02长方形的面积 C Compile Error 0 MS 0 KB 170 2024-10-19 16:44:44

Tests(0/0):


Code:

#include <stdio.h> int main() { int n,m; // n 多少行, m 多少列 i++/ ++i(区别) i=i+1 scanf("%d%d",&n,&m); printf("%d",n+m): return 0; }


Run Info:

Main.c: In function 'main':
Main.c:6:21: error: expected ';' before ':' token
     printf("%d",n+m):
                     ^
Main.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ^