/ Vijos /

记录详情

Compile Error

/in/foo.cc:10:13: error: stray '\' in program
     while(c<\'0\'||c>\'9\'){ if(c==\'-\')f=-1;c=getchar();};
             ^
/in/foo.cc:10:14: warning: missing terminating ' character
     while(c<\'0\'||c>\'9\'){ if(c==\'-\')f=-1;c=getchar();};
              ^
/in/foo.cc:10:14: error: missing terminating ' character
     while(c<\'0\'||c>\'9\'){ if(c==\'-\')f=-1;c=getchar();};
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:11:14: error: stray '\' in program
     while(c<=\'9\'&&c>=\'0\')x=x*10+c-\'0\',c=getchar();
              ^
/in/foo.cc:11:15: warning: missing terminating ' character
     while(c<=\'9\'&&c>=\'0\')x=x*10+c-\'0\',c=getchar();
               ^
/in/foo.cc:11:15: error: missing terminating ' character
     while(c<=\'9\'&&c>=\'0\')x=x*10+c-\'0\',c=getchar();
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int read()':
/in/foo.cc:11:5: error: expected primary-expression before 'while'
     while(c<=\'9\'&&c>=\'0\')x=x*10+c-\'0\',c=getchar();
     ^~~~~
/in/foo.cc:11:5: error: expected ')' before 'while'
/in/foo.cc:12:5: error: expected primary-expression before 'return'
     return x*f;
     ^~~~~~
/in/foo.cc:12:5: error: expected ')' before 'return'

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2021-12-05 10:16:03
评测时间
2021-12-05 10:16:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes