Compile Error

foo.cc:1:2: error: stray ‘#’ in program
    1 | v#include<bits/stdc++.h>
      |  ^
foo.cc:1:1: error: ‘v’ does not name a type
    1 | v#include<bits/stdc++.h>
      | ^
foo.cc:3:1: error: ‘string’ does not name a type
    3 | string s,st;
      | ^~~~~~
foo.cc:4:12: error: ‘string’ was not declared in this scope
    4 | bool check(string s){
      |            ^~~~~~
foo.cc: In function ‘int main()’:
foo.cc:20:9: error: ‘cin’ was not declared in this scope
   20 |         cin>>s;s+=",";
      |         ^~~
foo.cc:20:14: error: ‘s’ was not declared in this scope
   20 |         cin>>s;s+=",";
      |              ^
foo.cc:23:25: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   23 |                         st+=s[i];
      |                         ^~
      |                         std
foo.cc:26:34: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   26 |                         if(check(st))cout<<s<<endl;
      |                                  ^~
      |                                  std
foo.cc:26:36: error: ‘check’ cannot be used as a function
   26 |                         if(check(st))cout<<s<<endl;
      |                                    ^
foo.cc:26:38: error: ‘cout’ was not declared in this scope
   26 |                         if(check(st))cout<<s<<endl;
      |                                      ^~~~
foo.cc:26:47: error: ‘endl’ was not declared in this scope
   26 |                         if(check(st))cout<<s<<endl;
      |                                               ^~~~
foo.cc:27:25: error: ‘st’ was not declared in this scope; did you mean ‘std’?
   27 |                         st="";
      |                         ^~
      |                         std

信息

递交者
类型
递交
题目
P2596 密码合规检测3级2 202306
语言
C++
递交时间
2025-07-25 20:42:57
评测时间
2025-07-25 20:42:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes