/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int in(int, char, int)':
foo.cpp:9:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(ch!='-'&&(ch>'9'||ch<'0')) ch=getchar();if(ch=='-') v=-1,ch=getchar();
     ^~~~~
foo.cpp:9:51: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(ch!='-'&&(ch>'9'||ch<'0')) ch=getchar();if(ch=='-') v=-1,ch=getchar();
                                                   ^~
foo.cpp:10:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(ch>='0'&&ch<='9') x=(x<<3)+(x<<1)+ch-'0',ch=getchar();return x*v;}
     ^~~~~
foo.cpp:10:65: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(ch>='0'&&ch<='9') x=(x<<3)+(x<<1)+ch-'0',ch=getchar();return x*v;}
                                                                 ^~~~~~
foo.cpp: At global scope:
foo.cpp:38:1: error: expected unqualified-id before '?' token
 ?
 ^

信息

递交者
类型
递交
题目
P1949 约数个数和
语言
C++
递交时间
2017-01-23 23:49:57
评测时间
2017-01-23 23:49:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes