/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:13:10: error: 'i' was not declared in this scope
     for (i=1;i<=n;i++)
          ^
foo.cpp:27:15: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
     printf(ans);
               ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cstdio:42:0,
                 from foo.cpp:1:
c:\mingw\include\stdio.h:293:37: error:   initializing argument 1 of 'int printf(const char*, ...)' [-fpermissive]
 _CRTIMP int __cdecl __MINGW_NOTHROW printf (const char*, ...);
                                     ^

信息

递交者
类型
递交
题目
P1131 最小公倍数和最大公约数问题
语言
C++
递交时间
2016-12-25 15:13:44
评测时间
2016-12-25 15:13:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes