Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151313 陈棋 破译邮件 C++ Compile Error 0 MS 0 KB 528 2026-04-11 17:26:29

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int C; cin>>C; cin.ignore(); while(C--){ string s; getline(cin,s); string num; for(char c:s){ if(c=='-'){ if(!num.empty()){ cout<<char(stoi(num)+'A'-1); num.clear; } } else if(c=='#'){ if(!num.empty()){ cout<<char(stoi(num)+'A'-1); num.clear; } cout<<' '; } else{ num+=C; } } if(!num.empty()){ cout<<char(stoi(num)+'A'-1); } cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:15:15: error: invalid use of non-static member function
      num.clear;
               ^
Main.cc:21:15: error: invalid use of non-static member function
      num.clear;
               ^