Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
97832 吴梓玄 02武王伐纣II C Compile Error 0 MS 0 KB 118 2024-11-16 16:39:22

Tests(0/0):


Code:

#include <stdio.h> int main() { int a, b, s; scanf("%d%d",&a,&b); s=a*b printf("%d\n",s); return 0; }


Run Info:

Main.c: In function 'main':
Main.c:7:2: error: expected ';' before 'printf'
  printf("%d\n",s);
  ^
Main.c:4:12: warning: variable 's' set but not used [-Wunused-but-set-variable]
  int a, b, s;
            ^
Main.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&a,&b);
  ^