/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'ull pows(ull, ull)':
foo.cpp:29:16: error: 'resresa' was not declared in this scope
 if(b%2) return resresa;
                ^
foo.cpp: In function 'ull getValue(int, ull)':
foo.cpp:46:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(int i=0;i<s[k].size();i++) if(s[k][i]!=' ') { if(isdigit(s[k][i]) || s[k][i]=='a') { if(s[k][i]=='a') { numbers.push(a); continue; } int now = 0 , j; for(j=i;j<s[k].size() && isdigit(s[k][j]); j++) now = now*10+(int)(s[k][j]-'0'); numbers.push(now); i = j-1; } else { if(op.size() && op.top()==5 && s[k][i]==')') { op.pop(); } else if(op.size()==0 || pri[op.top()]<pri[id(s[k][i])] || op.top()==5) op.push(id(s[k][i])); else { while(op.size() && pri[op.top()]>=pri[id(s[k][i])])
                         ^
foo.cpp:46:175: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(int i=0;i<s[k].size();i++) if(s[k][i]!=' ') { if(isdigit(s[k][i]) || s[k][i]=='a') { if(s[k][i]=='a') { numbers.push(a); continue; } int now = 0 , j; for(j=i;j<s[k].size() && isdigit(s[k][j]); j++) now = now*10+(int)(s[k][j]-'0'); numbers.push(now); i = j-1; } else { if(op.size() && op.top()==5 && s[k][i]==')') { op.pop(); } else if(op.size()==0 || pri[op.top()]<pri[id(s[k][i])] || op.top()==5) op.push(id(s[k][i])); else { while(op.size() && pri[op.top()]>=pri[id(s[k][i])])
                                                                                                                                                                               ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2016-05-23 12:51:15
评测时间
2016-05-23 12:51:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes