/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main(int, char**)':
/in/foo.cc:4:7: error: expected ';' before ')' token
  for(a):
       ^
/in/foo.cc:5:19: warning: statement has no effect [-Wunused-value]
         scanf(b,c);
                   ^
/in/foo.cc:6:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
      printf(b*c);
             ~^~
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/c++/6/ext/string_conversions.h:43,
                 from /usr/include/c++/6/bits/basic_string.h:5417,
                 from /usr/include/c++/6/string:52,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/stdio.h:364:12: note:   initializing argument 1 of 'int printf(const char*, ...)'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.cc:7:2: error: expected primary-expression before 'return'
  return 0;
  ^~~~~~
/in/foo.cc:7:2: error: expected ')' before 'return'

信息

递交者
类型
递交
题目
P2000 A x B Problem
语言
C++
递交时间
2020-02-22 16:26:45
评测时间
2020-02-22 16:26:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes