/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int mian()':
/in/foo.cc:11:19: error: too few arguments to function 'int putchar(int)'
 }while((c=putchar())! ='\n');
                   ^
In file included from /usr/include/stdio.h:935:0,
                 from /usr/include/c++/6/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:79:1: note: declared here
 putchar (int __c)
 ^~~~~~~
/in/foo.cc:11:21: error: expected ')' before '!' token
 }while((c=putchar())! ='\n');
                     ^
/in/foo.cc:11:21: error: expected ';' before '!' token
/in/foo.cc:11:23: error: expected primary-expression before '=' token
 }while((c=putchar())! ='\n');
                       ^
/in/foo.cc:13:20: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[300]' [-Wformat=]
 scanf("%s",&b[a[j]]);
                    ^
/in/foo.cc:18:10: error: too few arguments to function 'int putchar(int)'
  putchar();
          ^
In file included from /usr/include/stdio.h:935:0,
                 from /usr/include/c++/6/cstdio:42,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:79:1: note: declared here
 putchar (int __c)
 ^~~~~~~

信息

递交者
类型
递交
题目
P1389 婚礼上的小杉
语言
C++
递交时间
2018-03-08 19:04:31
评测时间
2018-03-08 19:04:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes