using System;
namespace Backjoon
{
class main
{
static void Main(String[] args)
{
Solution s = new Solution();
s.P2908();
}
}
}
public class Solution
{
public void P2908()
{
int compare(int a, int b)
{
if (a > b)
{
return a;
}
else
{
return b;
}
}
int revers(String args)
{
int n = 0;
int before = Convert.ToInt32(args);
do
{
n = n + before ;
before = before / 10;
n = n * 10;
} while (before / 10 > 0);
n = n + before;
return n;
}
String args = Console.ReadLine();
String[] arg = args.Split(" ");
int a = revers(arg[0]);
int b = revers(arg[1]);
Console.WriteLine(compare(a, b));
}
}
---------------------------------------------------------------------------
Main.cs(20,19): error CS1525: Unexpected symbol `(', expecting `,', `;', or `=' Main.cs(20,27): error CS1525: Unexpected symbol `int', expecting `,', `;', or `=' Main.cs(26,16): error CS1519: Unexpected symbol `else' in class, struct, or interface member declaration Main.cs(27,13): error CS9010: Primary constructor body is not allowed Main.cs(31,8): error CS1525: Unexpected symbol `int'이게왜 컴파일에러임?
등신같은 코드 들어갔나 싶어서 다지우고 하나하나 다적어도 똑같음
다른문제도 쭉 이렇게 제출했고 비쥬얼스튜디오는 아무 문제없는데 왜 이새끼만 ㅈㄹ이지?
댓글 0