/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:27:13: error: 'i' was not declared in this scope
   27 |         for(i=1;i<=n;i++){
      |             ^
foo.cc:49:9: error: 'i' was not declared in this scope; did you mean 'vi'?
   49 |     for(i=vi.size()-1;i>=0;i--){
      |         ^
      |         vi
foo.cc:50:22: error: request for member 'vi' in '"%d "', which is of non-class type 'const char [4]'
   50 |         printf("%d ".vi[i]);
      |                      ^~
foo.cc:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   14 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
foo.cc:18:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |             scanf("%d",&f[i][j]);
      |             ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1635 城市连接
语言
C++
递交时间
2022-03-19 06:28:46
评测时间
2022-03-19 06:28:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes