- Joined
- Feb 11, 2008
- Messages
- 612 (0.10/day)
- Location
- DFW, Texas, USA
System Name | Built By Me |
---|---|
Processor | AMD 9800X3D |
Motherboard | Gigabyte X870 Aorus Elite WiFi7 |
Cooling | Water Cooling - CPU Only - Heatkiller IV Pro - TG PhaseSheet PTM |
Memory | 32GB (2 x 16) - GSkill FlareX5 DDR5 6000 Mhz |
Video Card(s) | RTX 4080 - ASUS ROG Strix 16GB OC - P Mode |
Storage | 2TB Inland Performance Plus NVMe |
Display(s) | Alienware AW2723DF @ 280 Hz @ 1440P |
Case | Fractal Design Define S2 |
Audio Device(s) | Corsair Virtuoso Pro Headset |
Power Supply | 1000W MSI MPG A1000G PCIE5 |
Mouse | Razer Viper V3 Pro @ 2k Hz |
Keyboard | Asus ROG Strix Scope II 96 Wireless - ROG NX Snow Switches |
Software | Windows 11 Pro |
Why won't this work? My compiler tells me the only errors are located where the bold is.
#include <iostream>
using namespace std;
int main()
{
int t, s, guess;
cout << "Enter in the amount of storage spaces you need. ";
cin >> s;
int nums;
for (t = 0; t < s; t++)
{
cin >> guess;
nums[t] = guess;
"\n";
}
for (t = 0; t < s; t++) cout << "\tYou entered " << nums[t];
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int t, s, guess;
cout << "Enter in the amount of storage spaces you need. ";
cin >> s;
int nums
for (t = 0; t < s; t++)
{
cin >> guess;
nums[t] = guess;
"\n";
}
for (t = 0; t < s; t++) cout << "\tYou entered " << nums[t];
return 0;
}