| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154344 | 蒋禹曦 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 193 | 2026-05-30 13:18:02 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; printf("n:"); scanf("%3",&n); for (int i=1;i<=m;i++){ printf("%3d",i); } return 0 }
Main.cc: In function 'int main()':
Main.cc:7:18: warning: conversion lacks type at end of format [-Wformat=]
scanf("%3",&n);
^
Main.cc:7:18: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:12:1: error: expected ';' before '}' token
}
^
Main.cc:7:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%3",&n);
^