Compile Error

foo.cc: In function 'int main()':
foo.cc:4:2: error: 'undefined' was not declared in this scope
    4 | {undefined
      |  ^~~~~~~~~
foo.cc:6:10: error: 'n' was not declared in this scope
    6 |     cin>>n;
      |          ^
foo.cc:7:9: error: 'i' was not declared in this scope
    7 |     for(i=1;i<=n;i++)
      |         ^
foo.cc:9:9: error: 's' was not declared in this scope
    9 |         s=i/10;
      |         ^
foo.cc:10:9: error: 'g' was not declared in this scope
   10 |         g=i%10;
      |         ^
foo.cc:12:9: error: 'sum' was not declared in this scope
   12 |         sum=sum+i*i;
      |         ^~~
foo.cc:14:10: error: 'sum' was not declared in this scope
   14 |    cout<<sum;
      |          ^~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2389 1.5.39:与7无关的数
语言
C++
递交时间
2022-01-26 20:34:45
评测时间
2022-01-26 20:34:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes