/ Vijos /

记录详情

Compile Error

/in/foo.c:2:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c: In function 'pd':
/in/foo.c:7:20: error: 'false' undeclared (first use in this function); did you mean 'fclose'?
   if(n%i==0)return false;
                    ^~~~~
                    fclose
/in/foo.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:9: error: 'true' undeclared (first use in this function)
  return true;
         ^~~~
/in/foo.c: In function 'main':
/in/foo.c:14:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
    printf("%d",n/i);
            ~^  ~~~
            %lld
/in/foo.c: In function 'pd':
/in/foo.c:9:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1786 质因数分解
语言
C
递交时间
2017-10-06 22:36:05
评测时间
2017-10-06 22:36:05
评测机
分数
0
总耗时
35ms
峰值内存
3.082 MiB