結果

問題 No.77 レンガのピラミッド
ユーザー testestesttestestest
提出日時 2017-04-30 16:30:14
言語 cLay
(20240104-1)
結果
CE  
実行時間 -
コード長 83 bytes
コンパイル時間 2,442 ms
コンパイル使用メモリ 150,668 KB
最終ジャッジ日時 2023-09-18 23:11:16
合計ジャッジ時間 2,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
warning: unknown type [error] for rd (reader) : n
warning: unknown type [error] for rd (reader) : a(n)
main.cpp:359:1: error: ‘a’ does not name a type
 a[210];
 ^
main.cpp:360:1: error: ‘s’ does not name a type
 s;
 ^
main.cpp:361:1: error: ‘n’ does not name a type; did you mean ‘yn’?
 n;
 ^
 yn
main.cpp: In function ‘int main()’:
main.cpp:365:6: error: ‘n’ was not declared in this scope
   rd(n);
      ^
main.cpp:366:6: error: ‘a’ was not declared in this scope
   rd(a(n));
      ^
main.cpp:370:7: error: ‘s’ was not declared in this scope
       s+=a[Nzj9Y0kE];
       ^
main.cpp:373:10: error: ‘s’ was not declared in this scope
   n=sqrt(s);
          ^
main.cpp:375:14: error: expected primary-expression before ‘?’ token
     s-=(a[j]<?j)<?n+n-j;
              ^
main.cpp:375:16: error: expected ‘:’ before ‘)’ token
     s-=(a[j]<?j)<?n+n-j;
                ^
                :
main.cpp:375:16: error: expected primary-expression before ‘)’ token
main.cpp:375:18: error: expected primary-expression before ‘?’ token
     s-=(a[j]<?j)<?n+n-j;
                  ^
main.cpp:375:24: error: expected ‘:’ before ‘;’ token
     s-=(a[j]<?j)<?n+n-j;
                        ^
                        :
main.cpp:375:24: error: expected primary-expression before ‘;’ token

ソースコード

diff #

a[210],s,n;{rd(n,a(n));s+=a[0..n-1];n=sqrt(s);rep(j,2*n)s-=(a[j]<?j)<?n+n-j;wt(s);}
0