Submission #02418
ソースコード
ステータス
項目 |
データ |
問題 |
0054 - てすと |
ユーザー名 |
ei1528
|
投稿日時 |
2015-12-17 15:42:37 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
564 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:10:16: error: ‘scnaf’ was not declared in this scope
scnaf("%d",&n);
^
./Main.cpp:12:32: error: expected primary-expression before ‘[’ token
scanf("%s %d %d %d",student[i].name,a,b,c);
^
./Main.cpp:12:41: error: ‘a’ was not declared in this scope
scanf("%s %d %d %d",student[i].name,a,b,c);
^
./Main.cpp:12:43: error: ‘b’ was not declared in this scope
scanf("%s %d %d %d",student[i].name,a,b,c);
^
./Main.cpp:12:45: error: ‘c’ was not declared in this scope
scanf("%s %d %d %d",student[i].name,a,b,c);
^
./Main.cpp:13:12: error: expected unqualified-id before ‘[’ token
student[i].point = a+b+c;
^
./Main.cpp:16:26: error: expected ‘;’ before ‘)’ token
for(l=0;l<(n-1)-i<l++){
^
./Main.cpp:17:17: error: expected primary-expression before ‘[’ token
if(student[j].point<student[j+1].point){
^
./Main.cpp:17:34: error: expected primary-expression before ‘[’ token
if(student[j].point<student[j+1].point){
^
./Main.cpp:18:20: error: expected primary-expression before ‘[’ token
int temp = student[j];
^
./Main.cpp:19:9: error: expected unqualified-id before ‘[’ token
student[j] = student[j+1];
^
./Main.cpp:20:9: error: expected unqualified-id before ‘[’ token
student[j+1] = temp;
^
./Main.cpp:25:34: error: expected primary-expression before ‘[’ token
printf("%d %s %d\n",t,student[o].name,student[o].point);
^
./Main.cpp:25:50: error: expected primary-expression before ‘[’ token
printf("%d %s %d\n",t,student[o].name,student[o].point);
^
セット
テストケース