Smooth Function - smooth_module

Smooth Function - smooth_module

1. error: ‘>>’ should be ‘> >’ within a nested template argument list

//============================================================================
// Name        : smooth_module.cpp
// Author      : Yongqiang Cheng
// Version     : Version 1.0.0
// Copyright   : Copyright (c) 2019 Yongqiang Cheng
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <map>
#include <string>

using namespace std;

int main()
{
	map<int, map<string, int>> smooth_data;

	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}

16:20:53 **** Build of configuration Debug for project smooth_module ****
make all 
Building file: ../src/smooth_module.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/smooth_module.d" -MT"src/smooth_module.o" -o "src/smooth_module.o" "../src/smooth_module.cpp"
../src/smooth_module.cpp: In function ‘int main()’:
../src/smooth_module.cpp:17:26: error: ‘>>’ should be ‘> >’ within a nested template argument list
  map<int, map<string, int>> smooth_data;
                          ^
make: *** [src/smooth_module.o] Error 1
src/subdir.mk:18: recipe for target 'src/smooth_module.o' failed

16:20:54 Build Finished (took 626ms)
//============================================================================
// Name        : smooth_module.cpp
// Author      : Yongqiang Cheng
// Version     : Version 1.0.0
// Copyright   : Copyright (c) 2019 Yongqiang Cheng
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <map>
#include <string>

using namespace std;

int main()
{
	map<int, map<string, int> > smooth_data;

	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}

2. Create a new repository

在这里插入图片描述

发布了443 篇原创文章 · 获赞 1685 · 访问量 101万+

猜你喜欢

转载自blog.csdn.net/chengyq116/article/details/104236750