Submission #00063


ソースコード

ステータス

項目 データ
問題 0002 - Age Difference
ユーザー名 ei2331
投稿日時 2023-09-20 16:34:24
言語 Java
状態 Compile Error
得点 0
ソースコード長 1561 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
./Main.java:1: error: class, interface, or enum expected
#include<bits/stdc++.h>
        ^
./Main.java:3: error: class, interface, or enum expected
int main(){
^
./Main.java:5: error: class, interface, or enum expected
    for(int i=0;i<3;i++){
    ^
./Main.java:5: error: class, interface, or enum expected
    for(int i=0;i<3;i++){
                ^
./Main.java:5: error: class, interface, or enum expected
    for(int i=0;i<3;i++){
                    ^
./Main.java:7: error: class, interface, or enum expected
    }
    ^
./Main.java:9: error: class, interface, or enum expected
    vector<int> md(3,0);
    ^
./Main.java:10: error: class, interface, or enum expected
    if(m[0]>=1)md[0]+=31;
    ^
./Main.java:11: error: class, interface, or enum expected
    if(m[0]>=2)md[0]+=28;
    ^
./Main.java:12: error: class, interface, or enum expected
    if(m[0]>=3)md[0]+=31;
    ^
./Main.java:13: error: class, interface, or enum expected
    if(m[0]>=4)md[0]+=30;
    ^
./Main.java:14: error: class, interface, or enum expected
    if(m[0]>=5)md[0]+=31;
    ^
./Main.java:15: error: class, interface, or enum expected
    if(m[0]>=6)md[0]+=30;
    ^
./Main.java:16: error: class, interface, or enum expected
    if(m[0]>=7)md[0]+=31;
    ^
./Main.java:17: error: class, interface, or enum expected
    if(m[0]>=8)md[0]+=31;
    ^
./Main.java:18: error: class, interface, or enum expected
    if(m[0]>=9)md[0]+=30;
    ^
./Main.java:19: error: class, interface, or enum expected
    if(m[0]>=10)md[0]+=31;
    ^
./Main.java:20: error: class, interface, or enum expected
    if(m[0]>=11)md[0]+=30;
    ^
./Main.java:21: error: class, interface, or enum expected
    if(m[0]>=12)md[0]+=31;
    ^
./Main.java:22: error: class, interface, or enum expected
    if(m[1]>=1)md[1]+=31;
    ^
./Main.java:23: error: class, interface, or enum expected
    if(m[1]>=2)md[1]+=28;
    ^
./Main.java:24: error: class, interface, or enum expected
    if(m[1]>=3)md[1]+=31;
    ^
./Main.java:25: error: class, interface, or enum expected
    if(m[1]>=4)md[1]+=30;
    ^
./Main.java:26: error: class, interface, or enum expected
    if(m[1]>=5)md[1]+=31;
    ^
./Main.java:27: error: class, interface, or enum expected
    if(m[1]>=6)md[1]+=30;
    ^
./Main.java:28: error: class, interface, or enum expected
    if(m[1]>=7)md[1]+=31;
    ^
./Main.java:29: error: class, interface, or enum expected
    if(m[1]>=8)md[1]+=31;
    ^
./Main.java:30: error: class, interface, or enum expected
    if(m[1]>=9)md[1]+=30;
    ^
./Main.java:31: error: class, interface, or enum expected
    if(m[1]>=10)md[1]+=31;
    ^
./Main.java:32: error: class, interface, or enum expected
    if(m[1]>=11)md[1]+=30;
    ^
./Main.java:33: error: class, interface, or enum expected
    if(m[1]>=12)md[1]+=31;
    ^
./Main.java:34: error: class, interface, or enum expected
    if(m[2]>=1)md[2]+=31;
    ^
./Main.java:35: error: class, interface, or enum expected
    if(m[2]>=2)md[2]+=28;
    ^
./Main.java:36: error: class, interface, or enum expected
    if(m[2]>=3)md[2]+=31;
    ^
./Main.java:37: error: class, interface, or enum expected
    if(m[2]>=4)md[2]+=30;
    ^
./Main.java:38: error: class, interface, or enum expected
    if(m[2]>=5)md[2]+=31;
    ^
./Main.java:39: error: class, interface, or enum expected
    if(m[2]>=6)md[2]+=30;
    ^
./Main.java:40: error: class, interface, or enum expected
    if(m[2]>=7)md[2]+=31;
    ^
./Main.java:41: error: class, interface, or enum expected
    if(m[2]>=8)md[2]+=31;
    ^
./Main.java:42: error: class, interface, or enum expected
    if(m[2]>=9)md[2]+=30;
    ^
./Main.java:43: error: class, interface, or enum expected
    if(m[2]>=10)md[2]+=31;
    ^
./Main.java:44: error: class, interface, or enum expected
    if(m[2]>=11)md[2]+=30;
    ^
./Main.java:45: error: class, interface, or enum expected
    if(m[2]>=12)md[2]+=31;
    ^
./Main.java:46: error: class, interface, or enum expected
    md[0]+=d[0];
    ^
./Main.java:47: error: class, interface, or enum expected
    md[1]+=d[1];
    ^
./Main.java:48: error: class, interface, or enum expected
    md[2]+=d[2];
    ^
./Main.java:50: error: class, interface, or enum expected
    if(md[2]>md[0]&&md[2]<md[1])sa++;
    ^
./Main.java:51: error: class, interface, or enum expected
    else if(md[2]<md[0]&&md[2]>md[1])sa++;
    ^
./Main.java:52: error: class, interface, or enum expected
    else if(md[2]>=md[0]&&md[2]<md[1])sa++;
    ^
./Main.java:53: error: class, interface, or enum expected
else if(md[2]>md[0]&&md[2]<=md[1])sa++;
^
./Main.java:54: error: class, interface, or enum expected
else if(md[2]<=md[0]&&md[2]>md[1])sa++;
^
./Main.java:55: error: class, interface, or enum expected
else if(md[2]<md[0]&&md[2]>=md[1])sa++;
^
./Main.java:56: error: class, interface, or enum expected
cout<<sa<<"\n";
^
./Main.java:57: error: class, interface, or enum expected
}
^
55 errors

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #