Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5932 刘芃伽 小明养猪的故事 C++ Runtime Error 2001 MS 260 KB 343 2024-12-21 10:15:30

Tests(0/1):


Code:

#include<iostream> using namespace std; int main(){ int t,n,z; cin>>t; for(int i=1;i<=t;i++) { int a=1,b=2,c; cin>>n; for(int j=3;j<=n;i++) { c=a+b;a=b;b=c; } if(n==2)cout<<b<<endl; if(n==1)cout<<a<<endl; if(n>=3)cout<<c<<endl; } return 0; }


Run Info:

Runtime Error:[ERROR] A not allowed system call.
Call ID:275