/ Vijos /

记录详情

Compile Error

/in/foo.cc:30:28: error: stray '\357' in program
  for(int i = n; i <= m; i++)
                            ^
/in/foo.cc:30:29: error: stray '\274' in program
  for(int i = n; i <= m; i++)
                             ^
/in/foo.cc:30:30: error: stray '\211' in program
  for(int i = n; i <= m; i++)
                              ^
/in/foo.cc: In function 'bool cal(int)':
/in/foo.cc:13:2: error: 'vector' was not declared in this scope
  vector<int> v;
  ^~~~~~
/in/foo.cc:13:2: note: suggested alternative:
In file included from /usr/include/c++/6/vector:64:0,
                 from /usr/include/c++/6/queue:61,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:86,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/stl_vector.h:214:11: note:   'std::vector'
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^~~~~~
/in/foo.cc:13:9: error: expected primary-expression before 'int'
  vector<int> v;
         ^~~
/in/foo.cc:16:3: error: 'v' was not declared in this scope
   v.push_back(q % 10);
   ^
/in/foo.cc:20:14: error: 'v' was not declared in this scope
  for(int i = v.size(); i>= 0 ;i--)
              ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:2: error: 'cin' was not declared in this scope
  cin >> n >> m;
  ^~~
/in/foo.cc:29:2: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:1:
/usr/include/c++/6/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
/in/foo.cc:31:2: error: expected ')' before '{' token
  {
  ^
/in/foo.cc:34:4: error: 'cout' was not declared in this scope
    cout << i << endl;
    ^~~~
/in/foo.cc:34:4: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:75:0,
                 from /in/foo.cc:1:
/usr/include/c++/6/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
/in/foo.cc:34:17: error: 'endl' was not declared in this scope
    cout << i << endl;
                 ^~~~
/in/foo.cc:34:17: note: suggested alternative:
In file included from /usr/include/c++/6/istream:39:0,
                 from /usr/include/c++/6/sstream:38,
                 from /usr/include/c++/6/complex:45,
                 from /usr/include/c++/6/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
                 from /in/foo.cc:1:
/usr/include/c++/6/ostream:590:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^~~~

信息

递交者
类型
递交
题目
P1042 捕风捉影
语言
C++
递交时间
2024-10-26 09:18:41
评测时间
2024-10-26 09:18:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes