Judge Information
Run ID: 66021
src.cpp: In function 'int snt(int)':
src.cpp:6:5: error: 'n' was not declared in this scope
n = 5;
^
src.cpp:7:21: error: 'sqrt' was not declared in this scope
while (n<=sqrt(k))
^
src.cpp: In function 'int main()':
src.cpp:16:6: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:16:35: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:16:46: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:17:27: error: 'stdin' was not declared in this scope
freopen("SNT.INP","r",stdin);
^
src.cpp:17:32: error: 'freopen' was not declared in this scope
freopen("SNT.INP","r",stdin);
^
src.cpp:18:27: error: 'stdout' was not declared in this scope
freopen("SNT.OUT","w",stdout);
^
src.cpp:19:5: error: 'c' was not declared in this scope
c = 0;
^
src.cpp:20:10: error: 'b' was not declared in this scope
cin>>b;
^
src.cpp:21:10: error: 'i' was not declared in this scope
for (i=1;i<=b;i++)
^
src.cpp:23:10: error: 'i' was not declared in this scope
for (i=1;i<=b;i++)
^
src.cpp:26:17: error: 'endl' was not declared in this scope
cout<<c<<endl;
^
src.cpp:27:12: error: 'i' was not declared in this scope
for(i=1;i<=b;i++)
^
src.cpp:6:5: error: 'n' was not declared in this scope
n = 5;
^
src.cpp:7:21: error: 'sqrt' was not declared in this scope
while (n<=sqrt(k))
^
src.cpp: In function 'int main()':
src.cpp:16:6: error: 'ios_base' has not been declared
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:16:35: error: 'cin' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:16:46: error: 'cout' was not declared in this scope
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
^
src.cpp:17:27: error: 'stdin' was not declared in this scope
freopen("SNT.INP","r",stdin);
^
src.cpp:17:32: error: 'freopen' was not declared in this scope
freopen("SNT.INP","r",stdin);
^
src.cpp:18:27: error: 'stdout' was not declared in this scope
freopen("SNT.OUT","w",stdout);
^
src.cpp:19:5: error: 'c' was not declared in this scope
c = 0;
^
src.cpp:20:10: error: 'b' was not declared in this scope
cin>>b;
^
src.cpp:21:10: error: 'i' was not declared in this scope
for (i=1;i<=b;i++)
^
src.cpp:23:10: error: 'i' was not declared in this scope
for (i=1;i<=b;i++)
^
src.cpp:26:17: error: 'endl' was not declared in this scope
cout<<c<<endl;
^
src.cpp:27:12: error: 'i' was not declared in this scope
for(i=1;i<=b;i++)
^