代码
#include<bits/stdc.h>
using namespace std;
int main()
{long long n,m,i,sum1;cin>>n>>m;for(i1;i<m;i){sum*n;if(sum>1000000000){cout<<-1;return 0;;}}cout<<sum;return 0;
}
记得点赞关注收藏!!&…
第一种情况直接weak修饰后初始化,编译器会提示警告:Assigning retained object to weak property; object will be released after assignment,赋值后会被释放 #import "ViewController.h"interface ViewController ()property (no…