Loading [Contrib]/a11y/accessibility-menu.js
Toggle navigation
Sky Online Judge
Problems
Challenges
Contest
Tools
Coder
Scoreboard
Code
Dev Message
Discuss
Make-A-Wish
LOGIN
上傳編號
228167
上傳時間
2025-04-10 19:46:03
題目
[練習題]西格馬嗯
使用者
anonymous
總得分
0,
Compile Error
CE
in 0 ms
#
State
Runtime
Memory
0
Compile Error
CE
0
0
1
Compile Error
CE
0
0
2
Compile Error
CE
0
0
3
Compile Error
CE
0
0
Judge Information
./test.cpp: In function 'int main()':
./test.cpp:9:21: error: expected ')' before ';' token
printf("%.4f", m;
^
1
2
3
4
5
6
7
8
9
10
11
#include
<iostream>
#include
<stdio.h>
#include
<cmath>
using
namespace
std
;
int
main
(
)
{
int
n
,
m
;
cin
>>
n
;
m
=
n
*
(
n
+1
)
/
2
;
printf
(
"
%.
4f
"
,
m
;
cout
<<
endl
;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX