Loading [Contrib]/a11y/accessibility-menu.js
上傳編號 228151
上傳時間 2025-04-10 19:36:38
題目 The Theft Triangle (測試題)
使用者 anonymous
總得分 0, CE in 0 ms
# State Runtime Memory
0 CE 0 0
1 CE 0 0
2 CE 0 0
3 CE 0 0
Judge Information
./test.cpp:5:5: error: cannot declare '::main' to be a global variable
int main{
^~~~
./test.cpp:6:5: error: expected primary-express
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
int main{
double a, b, c;
cin >> a >> b;
c = a*b/2;
printf("%.4f", c);
return 0
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX