Compile Error

/in/foo.cc:7:25: error: stray '#' in program
    7 |     for(int i=1;i<n;i++)#include<bits/stdc++.h>
      |                         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:7:26: error: 'include' was not declared in this scope
    7 |     for(int i=1;i<n;i++)#include<bits/stdc++.h>
      |                          ^~~~~~~
/in/foo.cc:7:34: error: 'bits' was not declared in this scope
    7 |     for(int i=1;i<n;i++)#include<bits/stdc++.h>
      |                                  ^~~~
/in/foo.cc:7:39: error: 'stdc' was not declared in this scope; did you mean 'std'?
    7 |     for(int i=1;i<n;i++)#include<bits/stdc++.h>
      |                                       ^~~~
      |                                       std
/in/foo.cc:8:1: error: expected primary-expression before 'using'
    8 | using namespace std;
      | ^~~~~
/in/foo.cc:10:1: error: a function-definition is not allowed here before '{' token
   10 | {
      | ^
/in/foo.cc:19:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   19 | int main()
      |         ^~
/in/foo.cc:19:9: note: remove parentheses to default-initialize a variable
   19 | int main()
      |         ^~
      |         --
/in/foo.cc:19:9: note: or replace parentheses with braces to value-initialize a variable
/in/foo.cc:20:1: error: a function-definition is not allowed here before '{' token
   20 | {
      | ^
/in/foo.cc:31:15: error: 'i' was not declared in this scope
   31 |         int a=i,hws=0;
      |               ^
/in/foo.cc:35:13: error: 'hws' was not declared in this scope
   35 |             hws=hws*10+a%10;
      |             ^~~
/in/foo.cc:38:12: error: 'hws' was not declared in this scope
   38 |         if(hws==ys)
      |            ^~~

信息

递交者
类型
递交
题目
P1490 回文数专题:回文数个数
语言
C++
递交时间
2026-03-14 14:22:44
评测时间
2026-03-14 14:22:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes